summaryrefslogtreecommitdiff
path: root/sbin/ifconfig/ifconfig.c
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2006-03-23 14:20:10 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2006-03-23 14:20:10 +0000
commit869c40f12c52f5c320f91a5f78e6c84a25b41a14 (patch)
tree4a5d2ee0e49c7fa56ebe579e63ce0b9ab9525148 /sbin/ifconfig/ifconfig.c
parent6f1e2c607ff6277406d6b2e14c0edc78a3e00c13 (diff)
Print the lladdr on carp interfaces.
ok henning@
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r--sbin/ifconfig/ifconfig.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 7c5fdd3862c..a33454c2e31 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.158 2006/03/21 14:23:29 claudio Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.159 2006/03/23 14:20:09 mcbride Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -2141,7 +2141,8 @@ status(int link, struct sockaddr_dl *sdl)
if (mtu)
printf(" mtu %lu", mtu);
putchar('\n');
- if (sdl != NULL && sdl->sdl_type == IFT_ETHER && sdl->sdl_alen)
+ if (sdl != NULL && sdl->sdl_alen &&
+ (sdl->sdl_type == IFT_ETHER || sdl->sdl_type == IFT_CARP))
(void)printf("\tlladdr %s\n", ether_ntoa(
(struct ether_addr *)LLADDR(sdl)));