Lines Matching defs:ifmaddr
1309 ifmultiaddr_t ifmaddr)
1311 if (ifmaddr == NULL) return EINVAL;
1312 ifma_reference(ifmaddr);
1318 ifmultiaddr_t ifmaddr)
1320 if (ifmaddr == NULL) return EINVAL;
1321 ifma_release(ifmaddr);
1327 ifmultiaddr_t ifmaddr,
1333 if (ifmaddr == NULL || out_addr == NULL) return EINVAL;
1334 if (ifmaddr->ifma_addr == NULL) return ENOTSUP;
1336 copylen = addr_size >= ifmaddr->ifma_addr->sa_len ? ifmaddr->ifma_addr->sa_len : addr_size;
1337 bcopy(ifmaddr->ifma_addr, out_addr, copylen);
1339 if (ifmaddr->ifma_addr->sa_len > addr_size) return EMSGSIZE;
1346 ifmultiaddr_t ifmaddr,
1350 if (ifmaddr == NULL || out_addr == NULL) return EINVAL;
1351 if (ifmaddr->ifma_ll == NULL) return ENOTSUP;
1353 return ifmaddr_address(ifmaddr->ifma_ll, out_addr, addr_size);
1358 ifmultiaddr_t ifmaddr)
1360 if (ifmaddr == NULL || ifmaddr->ifma_ifp == NULL) return NULL;
1361 return ifmaddr->ifma_ifp;