From 4783d5107f1058f1473169824f80530596c5f089 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 15 Mar 2016 18:01:06 +0100 Subject: [PATCH] pfring: strip prio from vlan id --- src/source-pfring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2