--- venum <venum@intoto.com> wrote: > Hi, > > I am facing a problem with the part of kernel code that I am developing for > a linux router. The objective is to encapsulate the received IP packet with > a UDP header and an extra IP header and forward it to a different > destination. > I am encapsulating the original packet and passing it to the stack using > 'netif_rx'. I want the stack to forward the packet to changed destination. > At the destination the packet will be decapsulated. > But once the packet is given to the 'netif_rx', stack is dropping the packet > silently. > I don't know which part of the stack code is dropping the packet. Presume the packets are not throttling the backlog queue. One suggestion: If before netif_rx() is called, eth_type_trans() in the driver code marked the frame as going to other hosts (skb->pkt_type=PACKET_OTHERHOST) based on the frame's MAC address, ip_rcv() will drop the packet at the first sight. Let me know how it goes. Regards, Wei ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html