75#include <yaf/autoinc.h>
103#define YF_MPLS_LABEL_COUNT_MAX 3
172#if defined(YAF_ENABLE_P0F) || defined(YAF_ENABLE_FPEXPORT)
187#define YF_PBUFLEN_NOL2INFO offsetof(yfPBuf_t, l2info)
190#define YF_PBUFLEN_NOPAYLOAD offsetof(yfPBuf_t, paylen)
193#define YF_PBUFLEN_BASE offsetof(yfPBuf_t, payload)
195struct yfDecodeCtx_st;
197typedef struct yfDecodeCtx_st yfDecodeCtx_t;
200#define YF_TYPE_IPv4 0x0800
202#define YF_TYPE_IPv6 0x86DD
207#define YF_TYPE_IPANY 0x0000
210#define YF_PROTO_IP6_HOP 0
212#define YF_PROTO_ICMP 1
214#define YF_PROTO_TCP 6
216#define YF_PROTO_UDP 17
218#define YF_PROTO_IP6_ROUTE 43
220#define YF_PROTO_IP6_FRAG 44
222#define YF_PROTO_GRE 47
224#define YF_PROTO_ICMP6 58
226#define YF_PROTO_IP6_NONEXT 59
228#define YF_PROTO_IP6_DOPT 60
231#define YF_TF_FIN 0x01
233#define YF_TF_SYN 0x02
235#define YF_TF_RST 0x04
237#define YF_TF_PSH 0x08
239#define YF_TF_ACK 0x10
241#define YF_TF_URG 0x20
243#define YF_TF_ECE 0x40
245#define YF_TF_CWR 0x80
248#define YF_MF_PRIO_CHANGE 0x01
250#define YF_MF_PRIORITY 0x02
252#define YF_MF_FAIL 0x04
254#define YF_MF_FASTCLOSE 0x08
283 GArray *geneveports);
347 const struct timeval *tv);
358 uint64_t packetTotal);
A YAF flow key.
Definition yafcore.h:212
Fragmentation information structure.
Definition decode.h:79
uint16_t offset
Fragment offset within the reassembled datagram.
Definition decode.h:83
uint16_t l4hlen
Decoded header length.
Definition decode.h:90
uint8_t more
More fragments flag.
Definition decode.h:99
uint32_t ipid
Fragment ID.
Definition decode.h:81
uint16_t iphlen
IP header length.
Definition decode.h:85
uint8_t frag
Fragmented packet flag.
Definition decode.h:95
Datalink layer information structure.
Definition decode.h:106
uint16_t vlan_tag
VLAN tag.
Definition decode.h:114
uint32_t mpls_label[YF_MPLS_LABEL_COUNT_MAX]
MPLS label stack.
Definition decode.h:118
uint32_t mpls_count
MPLS label count.
Definition decode.h:116
uint8_t dmac[6]
Destination MAC address.
Definition decode.h:110
uint16_t l2hlen
Layer 2 Header Length.
Definition decode.h:112
uint8_t smac[6]
Source MAC address.
Definition decode.h:108
MPTCP information structure.
Definition decode.h:122
uint32_t token
token
Definition decode.h:126
uint8_t flags
flags
Definition decode.h:130
uint64_t idsn
initial dsn
Definition decode.h:124
uint16_t mss
maximum segment size
Definition decode.h:128
Full packet information structure.
Definition decode.h:146
uint64_t pcap_offset
offset into pcap
Definition decode.h:158
uint64_t ptime
Packet timestamp in epoch milliseconds.
Definition decode.h:148
yfTCPInfo_t tcpinfo
TCP information structure.
Definition decode.h:169
uint32_t iplen
Packet IP length.
Definition decode.h:162
yfL2Info_t l2info
Decoded layer 2 information.
Definition decode.h:171
pcap_t * pcapt
pcap struct
Definition decode.h:156
uint16_t ifnum
Interface number packet was decoded from.
Definition decode.h:164
uint16_t pcap_caplist
caplist
Definition decode.h:160
size_t paylen
Length of payload available in captured payload buffer.
Definition decode.h:179
size_t allHeaderLen
Length of all headers, L2, L3, L4.
Definition decode.h:152
struct pcap_pkthdr pcap_hdr
pcap header
Definition decode.h:154
yfFlowKey_t key
Flow key containing decoded IP and transport headers.
Definition decode.h:150
uint8_t frag
flag for determining if the packet was fragmented 0-no, 1-yes, 2-not fully assembled
Definition decode.h:167
uint8_t payload[1]
Captured payload buffer.
Definition decode.h:183
TCP information structure.
Definition decode.h:136
uint32_t seq
TCP sequence number.
Definition decode.h:138
uint8_t flags
TCP flags.
Definition decode.h:140
yfMPTCPInfo_t mptcp
MPTCP Info.
Definition decode.h:142
#define YFP_IPTCPHEADER_SIZE
This is the size of the packet to store away for use primarily in passive OS fingerprinting,...
Definition yafcore.h:185