--- zzzz-none-000/linux-2.6.39.4/net/ipv4/netfilter/nf_nat_core.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/net/ipv4/netfilter/nf_nat_core.c 2021-11-10 13:23:11.000000000 +0000 @@ -20,6 +20,9 @@ #include #include #include +#ifdef CONFIG_TI_PACKET_PROCESSOR +#include +#endif #include #include @@ -332,6 +335,16 @@ else ct->status |= IPS_SRC_NAT_DONE; +#ifdef CONFIG_TI_PACKET_PROCESSOR + /*packet processor addition + in case we have a drop session and a client is trying to receive a traffic with the same + properties (source and destenation ip , source and destination ports) as the drop session , the session needs to be deleted*/ + if ((ct->status & IPS_SRC_NAT_DONE) != 0) + { + ti_hil_pp_event( TI_CT_NETFILTER_CANCEL_DISCARD_ACCELERATION, (void *)ct ); + } +#endif + return NF_ACCEPT; } EXPORT_SYMBOL(nf_nat_setup_info);