Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-21-2008, 07:10 PM   #1
LQ Newbie
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
mac.raw missing from sk_buff in Linux 2.6.22.X

I am integrating a linux device driver code to linux.

In the device driver the following code:

extern void func1(sk_buff * skb)

skb->mac.raw = skb->data;

when compiling an error code shows mac.raw undefined variable.

Looked into:


struct sk_buff{

And found no definitions of mac union or raw.

Is mac.raw obsolete from older linux kernels? What should I change the code to to store the skb->data into, if mac.raw is obsolete now.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to access mac address using sk_buff dogslayer Programming 4 04-20-2006 10:04 PM
how to obtain mac address using sk_buff??? dogslayer Linux - Networking 2 04-14-2006 08:22 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:04 AM.

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