![]() ![]() But this call also sets the total_length of the packet. This is the call that actually sends a packet on the socket. ![]() That said, my bet is that the problem is in the sendto system call. ![]() The result is zero padding in the payload until completing the total length of the packet. The payload is "ABC.XYZ", but the IP's total_length has been manually increased. That's what in theory you should see on a captured packet of this kind when inspecting it with Wireshark (or tcpdump). When sending a packet larger than its actual size, the additional data in the payload is a chunk of zeroes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |