How to set proper link type in a kernel module(a netdevice) for allowing tcpdump?
Hi, all
I'm building a kernel module, which is a virtul net device that can hook packets with netfilter, and deals with packets and then returns the processed packets back to the kernel. The virtual device can be shown as an interface in ifconfig.
The module can be successfully loaded, and the interface is also successfully up in ifconfig. But when I tcpdump the interface, it told me "unsupported data link type USB_LINUX", but I never did any USB related processing in the module, can somebody tell me what the issue probably is? Are there any parameters in the module deciding the interface as USB_LINUX?
Many thanks to you!
|