Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Sep 2004 09:47:49 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sbin/ifconfig ifconfig.c src/sys/net if.c if.h
Message-ID:  <20040902064749.GB43702@ip.net.ua>
In-Reply-To: <20040901204452.GO31434@elvis.mu.org>
References:  <200409011822.i81IMERb017602@repoman.freebsd.org> <73F8DDC079929FAA3D43CA2E@caspian.scsiguy.com> <20040901204452.GO31434@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, Sep 01, 2004 at 01:44:52PM -0700, Alfred Perlstein wrote:
> * Justin T. Gibbs <gibbs@scsiguy.com> [040901 13:43] wrote:
> > 
> > > brooks      2004-09-01 18:22:14 UTC
> > > 
> > >   FreeBSD src repository
> > > 
> > >   Modified files:
> > >     sbin/ifconfig        ifconfig.c 
> > >     sys/net              if.c if.h 
> > >   Log:
> > >   Use a spare byte in struct if_data to store the structure size without
> > >   increasing it.  Add code to ifconfig to use this size to find the
> > >   sockaddr_dl after the struct if_data in the routing message.  This
> > >   allows struct if_data to grow (up to 255 bytes) without breaking
> > >   ifconfig.
> > 
> > You could squeeze out 256 bytes if you treat 0 as meaning 256 - just like
> > the SCSI protocol.
> 
> Or treat 0 as "look at some other location for length" of int width. :)
> 
That wouldn't be backwards compatible, which was the intent.


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (FreeBSD)

iD8DBQFBNsIVqRfpzJluFF4RAjFfAJ9iPqZ1r2M+8lheJZP1LhuMAu/iMwCeP6OH
HNScStxiAoMWPVNXe7GxIE8=
=uvh/
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040902064749.GB43702>