Module Name:    src
Committed By:   christos
Date:           Sat Aug 29 19:27:40 UTC 2020

Modified Files:
        src/sbin/route: rtutil.c

Log Message:
Instead of defining RTF_LLINFO, use RTF_LLDATA


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sbin/route/rtutil.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/route/rtutil.c
diff -u src/sbin/route/rtutil.c:1.10 src/sbin/route/rtutil.c:1.11
--- src/sbin/route/rtutil.c:1.10	Thu Jul 13 04:26:29 2017
+++ src/sbin/route/rtutil.c	Sat Aug 29 15:27:40 2020
@@ -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 @@ static const struct bits bits[] = {
 	/* { 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 @@ p_rtentry(struct rt_msghdr *rtm, int fla
 	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) {

Reply via email to