Lines Matching refs:addr
66 memcmp(&left.addr, &right.addr, addrLength(left.family)) == 0; in operator ==()
111 struct sockaddr_nl addr; in init() local
112 memset(&addr, 0, sizeof(addr)); in init()
113 addr.nl_family = AF_NETLINK; in init()
114 addr.nl_groups = (1 << (RTNLGRP_IPV4_IFADDR - 1)) | in init()
117 struct sockaddr* sa = reinterpret_cast<struct sockaddr*>(&addr); in init()
118 if (::bind(mSocketFd, sa, sizeof(addr)) != 0) { in init()
276 ifAddress addr; in handleAddressChange() local
277 memset(&addr, 0, sizeof(addr)); in handleAddressChange()
281 addr.family = msg->ifa_family; in handleAddressChange()
282 addr.prefix = msg->ifa_prefixlen; in handleAddressChange()
283 memcpy(&addr.addr, RTA_DATA(attr), addrLength(addr.family)); in handleAddressChange()
290 auto it = std::find(ifAddrs.begin(), ifAddrs.end(), addr); in handleAddressChange()
293 ifAddrs.push_back(addr); in handleAddressChange()