Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Feb 2009 12:10:05 +0000 (UTC)
From:      Bruce M Simpson <bms@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188643 - head/usr.sbin/ifmcstat
Message-ID:  <200902151210.n1FCA5uZ078408@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bms
Date: Sun Feb 15 12:10:05 2009
New Revision: 188643
URL: http://svn.freebsd.org/changeset/base/188643

Log:
  Fix a typo which caused ifmcstat's sysctl path
  to print the network-layer endpoint address of the
  group membership, rather than its link-layer mapping
  as intended.
  The KVM path is not affected.
  
  MFC after:	1 week

Modified:
  head/usr.sbin/ifmcstat/ifmcstat.c

Modified: head/usr.sbin/ifmcstat/ifmcstat.c
==============================================================================
--- head/usr.sbin/ifmcstat/ifmcstat.c	Sun Feb 15 11:05:50 2009	(r188642)
+++ head/usr.sbin/ifmcstat/ifmcstat.c	Sun Feb 15 12:10:05 2009	(r188643)
@@ -768,7 +768,7 @@ ifmcstat_getifmaddrs(void)
 		/* Link-layer mapping, if present. */
 		pllsa = (sockunion_t *)ifma->ifma_lladdr;
 		if (pllsa != NULL) {
-			error = getnameinfo(&pifasa->sa, pifasa->sa.sa_len,
+			error = getnameinfo(&pllsa->sa, pllsa->sa.sa_len,
 			    addrbuf, sizeof(addrbuf), NULL, 0, NI_NUMERICHOST);
 			fprintf(stdout, "\t\t\tmcast-macaddr %s\n", addrbuf);
 		}



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