]> The Tcpdump Group git mirrors - tcpdump/blobdiff - ip.h
the failed/passed count was not kept in the right place
[tcpdump] / ip.h
diff --git a/ip.h b/ip.h
index d2c83e057823a42db98d6cc366109b4d1c79de75..b3b23d1a08aa44f010ddf1a58bb1c9d0796328e9 100644 (file)
--- 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 */