aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>2000-09-13 19:53:54 +0000
committerGarrett Wollman <wollman@FreeBSD.org>2000-09-13 19:53:54 +0000
commitc2bb3a3e02071bccdf93ccb59118bc5e88ed9cd8 (patch)
treebbbac8ab72834fcc6c1734b05f28cb34d5799a4c /tools
parent9a94c9c5c34533296cf9edaa89fbcb185844b866 (diff)
Notes
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/ifinfo/ifinfo.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/tools/ifinfo/ifinfo.c b/tools/tools/ifinfo/ifinfo.c
index 63fad7e75fa0..8e462ddb1665 100644
--- a/tools/tools/ifinfo/ifinfo.c
+++ b/tools/tools/ifinfo/ifinfo.c
@@ -160,9 +160,11 @@ printit(const struct ifmibdata *ifmd)
printf("\tinput queue drops: %lu\n", ifmd->ifmd_data.ifi_iqdrops);
printf("\tpackets for unknown protocol: %lu\n",
ifmd->ifmd_data.ifi_noproto);
+#ifdef notdef
printf("\treceive timing: %lu usec\n", ifmd->ifmd_data.ifi_recvtiming);
printf("\ttransmit timing: %lu usec\n",
ifmd->ifmd_data.ifi_xmittiming);
+#endif
}
static const char *const if_types[] = {
@@ -220,7 +222,10 @@ static const char *const if_types[] = {
"SONETVT",
"SMDS InterCarrier Interface",
"Proprietary virtual interface",
- "Proprietary multiplexing"
+ "Proprietary multiplexing",
+ "Generic tunnel interface",
+ "IPv6-to-IPv4 TCP relay capturing interface",
+ "6to4 tunnel interface"
};
#define NIFTYPES ((sizeof if_types)/(sizeof if_types[0]))
@@ -229,7 +234,7 @@ iftype(int type)
{
static char buf[256];
- if (type <= 0 || type > NIFTYPES) {
+ if (type <= 0 || type >= NIFTYPES) {
sprintf(buf, "unknown type %d", type);
return buf;
}