[Javanetsim-cvs] IceScan/icesockets sock_types.h,1.9,1.10
Status: Beta
Brought to you by:
darkkey
From: QweR <qw...@us...> - 2006-12-16 03:24:19
|
Update of /cvsroot/javanetsim/IceScan/icesockets In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1857/icesockets Modified Files: sock_types.h Log Message: Index: sock_types.h =================================================================== RCS file: /cvsroot/javanetsim/IceScan/icesockets/sock_types.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** sock_types.h 16 Dec 2006 00:29:16 -0000 1.9 --- sock_types.h 16 Dec 2006 03:24:16 -0000 1.10 *************** *** 204,207 **** --- 204,231 ---- }; + // struct ip + // { + // #if __BYTE_ORDER == __LITTLE_ENDIAN + // unsigned int ip_hl:4; /* header length */ + // unsigned int ip_v:4; /* version */ + // #endif + // #if __BYTE_ORDER == __BIG_ENDIAN + // unsigned int ip_v:4; /* version */ + // unsigned int ip_hl:4; /* header length */ + // #endif + // u_int8_t ip_tos; /* type of service */ + // u_short ip_len; /* total length */ + // u_short ip_id; /* identification */ + // u_short ip_off; /* fragment offset field */ + // #define IP_RF 0x8000 /* reserved fragment flag */ + // #define IP_DF 0x4000 /* dont fragment flag */ + // #define IP_MF 0x2000 /* more fragments flag */ + // #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ + // u_int8_t ip_ttl; /* time to live */ + // u_int8_t ip_p; /* protocol */ + // u_short ip_sum; /* checksum */ + // struct in_addr ip_src, ip_dst; /* source and dest address */ + // }; + /* ARP ioctl request. */ struct arpreq *************** *** 213,218 **** char arp_dev[16]; }; #define SIOCGARP 0x8954 /* get ARP table entry */ ! #endif --- 237,252 ---- char arp_dev[16]; }; + + /* UDP header as specified by RFC 768, August 1980. */ + struct udphdr + { + my_uint16_t source; + my_uint16_t dest; + my_uint16_t len; + my_uint16_t check; + }; #define SIOCGARP 0x8954 /* get ARP table entry */ ! #define SOL_UDP 17 ! #define SOL_TCP 6 #endif |