From 94b87dfdbb508e9fb72ea6f01ac25ad77ee5237e Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Thu, 23 Mar 2006 13:38:28 +0000 Subject: Fix pretty-print of carp link addresses by making them print like IFT_ETHER. Diff from jon@abccomm.com --- sbin/route/show.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin') 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)); -- cgit v1.2.3