Linux Netfilter discussions
 help / color / mirror / Atom feed
* Packet injection
  2004-01-12 17:56 source-mac filtering Ramin Dousti
@ 2004-01-12 19:04 ` Scott MacKay
  0 siblings, 0 replies; 2+ messages in thread
From: Scott MacKay @ 2004-01-12 19:04 UTC (permalink / raw)
  To: netfilter

I was wondering, is there any sample code of injecting
new packets while userspace processing?  I was looking
for something that could add a new packet in the QUEUE
target userspace program or to inject a packet back at
the start of the whole processing.  I was looking to
inject with the hope of writing the entire packet
header structure, not just the IP contents.  Any
samples or URLS?

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Packet Injection
@ 2005-05-12 11:55 Oliver Korpilla
  0 siblings, 0 replies; 2+ messages in thread
From: Oliver Korpilla @ 2005-05-12 11:55 UTC (permalink / raw)
  To: netfilter-devel, netfilter

Hello!

I'm new to the list, and what I've found in the list archives regarding
packet injection is somewhat lacking in detail.

What I want to do:

I want to write a tool that sends and receives packets within the kernel
context. It's generates traffic on one interface and receives the result
of some blackbox modification to it on another interface.

So I need both packet filtering / netfilter like capabilities and packet
injection capabilities.

While the way to go for the receiving end of the application is pretty
straightforward, my question is: How to inject packets inside the kernel?

One idea was to create the packets externally, store them in kernel RAM,
and use netfilter hooks to inject them. The injection would be done by a
linux kernel module or rather by a periodic tasklet registered by that
module.

Can you comment whether this is a feasible approach?

Or could you come up with a better one, that fulfills the requirement of
being in-kernel?

Thanks and with kind regards,
Oliver Korpilla


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-12 11:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-12 11:55 Packet Injection Oliver Korpilla
  -- strict thread matches above, loose matches on Subject: below --
2004-01-12 17:56 source-mac filtering Ramin Dousti
2004-01-12 19:04 ` Packet injection Scott MacKay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox