]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
pfring: strip prio from vlan id 1938/head
authorVictor Julien <victor@inliniac.net>
Tue, 15 Mar 2016 17:01:06 +0000 (18:01 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 15 Mar 2016 17:01:06 +0000 (18:01 +0100)
src/source-pfring.c

index 7f005bce5566917da865b141ddd343e1cb38f29a..315953a66b4bcb1b036aecf525920bf441262407 100644 (file)
@@ -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;
     }