#include "util-optimize.h"
#include "util-checksum.h"
#include "util-ioctl.h"
+#include "util-host-info.h"
#include "tmqh-packetpool.h"
#include "source-af-packet.h"
#include "runmodes.h"
ptv->vlan_disabled = 1;
}
+ /* If kernel is older than 3.0, VLAN is not stripped so we don't
+ * get the info from packet extended header but we will use a standard
+ * parsing of packet data (See Linux commit bcc6d47903612c3861201cc3a866fb604f26b8b2) */
+ if (! SCKernelVersionIsAtLeast(3, 0)) {
+ ptv->vlan_disabled = 1;
+ }
+
SCReturnInt(TM_ECODE_OK);
}