From owner-freebsd-current Tue Jun 30 10:17:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA24786 for freebsd-current-outgoing; Tue, 30 Jun 1998 10:17:40 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA24779 for ; Tue, 30 Jun 1998 10:17:38 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id KAA06654; Tue, 30 Jun 1998 10:17:36 -0700 (PDT) Message-Id: <199806301717.KAA06654@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Andrzej Bialecki cc: freebsd-current@FreeBSD.ORG Subject: Re: Retrieving routing table via sysctl In-reply-to: Your message of "Tue, 30 Jun 1998 11:12:08 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 30 Jun 1998 10:17:36 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, > > 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... (I'm speaking here about: > > int mib[]={CTL_NET,PF_ROUTE,0,0,NET_RT_DUMP}; > ) What's missing? You have noticed that you get *more* than just the rt_msghdr struct back, right? -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message