Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 1999 11:59:18 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        wollman@khavrinen.lcs.mit.edu (Garrett Wollman)
Cc:        pb@FreeBSD.org (Pierre Beyssac), cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/net if_var.h
Message-ID:  <199905201859.LAA03059@gndrsh.aac.dev.com>
In-Reply-To: <199905201613.MAA18325@khavrinen.lcs.mit.edu> from Garrett Wollman at "May 20, 1999 12:13:08 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> <<On Thu, 20 May 1999 08:38:22 -0700 (PDT), "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com> said:
> 
> > HEADSUP -- This will require compilation of many userland applications
> > that have to deal with networking code due to the change in the size
> > of the struct.  In particular anything that prints route metrics or
> > tries to deal with them will barf :-(.
> 
> If it does, it's got a seriously erroneous implementation.  User-land
> code has no business looking at struct ifaddr.

Aren't these passed in and out via the kernel routing socket?   Hummm..
man 4 route seems to say not, but man 9 rtentry shows that:

           short rt_refcnt;
                   Route entries are reference-counted; this field indicates
                   the number of external (to the radix tree) references.  If
                   the RTF_UP flag is not present, the rtfree() function will
                   delete the route from the radix tree when the last refer-
                   ence drops.

but then rt_refcnt =! ifa_refcnt so we are okay there... but down a little
further:
           struct ifaddr *rt_ifa;
                   These two fields represent the ``answer'', as it were, to
                   the question posed by a route lookup; that is, they name
                   the interface and interface address to be used in sending a
                   packet to the destination or set of destinations which this
                   route represents.

Looks like it is an explicit kernel/user land interface via the routing
socket to me....

-- 
Rod Grimes - KD7CAX - (RWG25)                   rgrimes@gndrsh.aac.dev.com
Accurate Automation, Inc.                   Reliable computers for FreeBSD
http://www.aai.dnsmgr.com


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




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