Signed-off-by: LiXiong Liu <[email protected]>
---
 .../706-01-netfilter-flowtable-fix-pppoe-header-offset.patch  | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 
target/linux/generic/pending-5.10/706-01-netfilter-flowtable-fix-pppoe-header-offset.patch

diff --git 
a/target/linux/generic/pending-5.10/706-01-netfilter-flowtable-fix-pppoe-header-offset.patch
 
b/target/linux/generic/pending-5.10/706-01-netfilter-flowtable-fix-pppoe-header-offset.patch
new file mode 100644
index 0000000..97767d7
--- /dev/null
+++ 
b/target/linux/generic/pending-5.10/706-01-netfilter-flowtable-fix-pppoe-header-offset.patch
@@ -0,0 +1,11 @@
+--- a/netfilter/nf_flow_table_ip.c
++++ b/netfilter/nf_flow_table_ip.c
+@@ -158,7 +158,7 @@ static void nf_flow_tuple_encap(struct s
+               tuple->encap[i].proto = skb->protocol;
+               break;
+       case htons(ETH_P_PPP_SES):
+-              phdr = (struct pppoe_hdr *)skb_mac_header(skb);
++              phdr = (struct pppoe_hdr *)(skb_mac_header(skb) + ETH_HLEN);
+               tuple->encap[i].id = ntohs(phdr->sid);
+               tuple->encap[i].proto = skb->protocol;
+               break;
-- 
2.7.4


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to