cvs commit: src/sbin/ifconfig ifconfig.c src/sys/net if.c if.h
Brooks Davis
brooks at one-eyed-alien.net
Wed Sep 1 14:12:03 PDT 2004
On Wed, Sep 01, 2004 at 02:44:45PM -0600, Justin T. Gibbs 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.
Unfortunaly, we're using 0 as the magic, not-set variable. My intent is to
add some better hurristics for the 0 case if we do end up keeping this
hack. Long term, we probably need to rev the routing message API to fix
this kind of junk, but that's a massive undertaking.
-- Brooks
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040901/164ac597/attachment.bin
More information about the cvs-src
mailing list