Results 1 to 2 of 2
i want to enter two more fields in the icmp packet so as to send some extra information that i can decide. i suppose it is more easy to enter ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-21-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 11
modify icmp
i want to enter two more fields in the icmp packet so as to send some extra information that i can decide. i suppose it is more easy to enter them at the end of the packet.can anyone knows how to do this?
- 06-23-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,152
I don't think you can do that. The header formats for ICMP , RFC 792, are clearly defined. Violating them will cause serious problems, I suspect. From the RFC 792 documentation:
Code:Message Formats ICMP messages are sent using the basic IP header. The first octet of the data portion of the datagram is a ICMP type field; the value of this field determines the format of the remaining data. Any field labeled "unused" is reserved for later extensions and must be zero when sent, but receivers should not use these fields (except to include them in the checksum).
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
