X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/32e24ead3b2a171e5f5eff50d7231c2514eda9b4..cda9bf8c5f842fc7110fbbf2234bcc898f78c0bd:/ip.h diff --git a/ip.h b/ip.h index d2c83e05..b3b23d1a 100644 --- a/ip.h +++ b/ip.h @@ -51,8 +51,8 @@ */ struct ip { nd_uint8_t ip_vhl; /* header length, version */ -#define IP_V(ip) ((EXTRACT_U_1((ip)->ip_vhl) & 0xf0) >> 4) -#define IP_HL(ip) (EXTRACT_U_1((ip)->ip_vhl) & 0x0f) +#define IP_V(ip) ((GET_U_1((ip)->ip_vhl) & 0xf0) >> 4) +#define IP_HL(ip) (GET_U_1((ip)->ip_vhl) & 0x0f) nd_uint8_t ip_tos; /* type of service */ nd_uint16_t ip_len; /* total length */ nd_uint16_t ip_id; /* identification */