Fix inverted test that resulted in incorrect multicast hw programming.

This commit is contained in:
Navdeep Parhar 2012-07-03 06:56:11 +00:00
parent e324b4bc3d
commit 9a0b948f98

View File

@ -2143,7 +2143,7 @@ update_mac_settings(struct port_info *pi, int flags)
if_maddr_rlock(ifp);
TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) {
if (ifma->ifma_addr->sa_family == AF_LINK)
if (ifma->ifma_addr->sa_family != AF_LINK)
continue;
mcaddr[i++] =
LLADDR((struct sockaddr_dl *)ifma->ifma_addr);