svn commit: r188643 - head/usr.sbin/ifmcstat

Bruce M Simpson bms at FreeBSD.org
Sun Feb 15 04:10:06 PST 2009


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);
 		}


More information about the svn-src-all mailing list