From owner-freebsd-current Tue Jun 30 05:12:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA08240 for freebsd-current-outgoing; Tue, 30 Jun 1998 05:12:38 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from widefw.csl.sony.co.jp (widefw.csl.sony.co.jp [133.138.1.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA08109 for ; Tue, 30 Jun 1998 05:11:53 -0700 (PDT) (envelope-from kjc@csl.sony.co.jp) Received: from hotaka.csl.sony.co.jp (root@hotaka.csl.sony.co.jp [43.27.98.57]) by widefw.csl.sony.co.jp (8.8.8/3.6W) with ESMTP id VAA18680; Tue, 30 Jun 1998 21:11:45 +0900 (JST) Received: from localhost (kjc@[127.0.0.1]) by hotaka.csl.sony.co.jp (8.8.8/3.6W/hotaka/98021914) with ESMTP id VAA03317; Tue, 30 Jun 1998 21:11:44 +0900 (JST) Message-Id: <199806301211.VAA03317@hotaka.csl.sony.co.jp> 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." Date: Tue, 30 Jun 1998 21:11:43 +0900 From: Kenjiro Cho Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andrzej 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... (I'm speaking here about: sockaddrs come after struct rt_msghdr. The format is identical to that of a routing socket. Richard Stevens describes it in detail in UNIX Network Programming vol.1 2ed chapter 17. --Kenjiro To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message