G.C. No functional change.

This commit is contained in:
msaitoh 2022-09-05 04:52:53 +00:00
parent 4b75ca3e5c
commit 6b1341f045
1 changed files with 3 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if.c,v 1.101 2022/09/05 02:26:22 msaitoh Exp $ */ /* $NetBSD: if.c,v 1.102 2022/09/05 04:52:53 msaitoh Exp $ */
/* /*
* Copyright (c) 1983, 1988, 1993 * Copyright (c) 1983, 1988, 1993
@ -34,7 +34,7 @@
#if 0 #if 0
static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94"; static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
#else #else
__RCSID("$NetBSD: if.c,v 1.101 2022/09/05 02:26:22 msaitoh Exp $"); __RCSID("$NetBSD: if.c,v 1.102 2022/09/05 04:52:53 msaitoh Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -309,25 +309,8 @@ intpr_sysctl(void)
n = 5; n = 5;
printf("%-*.*s %-5" PRIu64 " ", n, n, name, ifd->ifi_mtu); printf("%-*.*s %-5" PRIu64 " ", n, n, name, ifd->ifi_mtu);
if (dflag) { if (dflag)
#if 0
char namebuf[1024];
int drops;
/* For sysctl */
snprintf(namebuf, sizeof(namebuf),
"net.interfaces.%s.sndq.drops", origname);
len = sizeof(drops);
if (sysctlbyname(namebuf, &drops, &len, NULL, 0)
== -1) {
warnx("'%s' not found", namebuf);
dext.ifi_oqdrops = 0;
} else
dext.ifi_oqdrops = drops;
#else
if_data_ext_get(origname, &dext); if_data_ext_get(origname, &dext);
#endif
}
print_addr(ifindex, rti_info[rtax], rti_info, ifd, print_addr(ifindex, rti_info[rtax], rti_info, ifd,
NULL, dflag ? &dext : NULL); NULL, dflag ? &dext : NULL);