When I try and build tcpxtract on OSX (`gcc -v` - gcc
version 3.3 20030304 (Apple Computer, Inc. build
1809)), I get an error in tcpxtract.c (line 173, ip_hl
not found). I was able to fix it by changing the
structure sniff_ip from
#if BYTE_ORDER == LITTLE_ENDIAN
u_int ip_hl:4, /* header length */
ip_v:4; /* version */
#if BYTE_ORDER == BIG_ENDIAN
u_int ip_v:4, /* version */
ip_hl:4; /* header length */
#endif
#endif /* not _IP_VHL */
to
#if BYTE_ORDER == LITTLE_ENDIAN
u_int ip_hl:4, /* header length */
ip_v:4; /* version */
#endif
#if BYTE_ORDER == BIG_ENDIAN
u_int ip_v:4, /* version */
ip_hl:4; /* header length */
#endif /* not _IP_VHL */
Nobody/Anonymous
None
None
Public
|
Date: 2005-10-14 03:39 Logged In: YES |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use