Fill in the vlan_id fields unconditionally. We can now remove the check
for the vlan.use-for-tracking setting in decode.c. The debug log message
is moved to suricata.c.
return TM_ECODE_FAILED;
}
- if (vlan_id > 0 && dtv->vlan_disabled == 0) {
+ if (vlan_id > 0) {
if (p->vlan_idx >= 2) {
ENGINE_SET_EVENT(p,ERSPAN_TOO_MANY_VLAN_LAYERS);
return TM_ECODE_FAILED;
return NULL;
}
- /** set config defaults */
- int vlanbool = 0;
- if ((ConfGetBool("vlan.use-for-tracking", &vlanbool)) == 1 && vlanbool == 0) {
- dtv->vlan_disabled = 1;
- }
- SCLogDebug("vlan tracking is %s", dtv->vlan_disabled == 0 ? "enabled" : "disabled");
-
return dtv;
}
/** Specific context for udp protocol detection (here atm) */
AppLayerThreadCtx *app_tctx;
- int vlan_disabled;
-
/** stats/counters */
uint16_t counter_pkts;
uint16_t counter_bytes;
/* Ignore vlan_ids when comparing flows. */
g_vlan_mask = 0x0000;
}
+ SCLogDebug("vlan tracking is %s", vlan_tracking == 1 ? "enabled" : "disabled");
SetupUserMode(&suricata);