How to assign priorities in netfilter

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

 



 
Hello,
      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.hook    = hook_func1;
              nfho1.hooknum  = NF_IP_LOCAL_OUT;
              nfho1.pf      = PF_INET;
              nfho1.priority = NF_IP_PRI_FIRST;
              nf_register_hook(&nfho1);

           nfho2.hook    = hook_func2;
              nfho2.hooknum  = NF_IP_LOCAL_OUT;
              nfho2.pf      = PF_INET;
              nfho2.priority = NF_IP_PRI_FIRST;
              nf_register_hook(&nfho2);
regards,
parag.




[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