* 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
* Re: source-mac filtering
@ 2004-01-12 17:56 Ramin Dousti
2004-01-12 19:04 ` Packet injection Scott MacKay
0 siblings, 1 reply; 2+ messages in thread
From: Ramin Dousti @ 2004-01-12 17:56 UTC (permalink / raw)
To: netfilter
On Sun, Jan 11, 2004 at 05:50:52PM +0000, Antony Stone wrote:
> On Sunday 11 January 2004 5:39 pm, Håkan Engblom wrote:
>
> > Yes, I've come to realize that.
> >
> > Is it technically necessary for the dhcp-server to do so, or could it be
> > that some other dhcpd behaves different ?
>
> It is technically necessary, because DHCP clients do not have IP addressing
> information when they begin the communication; everything is done using
> ethernet broadcasts. Such packets cannot be acquired using a standard
> socket bind, so the server application needs to listen at a lower level than
> the TCP/IP stack allows.
I guess he's asking why dhcp-server uses NETLINK. Your answer is for the
clients, right?
Ramin
^ 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