From 67228c46217cea62a8c5ec26cd7093ea2f8b4cc0 Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Wed, 28 Feb 2007 21:18:38 +0000 Subject: Nuke ascii2addr() and addr2ascii(). They have no consumers anywhere in FreeBSD, and originated from INRIA IPv6. Stub out netstat reference to addr2ascii() I mistakenly introduced. Update misleading man page sections. Merge NetBSD's getnameinfo() AF_LINK extensions for a portable way to print link-layer addresses given a sockaddr_dl(), minus the IEEE 1394 bits which don't map directly to our code. Obtained from: NetBSD (getnameinfo.c) Discussed on: current (March 2006) --- usr.bin/netstat/mcast.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin') diff --git a/usr.bin/netstat/mcast.c b/usr.bin/netstat/mcast.c index cc12f09838f6..9bcae4148398 100644 --- a/usr.bin/netstat/mcast.c +++ b/usr.bin/netstat/mcast.c @@ -132,11 +132,13 @@ ifmalist_dump_af(const struct ifmaddrs * const ifmap, int const af) (psa->sdl.sdl_type == IFT_ETHER)) { pgroup = ether_ntoa((struct ether_addr *)&psa->sdl.sdl_data); +#if 0 /* XXX */ } else { pgroup = addr2ascii(AF_LINK, &psa->sdl, sizeof(struct sockaddr_dl), addrbuf); +#endif } break; default: -- cgit v1.3