Re: NF_STOLEN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 2008-11-21 03:17, 赵磊 wrote:

>Hi,
>
>I register a NF_IP_PRE_ROUTING hook that check the incoming packets. I’m
>trying to return NF_STOLEN on particular TCP packets and later pass them
>to the TCP module of the kernel. Any advice about how this can be achieved? 

PREROUTING is invoked from here:

net/ipv4/ip_input.c:
        return NF_HOOK(NFPROTO_IPV4, NF_INET_PRE_ROUTING, skb, dev, NULL, 
                       ip_rcv_finish); 
or here, net/ipv6/ip6_input.c:
        return NF_HOOK(NFPROTO_IPV6, NF_INET_PRE_ROUTING, skb, dev, NULL, 
                       ip6_rcv_finish); 
(or whichever other protocol you use)
So you just call the appropriate functions (ip{,6}_rcv_finish).
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux