Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Feb 2009 13:34:01 +0000 (UTC)
From:      Bruce M Simpson <bms@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r188915 - stable/7/usr.sbin/ifmcstat
Message-ID:  <200902221334.n1MDY1Kn097387@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 		}



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