Lines Matching refs:ifamap
357 struct rtmaddr_ifamap ifamap; in ni_ifaddrs() local
396 memset(&ifamap, 0, sizeof(ifamap)); in ni_ifaddrs()
447 ifamap.address = rtadata; in ni_ifaddrs()
448 ifamap.address_len = rtapayload; in ni_ifaddrs()
451 ifamap.local = rtadata; in ni_ifaddrs()
452 ifamap.local_len = rtapayload; in ni_ifaddrs()
455 ifamap.broadcast = rtadata; in ni_ifaddrs()
456 ifamap.broadcast_len = rtapayload; in ni_ifaddrs()
487 if (!ifamap.local) { in ni_ifaddrs()
488 ifamap.local = ifamap.address; in ni_ifaddrs()
489 ifamap.local_len = ifamap.address_len; in ni_ifaddrs()
491 if (!ifamap.address) { in ni_ifaddrs()
492 ifamap.address = ifamap.local; in ni_ifaddrs()
493 ifamap.address_len = ifamap.local_len; in ni_ifaddrs()
495 if (ifamap.address_len != ifamap.local_len || in ni_ifaddrs()
496 (ifamap.address != NULL && in ni_ifaddrs()
497 memcmp(ifamap.address, ifamap.local, ifamap.address_len))) { in ni_ifaddrs()
499 ifamap.broadcast = ifamap.address; in ni_ifaddrs()
500 ifamap.broadcast_len = ifamap.address_len; in ni_ifaddrs()
501 ifamap.address = ifamap.local; in ni_ifaddrs()
502 ifamap.address_len = ifamap.local_len; in ni_ifaddrs()
504 if (ifamap.address) { in ni_ifaddrs()
506 dlen += NLMSG_ALIGN(ifamap.address_len); in ni_ifaddrs()
509 memcpy(ifa->ifa_addr, ifamap.address, ifamap.address_len); in ni_ifaddrs()
510 data += NLMSG_ALIGN(ifamap.address_len); in ni_ifaddrs()