Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jun 1998 13:22:03 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Jim Shankland <jas@flyingfox.com>
Cc:        abial@nask.pl, freebsd-current@FreeBSD.ORG
Subject:   Re: Retrieving routing table via sysctl
Message-ID:  <199806301722.NAA20417@khavrinen.lcs.mit.edu>
In-Reply-To: <199806301327.GAA09844@biggusdiskus.flyingfox.com>
References:  <199806301327.GAA09844@biggusdiskus.flyingfox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 30 Jun 1998 06:27:57 -0700 (PDT), Jim Shankland <jas@flyingfox.com> said:

> struct rt_msghdr tell you which sockaddr's are present.  Beware:  the
> sockaddr for a netmask is only 8 bytes long.  

That's because it really isn't a sockaddr at all -- it's just a byte
count followed by a bit mask.  The only reason you don't see three-byte
masks for IP /8 routes is the alignment padding.

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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