Source-Changes-HG archive

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

[src/trunk]: src/sbin/route Make the "interesting" flags match the netstat on...



details:   https://anonhg.NetBSD.org/src/rev/74a14de787f5
branches:  trunk
changeset: 943286:74a14de787f5
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 29 19:28:32 2020 +0000

description:
Make the "interesting" flags match the netstat ones, so:

    route show -inet
    netstat -r -f inet

outputs match.

diffstat:

 sbin/route/show.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 5463bec8de23 -r 74a14de787f5 sbin/route/show.c
--- a/sbin/route/show.c Sat Aug 29 19:27:40 2020 +0000
+++ b/sbin/route/show.c Sat Aug 29 19:28:32 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: show.c,v 1.50 2016/04/04 07:37:07 ozaki-r Exp $        */
+/*     $NetBSD: show.c,v 1.51 2020/08/29 19:28:32 christos 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.50 2016/04/04 07:37:07 ozaki-r Exp $");
+__RCSID("$NetBSD: show.c,v 1.51 2020/08/29 19:28:32 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -132,8 +132,10 @@
 show(int argc, char *const *argv, int flags)
 {
        int af, rflags;
-       static int interesting = RTF_UP | RTF_GATEWAY | RTF_HOST |
-           RTF_REJECT | RTF_LOCAL | RTF_BROADCAST;
+       static int interesting = RTF_ANNOUNCE | RTF_BLACKHOLE | RTF_BROADCAST |
+           RTF_CONNECTED | RTF_DYNAMIC | RTF_GATEWAY | RTF_HOST | RTF_LLDATA |
+           RTF_LOCAL | RTF_MODIFIED | RTF_PROTO1 | RTF_PROTO2 | RTF_REJECT |
+           RTF_STATIC | RTF_UP;
 
        parse_show_opts(argc, argv, &af, &rflags, NULL, true);
        p_rttables(af, flags, rflags, interesting);



Home | Main Index | Thread Index | Old Index