--- zzzz-none-000/linux-4.9.279/net/ipv4/netfilter/ip_tables.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/net/ipv4/netfilter/ip_tables.c 2023-02-08 10:58:16.000000000 +0000 @@ -9,6 +9,13 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ + +/* + Includes Intel Corporation's changes/modifications dated: [Mar.2017]. + Changed/modified portions - Copyright © 2017, Intel Corporation + 1. PP Hook +*/ + #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include #include @@ -31,6 +38,10 @@ #include #include "../../netfilter/xt_repldata.h" +#ifdef CONFIG_TI_PACKET_PROCESSOR +#include +#endif + MODULE_LICENSE("GPL"); MODULE_AUTHOR("Netfilter Core Team "); MODULE_DESCRIPTION("IPv4 packet filter"); @@ -373,6 +384,20 @@ xt_write_recseq_end(addend); local_bh_enable(); +#ifdef CONFIG_TI_PACKET_PROCESSOR + if (acpar.hotdrop) + { + ti_hil_pp_event (TI_CT_NETFILTER_DISCARD_PKT, (void *)skb); + } + else + { + if (verdict == NF_DROP) + { + ti_hil_pp_event(TI_CT_NETFILTER_DISCARD_PKT, (void *)skb); + } + } +#endif + if (acpar.hotdrop) return NF_DROP; else return verdict; @@ -1112,6 +1137,9 @@ } vfree(counters); xt_table_unlock(t); +#ifdef CONFIG_TI_PACKET_PROCESSOR + ti_hil_pp_event (TI_CT_NETFILTER_TABLE_UPDATE, (void *)t); +#endif //CONFIG_TI_PACKET_PROCESSOR return ret; put_module: