[an error occurred while processing this directive]
|
//
// IP header definition
//
typedef struct iphdr {
unsigned int h_len:4; // length of the header
unsigned int version:4; // Version of IP
unsigned char tos; // Type of service
unsigned short total_len; // total length of packet
unsigned short ident; // unique identifier
unsigned short frag_and_flags; // flags
unsigned char ttl; // time to live value
unsigned char proto; // protocol (TCP, UDP, etc.)
unsigned short checksum; // IP checksum
unsigned int sourceIP; // source IP address
unsigned int destIP; // destination IP address
} IpHeader;
E-mail: info@telesys.ru