Re: About netfilter hook!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



/include/linux/netfilter.h
/include/linux/netfilter_ipv4.h
...
start with nf_register_hook(), nf_unregister_hook(), nf_hookfn()...

For an understanding of how hooks are called, search for NF_HOOK, and the IP
hooks NF_IP_PRE_ROUTING, NF_IP_LOCAL_OUT.... in the linux kernel source. You
can also look at ARP hooks and bridge hooks. The later is useful in the
event you seek network transparency.

Good luck,

Stuart


----- Original Message ----- 
From: "YANG KWCH" <yangkwch@yahoo.com.cn>
To: <kernelnewbies@nl.linux.org>
Sent: Monday, May 17, 2004 6:51 AM
Subject: About netfilter hook!


> If I want to use netfilter hook to get packet, modify
> the packet and then forword it to another adapter.
> Which function can I use?
>
> _________________________________________________________
> Do You Yahoo!?
> 嫌邮箱太小?雅虎电邮自助扩容!
>
http://cn.rd.yahoo.com/mail_cn/tag/10m/*http://cn.mail.yahoo.com/event/10m.html
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>
>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux