Lines Matching defs:ifma
540 struct ifmultiaddr *ifma;
571 error = if_addmulti(ifp, (struct sockaddr *)&gsin, &ifma);
579 IFMA_LOCK(ifma);
580 if ((inm = ifma->ifma_protospec) != NULL) {
581 VERIFY(ifma->ifma_addr != NULL);
582 VERIFY(ifma->ifma_addr->sa_family == AF_INET);
584 IFMA_UNLOCK(ifma);
586 VERIFY(inm->inm_ifma == ifma);
596 IFMA_REMREF(ifma);
607 * the inm referring to the ifma has been detached, thus we
617 IFMA_REMREF(ifma);
620 IFMA_UNLOCK(ifma);
632 IFMA_REMREF(ifma);
641 inm->inm_ifma = ifma; /* keep refcount from if_addmulti() */
656 IFMA_LOCK(ifma);
657 VERIFY(ifma->ifma_protospec == NULL);
658 ifma->ifma_protospec = inm;
659 IFMA_UNLOCK(ifma);
3355 panic("%s: ifma not NULL for inm=%p", __func__, inm);
3488 struct ifmultiaddr *ifma;
3512 * detached, the underlying ifma would still be in the if_multiaddrs
3536 ifma = inm->inm_ifma;
3542 IFMA_LOCK_SPIN(ifma);
3543 ifma->ifma_protospec = NULL;
3544 IFMA_UNLOCK(ifma);
3548 if_delmulti_ifma(ifma);
3550 IFMA_REMREF(ifma);
3691 printf("addr %s ifp 0x%llx(%s) ifma 0x%llx\n",