cvs commit: src/sbin/ifconfig ifconfig.c src/sys/net if.c if.h

Ruslan Ermilov ru at freebsd.org
Wed Sep 1 23:47:56 PDT 2004


On Wed, Sep 01, 2004 at 01:44:52PM -0700, Alfred Perlstein wrote:
> * Justin T. Gibbs <gibbs at 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 at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040902/0f0b901c/attachment.bin


More information about the cvs-src mailing list