From: Victor Julien Date: Tue, 15 Mar 2016 17:01:06 +0000 (+0100) Subject: pfring: strip prio from vlan id X-Git-Tag: suricata-3.0.1RC1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4783d5107f1058f1473169824f80530596c5f089;p=thirdparty%2Fsuricata.git pfring: strip prio from vlan id --- diff --git a/src/source-pfring.c b/src/source-pfring.c index 7f005bce55..315953a66b 100644 --- a/src/source-pfring.c +++ b/src/source-pfring.c @@ -251,7 +251,7 @@ static inline void PfringProcessPacket(void *user, struct pfring_pkthdr *h, Pack * is not defined nor used in PF_RING code. And vlan_id is set to 0 * in PF_RING kernel code when there is no VLAN. */ if ((!ptv->vlan_disabled) && h->extended_hdr.parsed_pkt.vlan_id) { - p->vlan_id[0] = h->extended_hdr.parsed_pkt.vlan_id; + p->vlan_id[0] = h->extended_hdr.parsed_pkt.vlan_id & 0x0fff; p->vlan_idx = 1; p->vlanh[0] = NULL; }