--- zzzz-none-000/linux-4.4.60/net/ipv4/ip_input.c 2017-04-08 07:53:53.000000000 +0000 +++ scorpion-1750e-727/linux-4.4.60/net/ipv4/ip_input.c 2021-02-04 17:41:59.000000000 +0000 @@ -148,6 +148,10 @@ #include #include +#ifdef CONFIG_AVM_PA +#include +#endif + /* * Process Router Attention IP option (RFC 2113) */ @@ -308,7 +312,7 @@ return true; } -int sysctl_ip_early_demux __read_mostly = 1; +int sysctl_ip_early_demux __read_mostly = 0; EXPORT_SYMBOL(sysctl_ip_early_demux); static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) @@ -452,6 +456,9 @@ /* Must drop socket now because of tproxy. */ skb_orphan(skb); +#ifdef CONFIG_AVM_PA + AVM_PKT_INFO(skb)->ptype_pid_handle = AVM_PA_PTYPE_DEVINFO(pt)->pid_handle; +#endif return NF_HOOK(NFPROTO_IPV4, NF_INET_PRE_ROUTING, net, NULL, skb, dev, NULL, ip_rcv_finish);