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-09-06 21:14:34
Also in: bridge, netfilter-devel

Eric Woudstra [off-list ref] wrote:
+	__be16 outer_proto, proto = 0;
 	struct nft_pktinfo pkt;
+	int ret, offset = 0;
 
 	nft_set_pktinfo(&pkt, skb, state);
 
 	switch (eth_hdr(skb)->h_proto) {
+	case htons(ETH_P_PPP_SES): {
+		struct ppp_hdr {
+			struct pppoe_hdr hdr;
+			__be16 proto;
+		} *ph;
Maybe add nft_set_bridge_pktinfo() and place this
entire switch/case there?
+		skb_set_network_header(skb, offset);
I assume thats because the network header still points to
the ethernet header at this stage?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help