Share

tcpxtract

Tracker: Bugs

5 Build error on OSX - ID: 1323096
Last Update: Comment added ( harbourn )

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 */


David Wolever ( wolever ) - 2005-10-10 16:54

5

Closed

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2005-10-14 03:39
Sender: harbournProject Admin

Logged In: YES
user_id=14101

Fixed! Thanks for your help, I wouldn't have found this
myself as I don't have any big endian systems :)


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2005-10-14 03:39 harbourn
close_date - 2005-10-14 03:39 harbourn