Lines Matching refs:addr

72     for (struct ifaddrs *addr = ifAddrs; addr != nullptr; addr = addr->ifa_next)  in otPlatInfraIfHasAddress()  local
76 if (if_nametoindex(addr->ifa_name) != aInfraIfIndex || addr->ifa_addr == nullptr || in otPlatInfraIfHasAddress()
77 addr->ifa_addr->sa_family != AF_INET6) in otPlatInfraIfHasAddress()
82 ip6Addr = reinterpret_cast<sockaddr_in6 *>(addr->ifa_addr); in otPlatInfraIfHasAddress()
197 struct sockaddr_nl addr; in CreateNetLinkSocket() local
202 memset(&addr, 0, sizeof(addr)); in CreateNetLinkSocket()
203 addr.nl_family = AF_NETLINK; in CreateNetLinkSocket()
204 addr.nl_groups = RTMGRP_LINK | RTMGRP_IPV6_IFADDR; in CreateNetLinkSocket()
206 rval = bind(sock, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr)); in CreateNetLinkSocket()
340 for (struct ifaddrs *addr = ifAddrs; addr != nullptr; addr = addr->ifa_next) in CountAddresses() local
344 …if (strncmp(addr->ifa_name, mInfraIfName, sizeof(mInfraIfName)) != 0 || addr->ifa_addr == nullptr … in CountAddresses()
345 addr->ifa_addr->sa_family != AF_INET6) in CountAddresses()
350 in6Addr = &(reinterpret_cast<sockaddr_in6 *>(addr->ifa_addr)->sin6_addr); in CountAddresses()
387 for (struct ifaddrs *addr = ifAddrs; addr != nullptr; addr = addr->ifa_next) in HasLinkLocalAddress() local
391 …if (strncmp(addr->ifa_name, mInfraIfName, sizeof(mInfraIfName)) != 0 || addr->ifa_addr == nullptr … in HasLinkLocalAddress()
392 addr->ifa_addr->sa_family != AF_INET6) in HasLinkLocalAddress()
397 ip6Addr = reinterpret_cast<sockaddr_in6 *>(addr->ifa_addr); in HasLinkLocalAddress()