Hello,
I am trying to reroute incoming packets from netfilter (PREROUTING
hook). Stealing and sending the packet
off using dev_queue_xmit works, but I also want to deliver some
packets locally.
Unfortunately I cannot find the correct manner to inject a packet
into the networking code. I searched through the mailing list and I
also have a copy of T. Herbert's book 'the linux tcp/ip stack'.
Currently I'm calling netif_rx with a udp packet. Ethereal sees it
but it is not delivered in the higher protocol layer, instead I
create a loop. Accepting the packet through netfilter works as expected.
What method should I use to locally deliver a packet (without
creating a loop in netfilter) and which properties should I have to
set in the skb? I would also like to be able to choose on which
interface I deliver the packet.
Kind Regards,
Rudolf Strijkers
TNO Telecom, The Netherlands
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html