squall_lion_heart
December 21st, 2004, 02:04 PM
well, i learning from mixter's text, you can find it here:
http://mixter.void.ru/rawip.html
mixter programmed this struct of ip header:
struct ipheader {
unsigned char ip_hl:4, ip_v:4; /* this means that each member is 4 bits */
unsigned char ip_tos;
unsigned short int ip_len;
unsigned short int ip_id;
unsigned short int ip_off;
unsigned char ip_ttl;
unsigned char ip_p;
unsigned short int ip_sum;
unsigned int ip_src;
unsigned int ip_dst;
}; /* total ip header length: 20 bytes (=160 bits) */
and i have one question,
what does the field ip_off supposed to indicate?
the writer said that the field used for reassembly of fragmented datagrams and somthing about flags i didn't understand it, someone can explain me please?
thanks for the help
squall!
http://mixter.void.ru/rawip.html
mixter programmed this struct of ip header:
struct ipheader {
unsigned char ip_hl:4, ip_v:4; /* this means that each member is 4 bits */
unsigned char ip_tos;
unsigned short int ip_len;
unsigned short int ip_id;
unsigned short int ip_off;
unsigned char ip_ttl;
unsigned char ip_p;
unsigned short int ip_sum;
unsigned int ip_src;
unsigned int ip_dst;
}; /* total ip header length: 20 bytes (=160 bits) */
and i have one question,
what does the field ip_off supposed to indicate?
the writer said that the field used for reassembly of fragmented datagrams and somthing about flags i didn't understand it, someone can explain me please?
thanks for the help
squall!