Flow: Adding livedev and vlan_idx on flow

Adding livedev and vlan_idx on flow, making it possible to use it for
logging in_iface on flow-logs and fix in_iface on psuedopackets.
pull/3815/head
Bendik Hagen 7 years ago committed by Victor Julien
parent bef190f767
commit ec0dd0209a

@ -40,6 +40,8 @@
(f)->sp = 0; \
(f)->dp = 0; \
(f)->proto = 0; \
(f)->livedev = NULL; \
(f)->vlan_idx = 0; \
SC_ATOMIC_INIT((f)->flow_state); \
SC_ATOMIC_INIT((f)->use_cnt); \
(f)->tenant_id = 0; \
@ -83,6 +85,8 @@
(f)->sp = 0; \
(f)->dp = 0; \
(f)->proto = 0; \
(f)->livedev = NULL; \
(f)->vlan_idx = 0; \
SC_ATOMIC_RESET((f)->flow_state); \
SC_ATOMIC_RESET((f)->use_cnt); \
(f)->tenant_id = 0; \

@ -343,6 +343,10 @@ typedef struct Flow_
uint8_t proto;
uint8_t recursion_level;
uint16_t vlan_id[2];
uint8_t vlan_idx;
/** Incoming interface */
const struct LiveDevice_ *livedev;
/** flow hash - the flow hash before hash table size mod. */
uint32_t flow_hash;

Loading…
Cancel
Save