Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/netstat Print out IEEE1394 addresses with : . Add a...
details: https://anonhg.NetBSD.org/src/rev/e4dbba785524
branches: trunk
changeset: 499241:e4dbba785524
user: matt <matt%NetBSD.org@localhost>
date: Tue Nov 14 23:00:57 2000 +0000
description:
Print out IEEE1394 addresses with : . Add a hack to limit the address
to 8 bytes.
diffstat:
usr.bin/netstat/if.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 77c1bad2f1e0 -r e4dbba785524 usr.bin/netstat/if.c
--- a/usr.bin/netstat/if.c Tue Nov 14 22:55:51 2000 +0000
+++ b/usr.bin/netstat/if.c Tue Nov 14 23:00:57 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.c,v 1.45 2000/10/11 14:46:14 is Exp $ */
+/* $NetBSD: if.c,v 1.46 2000/11/14 23:00:57 matt Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
#else
-__RCSID("$NetBSD: if.c,v 1.45 2000/10/11 14:46:14 is Exp $");
+__RCSID("$NetBSD: if.c,v 1.46 2000/11/14 23:00:57 matt Exp $");
#endif
#endif /* not lint */
@@ -340,9 +340,13 @@
(struct sockaddr_dl *)sa;
cp = (char *)LLADDR(sdl);
if (sdl->sdl_type == IFT_FDDI
- || sdl->sdl_type == IFT_ETHER)
+ || sdl->sdl_type == IFT_ETHER
+ || sdl->sdl_type == IFT_IEEE1394)
hexsep = ':';
n = sdl->sdl_alen;
+ if (sdl->sdl_type == IFT_IEEE1394
+ && sdl->sdl_len > 8)
+ n = 8; /* XXX */
}
m = printf("%-13.13s ", "<Link>");
goto hexprint;
Home |
Main Index |
Thread Index |
Old Index