--- zzzz-none-000/linux-2.6.39.4/net/ipv4/ip_input.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/net/ipv4/ip_input.c 2021-11-10 13:38:18.000000000 +0000 @@ -112,6 +112,11 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ +/* + Includes Intel Corporation's changes/modifications dated: [Dec.2013]. + Changed/modified portions - Copyright © 2011, Intel Corporation + 1. PP Hook +*/ #include #include @@ -145,6 +150,10 @@ #include #include +#ifdef CONFIG_TI_PACKET_PROCESSOR +#include +#endif + /* * Process Router Attention IP option (RFC 2113) */ @@ -365,6 +374,10 @@ return dst_input(skb); drop: +#ifdef CONFIG_TI_PACKET_PROCESSOR + /* Create a NULL PP device, to drop all dropped packets before they reach the host */ + ti_hil_pp_event (TI_IP_DISCARD_PKT_IPV4, (void *)skb); +#endif //CONFIG_TI_PACKET_PROCESSOR kfree_skb(skb); return NET_RX_DROP; } @@ -440,6 +453,10 @@ /* Must drop socket now because of tproxy. */ skb_orphan(skb); +#ifdef CONFIG_AVM_PA + AVM_PKT_INFO(skb)->ptype_pid_handle = AVM_PA_PTYPE_DEVINFO(pt)->pid_handle; +#endif + return NF_HOOK(NFPROTO_IPV4, NF_INET_PRE_ROUTING, skb, dev, NULL, ip_rcv_finish);