From owner-freebsd-current Tue Jun 30 10:22:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA25741 for freebsd-current-outgoing; Tue, 30 Jun 1998 10:22:55 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA25711 for ; Tue, 30 Jun 1998 10:22:35 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.8.8/8.8.8) id NAA20417; Tue, 30 Jun 1998 13:22:03 -0400 (EDT) (envelope-from wollman) Date: Tue, 30 Jun 1998 13:22:03 -0400 (EDT) From: Garrett Wollman Message-Id: <199806301722.NAA20417@khavrinen.lcs.mit.edu> To: Jim Shankland Cc: abial@nask.pl, freebsd-current@FreeBSD.ORG Subject: Re: Retrieving routing table via sysctl In-Reply-To: <199806301327.GAA09844@biggusdiskus.flyingfox.com> References: <199806301327.GAA09844@biggusdiskus.flyingfox.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < 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