Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2000 21:17:05 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        "gbnaidu " <gbnaidu@my-deja.com>, freebsd-net@FreeBSD.ORG, brian@hak.lan.Awfulhak.org
Subject:   Re: How to get outgoing interface... 
Message-ID:  <200002112117.VAA00361@hak.lan.Awfulhak.org>
In-Reply-To: Message from Garrett Wollman <wollman@khavrinen.lcs.mit.edu>  of "Tue, 08 Feb 2000 10:47:05 EST." <200002081547.KAA33886@khavrinen.lcs.mit.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> <<On Mon, 07 Feb 2000 21:29:55 -0800, "gbnaidu  " <gbnaidu@my-deja.com> 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 <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002112117.VAA00361>