From owner-freebsd-net Fri Feb 11 17: 8:22 2000 Delivered-To: freebsd-net@freebsd.org Received: from awfulhak.org (dynamic-84.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.212]) by builder.freebsd.org (Postfix) with ESMTP id BD00B3E34 for ; Fri, 11 Feb 2000 17:08:01 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id AAA16476; Sat, 12 Feb 2000 00:32:36 GMT (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id VAA00361; Fri, 11 Feb 2000 21:17:05 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200002112117.VAA00361@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Garrett Wollman Cc: "gbnaidu " , freebsd-net@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: How to get outgoing interface... In-Reply-To: Message from Garrett Wollman of "Tue, 08 Feb 2000 10:47:05 EST." <200002081547.KAA33886@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 11 Feb 2000 21:17:05 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > < said: > > > if ( (sa = rti_info[RTAX_DST]) != NULL) { process the destination address; > > Stop right there. The routing message isn't in this format. > > See the code Brian Somers pointed out, or route.c, for an example of > how to interpret a routing message. And be careful of src/usr.sbin/ppp/route.c - it has a bug in it where it fails to align itself properly in the data returned by the NET_RT_IFLIST mib... I have a patch queued for when the code freeze is lifted (queued behind some IPv6 changes), so if you're interested, drop me a line. > -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 -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message