I just now put into CVS the changes to the bit-field variables in packet.h (igmp, ip, and tcp headers) and packet-atalk.c ANSI allows bitfields in unsigned ints, but gcc allows them in just about anything. I tested the change on IP, TCP, and DDP headers, but not IGMP since I don't have a trace with IGMP packets. In packet.h I introduced 2 new macros, lo_nibble and hi_nibble, which extrace the low and high nibbles from a byte. Actually, the macros are not very fancy; they don't check to make sure you're sending them only a byte. In packet-atalk.c I introduced 2 new macros, ddp_len and ddp_hops, which extract bitfields from the guint16 value. --gilbert -- Gilbert Ramirez Voice: +1 210 358 4032 Technical Services Fax: +1 210 358 1122 University Health System San Antonio, Texas, USA
Powered by MHonArc 2.6.10