Lines Matching defs:ip6addr

96 static s8_t nd6_find_neighbor_cache_entry(const ip6_addr_t *ip6addr);
99 static s8_t nd6_find_destination_cache_entry(const ip6_addr_t *ip6addr);
101 static s8_t nd6_is_prefix_in_netif(const ip6_addr_t *ip6addr, struct netif *netif);
102 static s8_t nd6_select_router(const ip6_addr_t *ip6addr, struct netif *netif);
107 static s8_t nd6_get_next_hop_entry(const ip6_addr_t *ip6addr, struct netif *netif);
1122 * @param ip6addr the IPv6 address of the neighbor
1127 nd6_find_neighbor_cache_entry(const ip6_addr_t *ip6addr)
1131 if (ip6_addr_cmp(ip6addr, &(neighbor_cache[i].next_hop_address))) {
1281 * @param ip6addr the IPv6 address of the destination
1286 nd6_find_destination_cache_entry(const ip6_addr_t *ip6addr)
1290 if (ip6_addr_cmp(ip6addr, &(destination_cache[i].destination_addr))) {
1348 * @param ip6addr the IPv6 address to match
1352 nd6_is_prefix_in_netif(const ip6_addr_t *ip6addr, struct netif *netif)
1358 ip6_addr_netcmp(ip6addr, &(prefix_list[i].prefix))) {
1365 ip6_addr_netcmp(ip6addr, netif_ip6_addr(netif, i))) {
1375 * @param ip6addr the destination address
1381 nd6_select_router(const ip6_addr_t *ip6addr, struct netif *netif)
1388 (void)ip6addr; /* @todo match preferred routes!! (must implement ND6_OPTION_TYPE_ROUTE_INFO) */
1438 * @param ip6addr the destination IPv6 address
1442 nd6_find_route(const ip6_addr_t *ip6addr)
1446 i = nd6_select_router(ip6addr, NULL);
1602 * @param ip6addr the destination address
1609 nd6_get_next_hop_entry(const ip6_addr_t *ip6addr, struct netif *netif)
1626 /* Look for ip6addr in destination cache. */
1627 if (ip6_addr_cmp(ip6addr, &(destination_cache[nd6_cached_destination_index].destination_addr))) {
1633 i = nd6_find_destination_cache_entry(ip6addr);
1649 ip6_addr_set(&(destination_cache[nd6_cached_destination_index].destination_addr), ip6addr);
1652 if (ip6_addr_islinklocal(ip6addr) ||
1653 nd6_is_prefix_in_netif(ip6addr, netif)) {
1658 } else if ((next_hop_addr = LWIP_HOOK_ND6_GET_GW(netif, ip6addr)) != NULL) {
1665 i = nd6_select_router(ip6addr, netif);
1922 * @param ip6addr The destination IPv6 address of the packet.
1930 nd6_get_next_hop_addr_or_queue(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr, const u8_t **hwaddrp)
1935 i = nd6_get_next_hop_entry(ip6addr, netif);
1966 * @param ip6addr the destination address
1971 nd6_get_destination_mtu(const ip6_addr_t *ip6addr, struct netif *netif)
1975 i = nd6_find_destination_cache_entry(ip6addr);
1997 * @param ip6addr the destination address which is know to be reachable
2001 nd6_reachability_hint(const ip6_addr_t *ip6addr)
2006 if (ip6_addr_cmp(ip6addr, &(destination_cache[nd6_cached_destination_index].destination_addr))) {
2010 i = nd6_find_destination_cache_entry(ip6addr);