[lkml]   [2003]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Reinjecting IP Packets
On Fri, 22 Aug 2003, Ben Greear wrote:

> Patrick Sodre Carlos wrote:
> > Hi Guys,
> > I'm trying to figure out what is the best way to reinject IP packets
> > into the stack. Does anyone have good/right/left ideas on this?
> Maybe netif_rx() in net/core/dev.c ?

If you want an example of how this is done, look in /net/ipv4/ipip.c and
(I'm pretty sure) /net/ipv4/ip_gre.c. I only know 2.4.*, but the files
still exist in 2.6, and they probably do it the same way.

Fairly elegant way to strip some headers and send it though again.

Hope that helps,
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:48    [W:0.064 / U:2.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site