Lines Matching defs:ifma
543 struct ifmultiaddr *ifma;
574 error = if_addmulti(ifp, (struct sockaddr *)&gsin, &ifma);
582 IFMA_LOCK(ifma);
583 if ((inm = ifma->ifma_protospec) != NULL) {
584 VERIFY(ifma->ifma_addr != NULL);
585 VERIFY(ifma->ifma_addr->sa_family == AF_INET);
587 IFMA_UNLOCK(ifma);
589 VERIFY(inm->inm_ifma == ifma);
599 IFMA_REMREF(ifma);
610 * the inm referring to the ifma has been detached, thus we
620 IFMA_REMREF(ifma);
623 IFMA_UNLOCK(ifma);
635 IFMA_REMREF(ifma);
644 inm->inm_ifma = ifma; /* keep refcount from if_addmulti() */
659 IFMA_LOCK(ifma);
660 VERIFY(ifma->ifma_protospec == NULL);
661 ifma->ifma_protospec = inm;
662 IFMA_UNLOCK(ifma);
3299 panic("%s: ifma not NULL for inm=%p", __func__, inm);
3432 struct ifmultiaddr *ifma;
3456 * detached, the underlying ifma would still be in the if_multiaddrs
3480 ifma = inm->inm_ifma;
3486 IFMA_LOCK_SPIN(ifma);
3487 ifma->ifma_protospec = NULL;
3488 IFMA_UNLOCK(ifma);
3492 if_delmulti_ifma(ifma);
3494 IFMA_REMREF(ifma);
3631 printf("addr %s ifp %p(%s%d) ifma %p\n",