* How many ways are there to interact with Linux TCP/IP stack?
@ 2006-02-24 8:37 Mayank
2006-02-27 1:33 ` Philip Craig
0 siblings, 1 reply; 2+ messages in thread
From: Mayank @ 2006-02-24 8:37 UTC (permalink / raw)
To: netfilter
Friends,
I am new to netfilter world, can someone please
clarify on how many ways are there to interact with
the Linux TCP/IP stack, based on google reading, I
think it can be achieved in following 3 ways-
1. Userspace ¬– LIBIPQ can be used in
conjugation with –j QUEUE
2. Kernal modules- by using nf_register_hook
3. IPTABLES match – by using register_match
Are there more ways? does anybody has any comparison
info in terms of performance etc ? Which one is
faster?
Thanks,
Mayank
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How many ways are there to interact with Linux TCP/IP stack?
2006-02-24 8:37 How many ways are there to interact with Linux TCP/IP stack? Mayank
@ 2006-02-27 1:33 ` Philip Craig
0 siblings, 0 replies; 2+ messages in thread
From: Philip Craig @ 2006-02-27 1:33 UTC (permalink / raw)
To: Mayank; +Cc: netfilter
On 02/24/2006 06:37 PM, Mayank wrote:
> I am new to netfilter world, can someone please
> clarify on how many ways are there to interact with
> the Linux TCP/IP stack, based on google reading, I
> think it can be achieved in following 3 ways-
>
> 1. Userspace ¬– LIBIPQ can be used in
> conjugation with –j QUEUE
> 2. Kernal modules- by using nf_register_hook
> 3. IPTABLES match – by using register_match
>
> Are there more ways? does anybody has any comparison
> info in terms of performance etc ? Which one is
> faster?
Basically, the only way is nf_register_hook. The other 2 are just
infrastructure built on top of that.
That is, iptables registers a netfilter hook, and calls the matches
and targets from this hook.
QUEUE is just a iptables target, so it is called by iptables.
For performance, QUEUE is clearly slower, since it passes the packet
to user space.
Choosing between netfilter hooks or iptables matches should be based
purely on whether you want to use iptables functionality.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-27 1:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-24 8:37 How many ways are there to interact with Linux TCP/IP stack? Mayank
2006-02-27 1:33 ` Philip Craig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.