LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   mac.raw missing from sk_buff in Linux 2.6.22.X (https://www.linuxquestions.org/questions/programming-9/mac-raw-missing-from-sk_buff-in-linux-2-6-22-x-664459/)

stevebeiko 08-21-2008 06:10 PM

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:

include/linux/skbuff.h

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.


All times are GMT -5. The time now is 02:47 AM.