Packet Content

Home Forums Discussions Support Portal Packet Content

This topic contains 3 replies, has 2 voices, and was last updated by  Vadim Smirnov 11 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5026

    Mehul
    Participant

    Well, I have understood how to grab the All Header information from the packet,but I require to get the ACTUAL data from the packet.

    How can I do the same ?

    If I change the data and recalculate the chksum; what special care does the code have to take ?

    Please advice

    Thanks

    #6056

    Vadim Smirnov
    Moderator

    How can I do the same ?

    Packet data follow the packet header.

    If I change the data and recalculate the chksum; what special care does the code have to take ?

    If you don’t modify packet length then checksums (IP/TCP/UDP) recalculation is enough. If you do modify packet length (an example change “sex” to “fofo”) for TCP protocol you also have to care about Sequence and Acknowledgement numbers.

    #6057

    Mehul
    Participant

    Could you please provide any snippets of code for the above ?

    #6058

    Vadim Smirnov
    Moderator

    Not sure what exactly code you need, but this question was already discussed here http://www.ntkernel.com/forum/viewtopic.php?t=19 along with some code postings.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.