nf_register_hook(), nf_unregister_hook()

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

 






Hi,

 Can nf_register_hook() and nf_unregister_hook ever fail ? , i.e shld I
check for nf_register_hook() returning a value of less than 0 in my code. I
looked at its definition in net/core/netfilter.c, it always returns 0,
though in some places in kernel code, I find ppl checking for a
<0(net/ipv4/netfilter/arptable_filter.c)return and at some places I dont
(net/ipv4/netfilter/ip_fw_compat.c)?, is it really required ?

thanks
Amit
*****************    HSS-Unclassified    *************


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