Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Nov 2015 10:58:19 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r290388 - head/usr.bin/netstat
Message-ID:  <201511051058.tA5AwJXt040299@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ume
Date: Thu Nov  5 10:58:19 2015
New Revision: 290388
URL: https://svnweb.freebsd.org/changeset/base/290388

Log:
  Revert previous workaround.  This problem was fixed
  by r290318.

Modified:
  head/usr.bin/netstat/route.c

Modified: head/usr.bin/netstat/route.c
==============================================================================
--- head/usr.bin/netstat/route.c	Thu Nov  5 09:07:53 2015	(r290387)
+++ head/usr.bin/netstat/route.c	Thu Nov  5 10:58:19 2015	(r290388)
@@ -527,10 +527,6 @@ routename(struct sockaddr *sa, int flags
 	static char line[NI_MAXHOST];
 	int error, f;
 
-	/* XXX: sa->sa_len doesn't match sizeof(struct sockaddr_dl) */
-	if (sa->sa_family == AF_LINK)
-		sa->sa_len = sizeof(struct sockaddr_dl);
-
 	f = (flags) ? NI_NUMERICHOST : 0;
 	error = getnameinfo(sa, sa->sa_len, line, sizeof(line),
 	    NULL, 0, f);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511051058.tA5AwJXt040299>