--- zzzz-none-000/linux-4.19.183/net/ipv4/udp.c 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/net/ipv4/udp.c 2023-06-28 08:54:21.000000000 +0000 @@ -116,6 +116,8 @@ #include #include +#include + struct udp_table udp_table __read_mostly; EXPORT_SYMBOL(udp_table); @@ -1942,6 +1944,7 @@ static int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) { struct udp_sock *up = udp_sk(sk); + struct net *net = dev_net(skb->dev); int is_udplite = IS_UDPLITE(sk); /* @@ -1949,6 +1952,9 @@ */ if (!xfrm4_policy_check(sk, XFRM_POLICY_IN, skb)) goto drop; + + avm_pa_add_local_session(AVM_PA_NET_IP_DEVINFO(net), skb, sk); + nf_reset(skb); if (static_branch_unlikely(&udp_encap_needed_key) && up->encap_type) {