HEADER_SIZE in source
Posted: Sat Apr 23, 2011 10:44 pm
Can someone explain to me where did this values came from?
I cant find any reference to 28 and 40 in the packet structure of tcp and udp.
Code: Select all
/*
* Overhead added to packets by various protocols.
*/
#define IPv4_UDP_HEADER_SIZE 28
#define IPv4_TCP_HEADER_SIZE 40
#define IPv6_UDP_HEADER_SIZE 40
I cant find any reference to 28 and 40 in the packet structure of tcp and udp.