--- zzzz-none-000/linux-4.9.231/net/ipv4/udp.c 2020-07-22 07:10:54.000000000 +0000 +++ falcon-5590-729/linux-4.9.231/net/ipv4/udp.c 2022-03-30 12:03:35.000000000 +0000 @@ -116,6 +116,10 @@ #include #include +#ifdef CONFIG_AVM_PA +#include +#endif + struct udp_table udp_table __read_mostly; EXPORT_SYMBOL(udp_table); @@ -1022,7 +1026,8 @@ flowi4_init_output(fl4, ipc.oif, sk->sk_mark, tos, RT_SCOPE_UNIVERSE, sk->sk_protocol, flow_flags, - faddr, saddr, dport, inet->inet_sport); + faddr, saddr, dport, inet->inet_sport, + sk->sk_uid); security_sk_classify_flow(sk, flowi4_to_flowi(fl4)); rt = ip_route_output_flow(net, fl4, sk); @@ -1514,6 +1519,11 @@ */ if (!xfrm4_policy_check(sk, XFRM_POLICY_IN, skb)) goto drop; + +#ifdef CONFIG_AVM_PA + avm_pa_add_local_session(skb, sk); +#endif + nf_reset(skb); if (static_key_false(&udp_encap_needed) && up->encap_type) {