cvs commit: src/sys/net route.h rtsock.c

Gleb Smirnoff glebius at FreeBSD.org
Wed Mar 15 20:44:07 UTC 2006


  Andre,

On Wed, Mar 15, 2006 at 07:39:09PM +0000, Andre Oppermann wrote:
A>   - The unused rtm_use field in struct rt_msghdr is redesignated as
A>     rtm_fmask field to communicate route flag changes in RTM_CHANGE
A>     messages from userland.  The use count of a route was moved to
A>     rtm_rmx a long time ago.  For source code compatibility reasons
A>     a define of rtm_use to rtm_fmask is provided.

Be careful. rtm_use isn't unused - it is used sysctl_dumpentry()
to return the usage of route to userland. However, I don't see
programs netstat(1) and route(1) to read it. Anyway, I think
it deserves a comment.

A>   These changes faciliate running of multiple cooperating routing
A>   daemons at the same time without causing undesired interference.
A>   Open[BGP|OSPF]D make use of these features to have IGP routes
A>   override EGP ones.

Please explain how is this done. Does radix allow presence of two
identical prefixes in tree, and we distinguish them by rt->rt_flags?

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE


More information about the cvs-src mailing list