Update of /cvsroot/javanetsim/IceScan/icesockets
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv30367/icesockets
Modified Files:
sock_types.h
Log Message:
no message
Index: sock_types.h
===================================================================
RCS file: /cvsroot/javanetsim/IceScan/icesockets/sock_types.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** sock_types.h 13 Dec 2006 14:15:21 -0000 1.5
--- sock_types.h 13 Dec 2006 14:56:10 -0000 1.6
***************
*** 157,180 ****
// IP Header structure for cygwin
#ifdef __CYGWIN__
! struct pkt_iphdr{
! #if __BYTE_ORDER == __LITTLE_ENDIAN
! my_uint8_t ihl:4;
! my_uint8_t version:4;
! #elif __BYTE_ORDER == __BIG_ENDIAN
! my_uint8_t version:4;
! my_uint8_t ihl:4;
! #else
! #error "Couldn't determine endianness"
! #endif
! my_uint8_t tos;
! my_uint16_t tot_len;
! my_uint16_t id;
! my_uint16_t frag_off;
! my_uint8_t ttl;
! my_uint8_t protocol;
! my_uint16_t csum;
! my_uint32_t saddr;
! my_uint32_t daddr;
! };
#endif
--- 157,183 ----
// IP Header structure for cygwin
#ifdef __CYGWIN__
! struct iphdr
! {
! #if __BYTE_ORDER == __LITTLE_ENDIAN
! unsigned int ihl:4;
! unsigned int version:4;
! #elif __BYTE_ORDER == __BIG_ENDIAN
! unsigned int version:4;
! unsigned int ihl:4;
! #else
! # error "Please fix <bits/endian.h>"
! #endif
! my_uint8_t tos;
! my_uint16_t tot_len;
! my_uint16_t id;
! my_uint16_t frag_off;
! my_uint8_t ttl;
! my_uint8_t protocol;
! my_uint16_t check;
! my_uint32_t saddr;
! my_uint32_t daddr;
! /*The options start here. */
! };
!
#endif
|