Thread (19 messages) 19 messages, 2 authors, 2025-09-09

Re: [PATCH v14 nf-next 3/3] netfilter: nft_chain_filter: Add bridge double vlan and pppoe

From: Florian Westphal <fw@strlen.de>
Date: 2025-07-08 22:02:40
Also in: bridge, netfilter-devel

Eric Woudstra [off-list ref] wrote:
+		if (!pskb_may_pull(skb, VLAN_HLEN))
+			break;
+		vhdr = (struct vlan_hdr *)(skb->data);
+		offset = VLAN_HLEN;
+		outer_proto = skb->protocol;
+		proto = vhdr->h_vlan_encapsulated_proto;
+		skb_set_network_header(skb, offset);
+		skb->protocol = proto;
Why is skb->protocol munged?  Also applies to the previous patch,
I forgot to ask.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help