Date: Tue, 30 Jun 1998 09:39:51 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Andrzej Bialecki <abial@nask.pl> Cc: freebsd-current@FreeBSD.ORG Subject: Retrieving routing table via sysctl Message-ID: <199806301339.JAA19528@khavrinen.lcs.mit.edu> In-Reply-To: <Pine.NEB.3.95.980630110532.19597A-100000@korin.warman.org.pl> References: <Pine.NEB.3.95.980630110532.19597A-100000@korin.warman.org.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 30 Jun 1998 11:12:08 +0200 (CEST), Andrzej Bialecki <abial@nask.pl> said: > I have this question as in Subject. All I know thus far is that there are > sysctl's which are named appropriately, but what they return is a series > of struct rt_msghdr, which doesn't contain the struct sockaddr of the > route itself and of the gateway... The message header includes a bitfield which indicates which of the route's addresses are included in the message. They immediately follow the header in MSB-first order. -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?199806301339.JAA19528>