Source-Changes-HG archive

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

[src/trunk]: src/sbin/route Instead of defining RTF_LLINFO, use RTF_LLDATA



details:   https://anonhg.NetBSD.org/src/rev/5463bec8de23
branches:  trunk
changeset: 943285:5463bec8de23
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 29 19:27:40 2020 +0000

description:
Instead of defining RTF_LLINFO, use RTF_LLDATA

diffstat:

 sbin/route/rtutil.c |  12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diffs (40 lines):

diff -r 4fb49b06de0a -r 5463bec8de23 sbin/route/rtutil.c
--- a/sbin/route/rtutil.c       Sat Aug 29 19:27:08 2020 +0000
+++ b/sbin/route/rtutil.c       Sat Aug 29 19:27:40 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtutil.c,v 1.10 2017/07/13 08:26:29 manu Exp $ */
+/*     $NetBSD: rtutil.c,v 1.11 2020/08/29 19:27:40 christos Exp $     */
 /*     $OpenBSD: show.c,v 1.1 2006/05/27 19:16:37 claudio Exp $        */
 
 /*
@@ -59,12 +59,6 @@
 #include "prog_ops.h"
 #include "rtutil.h"
 
-/*
- * Keep to handle ARP/NDP entries (fake routes)
- * for backward compatibility.
- */
-#define RTF_LLINFO     0x400
-
 #define PLEN    (LONG_BIT / 4 + 2)
 #define PFKEYV2_CHUNK sizeof(u_int64_t)
 static char *link_print(const struct sockaddr *);
@@ -89,7 +83,7 @@
        /* { RTF_CLONING,       'C' }, */
        { RTF_CONNECTED, 'C' },
        /* { RTF_XRESOLVE,      'X' }, */
-       { RTF_LLINFO,   'L' },
+       { RTF_LLDATA,   'L' },
        { RTF_STATIC,   'S' },
        { RTF_PROTO1,   '1' },
        { RTF_PROTO2,   '2' },
@@ -268,7 +262,7 @@
        char             ifbuf[IF_NAMESIZE];
 #endif
 
-       if ((flags & RT_LFLAG) && (rtm->rtm_flags & RTF_LLINFO))
+       if ((flags & RT_LFLAG) && (rtm->rtm_flags & RTF_LLDATA))
                return;
 
        if (old_af != sa->sa_family) {



Home | Main Index | Thread Index | Old Index