diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2006-03-23 13:38:28 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2006-03-23 13:38:28 +0000 |
commit | 94b87dfdbb508e9fb72ea6f01ac25ad77ee5237e (patch) | |
tree | 431d6357b77c50ad9b921b8606b5a4572142176b /sbin | |
parent | 9495394552eccda8a20f42184bc88ef363fd70a4 (diff) |
Fix pretty-print of carp link addresses by making them print like IFT_ETHER.
Diff from jon@abccomm.com
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/route/show.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/route/show.c b/sbin/route/show.c index 0220e7b3dc8..384c8b47e40 100644 --- a/sbin/route/show.c +++ b/sbin/route/show.c @@ -1,4 +1,4 @@ -/* $OpenBSD: show.c,v 1.44 2006/02/01 19:00:22 otto Exp $ */ +/* $OpenBSD: show.c,v 1.45 2006/03/23 13:38:27 mcbride Exp $ */ /* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */ /* @@ -680,6 +680,7 @@ link_print(struct sockaddr *sa) } else switch (sdl->sdl_type) { case IFT_ETHER: + case IFT_CARP: return (ether_ntoa((struct ether_addr *)lla)); } return (link_ntoa(sdl)); |