Hi Saxon,
These days I am debugging this problem. And now I have found where the problem
is. In the function "register_device_handler(void)", it calls
"dev_add_pack(&prot_hook)", which causes the problem. Because when I comment
this line, the insmod procedure will be normal, otherwise the system will be
rebooted unnormally. My kernel version is 2.6.23.1, ARM platform, and the code
of dev_add_pack is:
void dev_add_pack(struct packet_type *pt)
{
int hash;
spin_lock_bh(&ptype_lock);
if (pt->type == htons(ETH_P_ALL))
list_add_rcu(&pt->list, &ptype_all);
else {
hash = ntohs(pt->type) & 15;
list_add_rcu(&pt->list, &ptype_base[hash]);
}
spin_unlock_bh(&ptype_lock);
}
Thanks for your help.
在2010-05-13 22:24:01,"saxon elf" <[email protected]> 写道:
Hi Sam:
It seems the PF_RING is not installed in your system.
When you compile the src, then make sure use the "make install" command.
And then you can use "modprobe pf_ring" or insmod command to add the
pf_ring to the kernel.
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc