Skip to contentSkip to conversation

Netfilter device

DISCUSSION Nhan Thanh Le 2 participants 2 messages Sep 22, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

Dear All,

I am new babie in netfilter linux, my project is caputre packet
traffic through netfilter. I read the link at http://redvip.homelinux.net/varios/netfilter/netfilter-hacking-HOWTO-4.html. And I would like to do my practice but I could not do it, because I could not find out where is the linux/include/linux/netfilter_dev.h or netfilter_device.h. Could someone help me to have it. Thank you very much and appreciate.

Nhanle

#1 lore raw
Quoted 9 lines · Nhan Thanh Le

Dear All,

I am new babie in netfilter linux, my project is caputre packet traffic through netfilter. I
read the link at
http://redvip.homelinux.net/varios/netfilter/netfilter-hacking-HOWTO-4.html.
And I would like to do my practice but I could not do it, because I
could not find out where is the linux/include/linux/netfilter_dev.h or netfilter_device.h. Could someone help me to have it. Thank you very
much and appreciate.

this has been replaced by the ip_queue mechanism (man 3 libipq).

If you're interested in just capturing (copies) of packets (not re-injecting and/or modifying them), then you could look into using the ipt_ULOG target (see the ulogd sourcecode for an example and a small library).

Be aware that both ULOG and ip_qeuue are in the process of being obsoleted by nfnetlink_queue / nfnetlink_log. No docs for them yet.

Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie