LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-29-2012, 10:54 PM   #1
liubingpang
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Rep: Reputation: Disabled
Question 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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
undefined reference to `__this_module' when trying to link module to kernel Rostfrei Linux - General 1 04-02-2014 02:43 AM
How to link a static library to a kernel module pallava Linux - Newbie 1 09-26-2007 08:25 PM
[B]How we can link kernal module statically in kernel?? [/B] htandel Linux - Kernel 2 06-01-2007 06:25 AM
kernel module for D-Link DFE-530TX NIC Gaz_za Linux - Newbie 2 06-01-2007 06:22 AM
tethereal and tcpdump: -y invalid data link type 1 murugesan Linux - Wireless Networking 0 05-30-2004 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration