Instead of defining RTF_LLINFO, use RTF_LLDATA

This commit is contained in:
christos 2020-08-29 19:27:40 +00:00
parent ad93f4b708
commit ce43f29fa9
1 changed files with 3 additions and 9 deletions

View File

@ -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 flags, int interesting)
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) {