|
What are the API for receiving and sending data in IPv4 and IPv6? How do u know when the kernel dropped the packets? http://readlist.com/lists/vger.kernel.org/linux-kernel/95/477576.html Hi, - The IPv6 handler for receiving packets is ipv6_rcv() in net/ipv6/ip6_input.c. It is called by netif_receive_skb() (net/core/dev.c) According to the documentation, the return value of netif_receive_skb() should be NET_RX_DROP when the packet is dropped; though this return value is usually not used (except maybe for congestion), this patch fixes the ipv6_rcv() to return NET_RX_DROP when the packet is dropped (note that NET_RX_DROP value **is not** 0 but 1; NET_RX_SUCCESS value is in fact 0). Regards, Rami Rosen |
