12 #ifndef __PACKET_IP_H__
13 #define __PACKET_IP_H__
15 #include "ws_symbol_export.h"
24 #define IP_VERSION_NUM_RESERVED 0
25 #define IP_VERSION_NUM_INET 4
26 #define IP_VERSION_NUM_ST 5
27 #define IP_VERSION_NUM_INET6 6
28 #define IP_VERSION_NUM_TPIX 7
29 #define IP_VERSION_NUM_PIP 8
30 #define IP_VERSION_NUM_TUBA 9
49 #define WS_IP4_PTR(p) ((ws_ip4 *)(((p) && *(guint8 *)(p) == 4) ? (p) : NULL))
52 #define IPDSFIELD_DSCP_MASK 0xFC
53 #define IPDSFIELD_DSCP(dsfield) (((dsfield) & IPDSFIELD_DSCP_MASK) >> 2)
56 #define IPDSFIELD_ECN_MASK 0x03
57 #define IPDSFIELD_ECN(dsfield) ((dsfield) & IPDSFIELD_ECN_MASK)
59 gboolean ip_try_dissect(gboolean heur_first, guint nxt,
tvbuff_t *tvb,
81 #define WS_IP6_PTR(p) ((ws_ip6 *)(((p) && *(guint8 *)(p) == 6) ? (p) : NULL))
122 ws_ip_protocol(
void *iph)
128 if ((ip4 = WS_IP4_PTR(iph)) != NULL)
129 return ip4->ip_proto;
130 if ((ip6 = WS_IP6_PTR(iph)) != NULL)
140 guint32 initial_frame;
Definition: packet_info.h:44
Definition: value_string.h:170
Definition: value_string.h:26
Definition: packet-ip.h:35
Definition: packet-ip.h:69
Definition: conversation.h:220
Definition: packet-ip.h:136
Definition: packet-ip.h:105
Definition: tvbuff-int.h:35
Definition: packet-ipv6.h:44
Definition: packet-ip.h:83