Re: How to assign priorities in netfilter

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

 




I have written 2 netfilter kernel modules with struct nf_hook_ops nfho1 in one module and struct nf_hook_ops nfho2 in another. Now what i want is to execute Module 1 first and then Module 2. How can i do that? Structure is initialised as
...
nfho1.priority = NF_IP_PRI_FIRST;
...
nfho2.priority = NF_IP_PRI_FIRST;

I am not familiar with netfilter hooks, but maybe the priority field can help you.


--Swapnil

"Theory is when you know something, but it doesn't work.Practice is when something works, but you don't know why.Programmers combine theory and practice: Nothing works and they don't know why ..."

--
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