Lines Matching refs:address

21 static bool is_anycast_locator(const otNetifAddress *address)  in is_anycast_locator()  argument
23 return address->mAddress.mFields.m16[4] == htons(0x0000) && in is_anycast_locator()
24 address->mAddress.mFields.m16[5] == htons(0x00ff) && in is_anycast_locator()
25 address->mAddress.mFields.m16[6] == htons(0xfe00) && in is_anycast_locator()
26 address->mAddress.mFields.m8[14] == ALOC16_MASK; in is_anycast_locator()
30 const uint8_t *address) in is_mesh_local() argument
35 return (memcmp(address, ml_prefix->m8, sizeof(ml_prefix->m8)) == 0); in is_mesh_local()
105 const otNetifAddress *address; in add_ipv6_addr_to_zephyr() local
108 for (address = otIp6GetUnicastAddresses(context->instance); in add_ipv6_addr_to_zephyr()
109 address; address = address->mNext) { in add_ipv6_addr_to_zephyr()
111 if (address->mRloc || is_anycast_locator(address)) { in add_ipv6_addr_to_zephyr()
120 (struct in6_addr *)(&address->mAddress), in add_ipv6_addr_to_zephyr()
127 if ((address->mAddressOrigin == OT_ADDRESS_ORIGIN_THREAD) || in add_ipv6_addr_to_zephyr()
128 (address->mAddressOrigin == OT_ADDRESS_ORIGIN_SLAAC)) { in add_ipv6_addr_to_zephyr()
131 (struct in6_addr *)(&address->mAddress), in add_ipv6_addr_to_zephyr()
133 } else if (address->mAddressOrigin == in add_ipv6_addr_to_zephyr()
137 (struct in6_addr *)(&address->mAddress), in add_ipv6_addr_to_zephyr()
139 } else if (address->mAddressOrigin == in add_ipv6_addr_to_zephyr()
143 (struct in6_addr *)(&address->mAddress), in add_ipv6_addr_to_zephyr()
156 context, address->mAddress.mFields.m8); in add_ipv6_addr_to_zephyr()
160 address->mPreferred ? NET_ADDR_PREFERRED : NET_ADDR_DEPRECATED; in add_ipv6_addr_to_zephyr()
184 net_ipv6_addr_cmp(&ipv6->unicast[i].address.in6_addr, in add_ipv6_addr_to_ot()
199 context, ipv6->unicast[i].address.in6_addr.s6_addr); in add_ipv6_addr_to_ot()
298 const otNetifAddress *address; in rm_ipv6_addr_from_zephyr() local
306 for (address = otIp6GetUnicastAddresses(context->instance); in rm_ipv6_addr_from_zephyr()
307 address; address = address->mNext) { in rm_ipv6_addr_from_zephyr()
309 ot_addr = (struct in6_addr *)(&address->mAddress); in rm_ipv6_addr_from_zephyr()
311 &zephyr_addr->address.in6_addr)) { in rm_ipv6_addr_from_zephyr()
323 &zephyr_addr->address.in6_addr, in rm_ipv6_addr_from_zephyr()
328 &zephyr_addr->address.in6_addr); in rm_ipv6_addr_from_zephyr()
359 &zephyr_addr->address.in6_addr)) { in rm_ipv6_maddr_from_zephyr()
371 &zephyr_addr->address.in6_addr, in rm_ipv6_maddr_from_zephyr()
376 &zephyr_addr->address.in6_addr); in rm_ipv6_maddr_from_zephyr()