Find the answer to your Linux question:
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.
  1. #1
    Just 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?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,173
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •