Source-Changes-HG archive

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

[src/trunk]: src/sbin/route Teach route(8) about RTF_LOCAL.



details:   https://anonhg.NetBSD.org/src/rev/b712a6f99053
branches:  trunk
changeset: 336340:b712a6f99053
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Feb 26 09:56:11 2015 +0000

description:
Teach route(8) about RTF_LOCAL.

diffstat:

 sbin/route/route.8  |  5 +++--
 sbin/route/route.c  |  6 +++---
 sbin/route/rtutil.c |  3 ++-
 sbin/route/show.c   |  6 +++---
 4 files changed, 11 insertions(+), 9 deletions(-)

diffs (97 lines):

diff -r 634d6c2fa097 -r b712a6f99053 sbin/route/route.8
--- a/sbin/route/route.8        Thu Feb 26 09:54:46 2015 +0000
+++ b/sbin/route/route.8        Thu Feb 26 09:56:11 2015 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: route.8,v 1.53 2014/12/01 20:30:27 christos Exp $
+.\"    $NetBSD: route.8,v 1.54 2015/02/26 09:56:11 roy Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)route.8    8.4 (Berkeley) 6/1/94
 .\"
-.Dd December 1, 2014
+.Dd February 26, 2015
 .Dt ROUTE 8
 .Os
 .Sh NAME
@@ -304,6 +304,7 @@
 .It Li G Ta "" Ta " RTF_GATEWAY" Ta forwarded to dest by intermediary
 .It Li H Ta "" Ta " RTF_HOST" Ta host entry (net otherwise)
 .It Li L Ta -llinfo Ta " RTF_LLINFO" Ta translate proto to link addr
+.It Li l Ta "" Ta " RTF_LOCAL" Ta Route represents a local address
 .It Li M Ta "" Ta " RTF_MODIFIED" Ta modified dynamically (redirect)
 .It Li p Ta -proxy Ta " RTF_ANNOUNCE" Ta make entry a link level proxy
 .It Li R Ta -reject Ta " RTF_REJECT" Ta send ICMP unreachable on match
diff -r 634d6c2fa097 -r b712a6f99053 sbin/route/route.c
--- a/sbin/route/route.c        Thu Feb 26 09:54:46 2015 +0000
+++ b/sbin/route/route.c        Thu Feb 26 09:56:11 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.149 2014/12/20 13:15:48 prlw1 Exp $        */
+/*     $NetBSD: route.c,v 1.150 2015/02/26 09:56:11 roy Exp $  */
 
 /*
  * Copyright (c) 1983, 1989, 1991, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)route.c    8.6 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: route.c,v 1.149 2014/12/20 13:15:48 prlw1 Exp $");
+__RCSID("$NetBSD: route.c,v 1.150 2015/02/26 09:56:11 roy Exp $");
 #endif
 #endif /* not lint */
 
@@ -1292,7 +1292,7 @@
 const char metricnames[] =
 "\011pksent\010rttvar\7rtt\6ssthresh\5sendpipe\4recvpipe\3expire\2hopcount\1mtu";
 const char routeflags[] =
-"\1UP\2GATEWAY\3HOST\4REJECT\5DYNAMIC\6MODIFIED\7DONE\010MASK_PRESENT\011CLONING\012XRESOLVE\013LLINFO\014STATIC\015BLACKHOLE\016CLONED\017PROTO2\020PROTO1";
+"\1UP\2GATEWAY\3HOST\4REJECT\5DYNAMIC\6MODIFIED\7DONE\010MASK_PRESENT\011CLONING\012XRESOLVE\013LLINFO\014STATIC\015BLACKHOLE\016CLONED\017PROTO2\020PROTO1\023LOCAL";
 const char ifnetflags[] =
 "\1UP\2BROADCAST\3DEBUG\4LOOPBACK\5PTP\6NOTRAILERS\7RUNNING\010NOARP\011PPROMISC\012ALLMULTI\013OACTIVE\014SIMPLEX\015LINK0\016LINK1\017LINK2\020MULTICAST";
 const char addrnames[] =
diff -r 634d6c2fa097 -r b712a6f99053 sbin/route/rtutil.c
--- a/sbin/route/rtutil.c       Thu Feb 26 09:54:46 2015 +0000
+++ b/sbin/route/rtutil.c       Thu Feb 26 09:56:11 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtutil.c,v 1.4 2015/01/07 22:38:32 christos Exp $      */
+/*     $NetBSD: rtutil.c,v 1.5 2015/02/26 09:56:11 roy Exp $   */
 /*     $OpenBSD: show.c,v 1.1 2006/05/27 19:16:37 claudio Exp $        */
 
 /*
@@ -92,6 +92,7 @@
        { RTF_CLONED,   'c' },
        /* { RTF_JUMBO, 'J' }, */
        { RTF_ANNOUNCE, 'p' },
+       { RTF_LOCAL, 'l'},
        { 0, 0 }
 };
 
diff -r 634d6c2fa097 -r b712a6f99053 sbin/route/show.c
--- a/sbin/route/show.c Thu Feb 26 09:54:46 2015 +0000
+++ b/sbin/route/show.c Thu Feb 26 09:56:11 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: show.c,v 1.46 2014/11/06 21:29:32 christos Exp $       */
+/*     $NetBSD: show.c,v 1.47 2015/02/26 09:56:11 roy Exp $    */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)route.c      8.3 (Berkeley) 3/9/94";
 #else
-__RCSID("$NetBSD: show.c,v 1.46 2014/11/06 21:29:32 christos Exp $");
+__RCSID("$NetBSD: show.c,v 1.47 2015/02/26 09:56:11 roy Exp $");
 #endif
 #endif /* not lint */
 
@@ -137,7 +137,7 @@
 {
        int af, rflags;
        static int interesting = RTF_UP | RTF_GATEWAY | RTF_HOST |
-           RTF_REJECT | RTF_LLINFO;
+           RTF_REJECT | RTF_LLINFO | RTF_LOCAL;
 
        parse_show_opts(argc, argv, &af, &rflags, NULL, true);
        p_rttables(af, flags, rflags, interesting);



Home | Main Index | Thread Index | Old Index