diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2009-02-15 12:10:05 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2009-02-15 12:10:05 +0000 |
commit | 15c834931c84ece9a1b8cd7e09cc0ff03d4e33c1 (patch) | |
tree | 8c14db78c6451f7cb23e8a741d48cd3eec481be9 /usr.sbin/ifmcstat | |
parent | 5a25eda53a8091b41288e41921325583c42e7973 (diff) | |
download | src-15c834931c84ece9a1b8cd7e09cc0ff03d4e33c1.tar.gz src-15c834931c84ece9a1b8cd7e09cc0ff03d4e33c1.zip |
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
Notes
Notes:
svn path=/head/; revision=188643
Diffstat (limited to 'usr.sbin/ifmcstat')
-rw-r--r-- | usr.sbin/ifmcstat/ifmcstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ifmcstat/ifmcstat.c b/usr.sbin/ifmcstat/ifmcstat.c index 9fe8b153db34..0a2eb7e9815a 100644 --- a/usr.sbin/ifmcstat/ifmcstat.c +++ b/usr.sbin/ifmcstat/ifmcstat.c @@ -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); } |