--- zzzz-none-000/linux-3.10.107/include/net/inet6_hashtables.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/net/inet6_hashtables.h 2021-11-10 11:53:56.000000000 +0000 @@ -26,6 +26,10 @@ #include #include +#ifdef CONFIG_AVM_PA +#include +#endif + struct inet_hashinfo; static inline unsigned int inet6_ehashfn(struct net *net, @@ -104,10 +108,15 @@ if (sk) return sk; - return __inet6_lookup(dev_net(skb_dst(skb)->dev), hashinfo, + sk = __inet6_lookup(dev_net(skb_dst(skb)->dev), hashinfo, &ipv6_hdr(skb)->saddr, sport, &ipv6_hdr(skb)->daddr, ntohs(dport), inet6_iif(skb)); +#ifdef CONFIG_AVM_PA + if (sk) + avm_pa_add_local_session(skb, sk); +#endif + return sk; } extern struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo,