Skip to contentSkip to conversation

Netfilter hook! Insert error (insmod)

DISCUSSION Tuan nguyen hoang anh 3 participants 3 messages Mar 30, 2004 – Mar 31, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Hi, i'm writting a netfilter hook module. I compiled it successfull but when i insert it into kernel then it occurs errors following:

"unresolved symbol nf_register_hook"
"unresolved symbol nf_unregister_hook"

help me, please!
Thanks a lot!

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

#1 lore raw
Quoted 6 lines · Tuan nguyen hoang anh

Hi, i'm writting a netfilter hook module. I compiled it successfull but when i insert it into kernel then it occurs errors following:

"unresolved symbol nf_register_hook"
"unresolved symbol nf_unregister_hook"

Looks like your running kernel is not built with support for netfilter.

Make sure you run the same kernel build as the kernel headers you used when building your module.

Also make sure the compile flags are correct for your kernel.

Recommended method for building modules is to have them integrated in the kernel buildprocess. See Netfilter patch-o-matic-ng for a simple method of incorporating separately developed modules into the kernel source tree.

Regards
Henrik

#2 lore raw
In reply to Tuan nguyen hoang anh

--- Tuan nguyen hoang anh

Quoted 6 lines · <[email protected]> wrote:

Hi, i'm writting a netfilter hook module. I compiled it successfull but when i insert it into kernel then it occurs errors following:

"unresolved symbol nf_register_hook"
"unresolved symbol nf_unregister_hook"

modversions related problem?
what is the kernel version?

=====
Regards,
Kiran Kumar Immidi

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html