diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-02-06 05:24:11 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-02-06 05:24:11 +0000 |
commit | 487517edbe7e6e8e75221be9ff1af34ac23acb14 (patch) | |
tree | f00c6cb00a2439f58f9cc3b06e25ea2bae278d04 /usr.bin/netstat/if.c | |
parent | 37751de590e85379c64067411ddd489758b7207d (diff) |
If sdl type is ISO88025, print the address using `:' as well.
Diffstat (limited to 'usr.bin/netstat/if.c')
-rw-r--r-- | usr.bin/netstat/if.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 810d6e5e9f4..9948ee963fe 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.22 2000/12/13 15:52:58 camield Exp $ */ +/* $OpenBSD: if.c,v 1.23 2001/02/06 05:24:10 fgsch Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94"; #else -static char *rcsid = "$OpenBSD: if.c,v 1.22 2000/12/13 15:52:58 camield Exp $"; +static char *rcsid = "$OpenBSD: if.c,v 1.23 2001/02/06 05:24:10 fgsch Exp $"; #endif #endif /* not lint */ @@ -303,7 +303,8 @@ intpr(interval, ifnetaddr) (struct sockaddr_dl *)sa; m = printf("%-11.11s ", "<Link>"); if (sdl->sdl_type == IFT_ETHER || - sdl->sdl_type == IFT_FDDI) + sdl->sdl_type == IFT_FDDI || + sdl->sdl_type == IFT_ISO88025) printf("%-17.17s ", ether_ntoa((struct ether_addr *)LLADDR(sdl))); else { |