52#ifndef _PACKETH_F5ETHTRAILER_H_
53#define _PACKETH_F5ETHTRAILER_H_
55#define F5ETH_TAP_TMM_MAX UINT16_MAX
56#define F5ETH_TAP_TMM_BITS 16
57#define F5ETH_TAP_SLOT_MAX UINT16_MAX
58#define F5ETH_TAP_SLOT_BITS 16
66#define F5ETH_TAP_MAGIC 0x68744521
100 return(tdata->
magic == F5ETH_TAP_MAGIC ? 1 : 0);
103#define F5FILEINFO_TAP_MAGIC 0x46350001
111#define F5FILEINFO_TAP_DATA_INIT { 0, { 0, 0, 0, 0, 0, 0 } }
113#define F5VER_KNOWN(v) ((v)->ver[0] > 0)
116#define F5VER_GE_11_2(v) (((v)->ver[0] > 11) \
117 || ((v)->ver[0] == 11 && (v)->ver[1] >= 2))
119#define F5VER_GE_11_2_1(v) (((v)->ver[0] > 11) \
120 || ((v)->ver[0] == 11 && (v)->ver[1] > 2) \
121 || ((v)->ver[0] == 11 && (v)->ver[1] == 2 && (v)->ver[2] >= 1))
123#define F5VER_GE_11_3(v) (((v)->ver[0] > 11) \
124 || ((v)->ver[0] == 11 && (v)->ver[1] >= 3))
126#define F5VER_GE_11_4(v) (((v)->ver[0] > 11) \
127 || ((v)->ver[0] == 11 && (v)->ver[1] >= 4))
129#define F5VER_GE_11_4_1(v) (((v)->ver[0] > 11) \
130 || ((v)->ver[0] == 11 && (v)->ver[1] > 4) \
131 || ((v)->ver[0] == 11 && (v)->ver[1] == 4 && (v)->ver[2] >= 1))
133#define F5VER_GE_11_5(v) (((v)->ver[0] > 11) \
134 || ((v)->ver[0] == 11 && (v)->ver[1] >= 5))
136#define F5VER_GE_11_5_1(v) (((v)->ver[0] > 11) \
137 || ((v)->ver[0] == 11 && (v)->ver[1] > 5) \
138 || ((v)->ver[0] == 11 && (v)->ver[1] == 5 && (v)->ver[2] >= 1))
140#define F5VER_GE_11_6(v) (((v)->ver[0] > 11) \
141 || ((v)->ver[0] == 11 && (v)->ver[1] >= 6))
143#define F5VER_GE_12_0(v) (((v)->ver[0] >= 12))
146#ifndef F5FILEINFOTAP_SRC
148#ifdef F5FILEINFO_TAP_POST_FUNC
152static void f5fileinfo_tap_reset(
void *p)
163# ifdef F5FILEINFO_TAP_POST_FUNC
164 F5FILEINFO_TAP_POST_FUNC(s);
173 tap_flags_t flags _U_
180 if(fromtap->
magic != F5FILEINFO_TAP_MAGIC) {
185 if (s->
ver[0] == fromtap->
ver[0] &&
186 s->
ver[1] == fromtap->
ver[1] &&
187 s->
ver[2] == fromtap->
ver[2] &&
188 s->
ver[3] == fromtap->
ver[3] &&
189 s->
ver[4] == fromtap->
ver[4] &&
190 s->
ver[5] == fromtap->
ver[5])
194 s->
ver[0] = fromtap->
ver[0];
195 s->
ver[1] = fromtap->
ver[1];
196 s->
ver[2] = fromtap->
ver[2];
197 s->
ver[3] = fromtap->
ver[3];
198 s->
ver[4] = fromtap->
ver[4];
199 s->
ver[5] = fromtap->
ver[5];
200# ifdef F5FILEINFO_TAP_POST_FUNC
201 F5FILEINFO_TAP_POST_FUNC(s);
207#define F5FILEINFO_TAP_LISTEN(a) \
208 register_tap_listener("f5fileinfo", (a), NULL, TL_REQUIRES_NOTHING, f5fileinfo_tap_reset, f5fileinfo_tap_pkt, NULL, NULL)
Definition packet_info.h:43
Definition epan_dissect.h:28
Definition packet-f5ethtrailer.h:69
uint64_t peer_flow
Definition packet-f5ethtrailer.h:74
uint8_t noise_low
Definition packet-f5ethtrailer.h:79
uint8_t flows_set
Definition packet-f5ethtrailer.h:82
uint16_t tmm
Definition packet-f5ethtrailer.h:78
uint8_t ingress
Definition packet-f5ethtrailer.h:83
uint8_t noise_med
Definition packet-f5ethtrailer.h:80
uint32_t magic
Definition packet-f5ethtrailer.h:70
char * virtual_name
Definition packet-f5ethtrailer.h:76
uint32_t trailer_len
Definition packet-f5ethtrailer.h:71
uint64_t flow
Definition packet-f5ethtrailer.h:73
uint8_t noise_high
Definition packet-f5ethtrailer.h:81
uint16_t slot
Definition packet-f5ethtrailer.h:77
Definition packet-f5ethtrailer.h:106
uint32_t magic
Definition packet-f5ethtrailer.h:107
uint32_t ver[6]
Definition packet-f5ethtrailer.h:108
tap_packet_status
Definition tap.h:25
@ TAP_PACKET_REDRAW
Definition tap.h:27
@ TAP_PACKET_DONT_REDRAW
Definition tap.h:26