Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/net Pull up revisions 1.25-1.26 (via patch, request...



details:   https://anonhg.NetBSD.org/src/rev/19c87d1ea6e1
branches:  netbsd-1-5
changeset: 491134:19c87d1ea6e1
user:      he <he%NetBSD.org@localhost>
date:      Thu Apr 05 12:43:36 2001 +0000

description:
Pull up revisions 1.25-1.26 (via patch, requested by itojun):
  Mark cloned routes with RTF_CLONED.  Present it in ``netstat -r''
  output by ``c''.

  Let static routes overwrite cloned routes, as cloned routes can
  come back again if necessary.  Should fix PR#11916 and maybe some
  other PRs with ARP behavior.

  Cleanup cloned route when parent route (RTF_CLONING) goes away.
  Adds rt_parent to link parent from child (like NRL did, ours do
  refcnt rt_refcnt properly).

diffstat:

 sys/net/route.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 46ac3ab69db3 -r 19c87d1ea6e1 sys/net/route.h
--- a/sys/net/route.h   Thu Apr 05 12:43:22 2001 +0000
+++ b/sys/net/route.h   Thu Apr 05 12:43:36 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.h,v 1.22 2000/05/04 17:33:03 ragge Exp $ */
+/*     $NetBSD: route.h,v 1.22.4.1 2001/04/05 12:43:36 he Exp $        */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -109,6 +109,7 @@
        struct  rt_metrics rt_rmx;      /* metrics used by rx'ing protocols */
        struct  rtentry *rt_gwroute;    /* implied entry for gatewayed routes */
        LIST_HEAD(, rttimer) rt_timer;  /* queue of timeouts for misc funcs */
+       struct  rtentry *rt_parent;     /* parent of cloned route */
 };
 
 /*
@@ -138,6 +139,7 @@
 #define RTF_LLINFO     0x400           /* generated by ARP or ESIS */
 #define RTF_STATIC     0x800           /* manually added */
 #define RTF_BLACKHOLE  0x1000          /* just discard pkts (during updates) */
+#define        RTF_CLONED      0x2000          /* this is a cloned route */
 #define RTF_PROTO2     0x4000          /* protocol specific routing flag */
 #define RTF_PROTO1     0x8000          /* protocol specific routing flag */
 



Home | Main Index | Thread Index | Old Index