netdev
[Top] [All Lists]

Re: [INET] Add flags field to ip_tunnel_parm

To: "YOSHIFUJI Hideaki / ?$B5HF#1QL@" <yoshfuji@xxxxxxxxxxxxxx>
Subject: Re: [INET] Add flags field to ip_tunnel_parm
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Sep 2004 07:28:43 +1000
Cc: davem@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20040914.215205.110659321.yoshfuji@linux-ipv6.org>
References: <20040914121617.GA5652@gondor.apana.org.au> <20040914.215205.110659321.yoshfuji@linux-ipv6.org>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040722i
On Tue, Sep 14, 2004 at 09:52:05PM +0900, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote:
> 
> Kernel will get garbage from old binaries,
> and kernel will break user space if it tries 
> to get params into old structure.

The only application that I know of does a memset on the structure
so it'll be fine.  Are you aware of any user-space applications that
initialises every field explicitly instead of using memset?

There are two in-kernel users as well (ipmr/addrconf) and they both
initialise it with memset too.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

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