netdev
[Top] [All Lists]

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

To: linux lover <linux_lover2004@xxxxxxxxx>
Subject: Re: Why skbuff.h different for 2.4 and 2.6 kernels?
From: Arnaldo Carvalho de Melo <arnaldo.melo@xxxxxxxxx>
Date: Mon, 11 Apr 2005 18:01:04 -0300
Cc: netdev@xxxxxxxxxxx
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=OCdCTtIfPGxDtrK7a8tgjzcOOlSvYdmGvSui8aMokmjOo2IIMW4KYjETClZ9UjOQ3rbC48qibeBVNGoePmZXQwNhd4zLZ5PJSuY8AyyZ0zkLrQaaU57JASttpEs8nSLvnIzoa46FMjtx0/eY+kHMhZ35B2jwrawrMT4fTt3W/04=
In-reply-to: <20050411163753.20149.qmail@web52210.mail.yahoo.com>
References: <20050411163753.20149.qmail@web52210.mail.yahoo.com>
Reply-to: acme@xxxxxxxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
On Apr 11, 2005 1:37 PM, linux lover <linux_lover2004@xxxxxxxxx> 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

<Prev in Thread] Current Thread [Next in Thread>