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



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux