From owner-freebsd-current Tue Jun 30 06:40:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA21878 for freebsd-current-outgoing; Tue, 30 Jun 1998 06:40:32 -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 GAA21807 for ; Tue, 30 Jun 1998 06:40:15 -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 JAA19528; Tue, 30 Jun 1998 09:39:51 -0400 (EDT) (envelope-from wollman) Date: Tue, 30 Jun 1998 09:39:51 -0400 (EDT) From: Garrett Wollman Message-Id: <199806301339.JAA19528@khavrinen.lcs.mit.edu> To: Andrzej Bialecki Cc: freebsd-current@FreeBSD.ORG Subject: Retrieving routing table via sysctl In-Reply-To: References: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < 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