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) && *(uint8_t *)(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)
59bool ip_try_dissect(
bool heur_first,
unsigned nxt,
tvbuff_t *tvb,
81#define WS_IP6_PTR(p) ((ws_ip6 *)(((p) && *(uint8_t *)(p) == 6) ? (p) : NULL))
122ws_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 uint32_t initial_frame;
Definition packet_info.h:43
Definition value_string.h:169
Definition value_string.h:25
Definition packet-ip.h:35
Definition packet-ip.h:69
Definition conversation.h:223
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