Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/route route: address flags are more useful than interfa...
details: https://anonhg.NetBSD.org/src/rev/73c1b8f5c206
branches: trunk
changeset: 1006662:73c1b8f5c206
user: roy <roy%NetBSD.org@localhost>
date: Wed Jan 22 19:22:06 2020 +0000
description:
route: address flags are more useful than interface flags for address msgs
diffstat:
sbin/route/route.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r d4a75692fa13 -r 73c1b8f5c206 sbin/route/route.c
--- a/sbin/route/route.c Wed Jan 22 19:15:49 2020 +0000
+++ b/sbin/route/route.c Wed Jan 22 19:22:06 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.164 2020/01/22 17:55:41 roy Exp $ */
+/* $NetBSD: route.c,v 1.165 2020/01/22 19:22:06 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.164 2020/01/22 17:55:41 roy Exp $");
+__RCSID("$NetBSD: route.c,v 1.165 2020/01/22 19:22:06 roy Exp $");
#endif
#endif /* not lint */
@@ -1375,7 +1375,7 @@
case RTM_DELADDR:
case RTM_CHGADDR:
ifam = (struct ifa_msghdr *)rtm;
- (void)printf("pid %d, metric %d, flags: ",
+ (void)printf("pid %d, metric %d, addrflags: ",
ifam->ifam_pid, ifam->ifam_metric);
struct sockaddr *sa = (struct sockaddr *)(ifam + 1);
const char *bits;
@@ -1390,7 +1390,7 @@
bits = unknownflags;
break;
}
- bprintf(stdout, ifam->ifam_flags, bits);
+ bprintf(stdout, ifam->ifam_addrflags, bits);
pmsg_addrs((char *)(ifam + 1), ifam->ifam_addrs);
break;
case RTM_IEEE80211:
Home |
Main Index |
Thread Index |
Old Index