Subject: Re: Why skbuff.h different for 2.4 and 2.6 kernels?

From: Arnaldo Carvalho de Melo <[email-masked]>
Date: Mon, 11 Apr 2005 18:01:04 -0300

On Apr 11, 2005 1:37 PM, linux lover <[email-masked]> wrote:
> hello,
> 1) In 2.4 kernel series skbuff.h has following unions
> for each TCP/IP layer.

>         union {
>                 unsigned char   *raw;
>         } mac;
> 
>  why mac union in 2.6 not have ethernet header? Also
> spxhdr and ipxhdr structures are removed from nh and h
> unions.

Work in progress, the ultimate goal is to get rid of all of these unions and
have just:

        void *transport_header;
        void *network_header;
        void *link_header;

So just set mac.raw directly and cast it to the desired type.

- Arnaldo