svn commit: r188915 - stable/7/usr.sbin/ifmcstat

Bruce M Simpson bms at FreeBSD.org
Sun Feb 22 05:34:02 PST 2009


Author: bms
Date: Sun Feb 22 13:34:01 2009
New Revision: 188915
URL: http://svn.freebsd.org/changeset/base/188915

Log:
  MFC:
    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.

Modified:
  stable/7/usr.sbin/ifmcstat/ifmcstat.c

Modified: stable/7/usr.sbin/ifmcstat/ifmcstat.c
==============================================================================
--- stable/7/usr.sbin/ifmcstat/ifmcstat.c	Sun Feb 22 12:40:58 2009	(r188914)
+++ stable/7/usr.sbin/ifmcstat/ifmcstat.c	Sun Feb 22 13:34:01 2009	(r188915)
@@ -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(&pllasa->sa, pllasa->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-stable mailing list