| 96 | }; |
| 97 | |
| 98 | static struct nhop_object * |
| 99 | lradix6_lookup(void *algo_data, const struct flm_lookup_key key, uint32_t scopeid) |
| 100 | { |
| 101 | struct radix_node_head *rnh = (struct radix_node_head *)algo_data; |
| 102 | struct radix6_addr_entry *ent; |
| 103 | struct sa_in6 addr6 = { |
| 104 | .sin6_len = KEY_LEN_INET6, |
| 105 | .sin6_addr = *key.addr6, |
| 106 | }; |
| 107 | if (IN6_IS_SCOPE_LINKLOCAL(key.addr6)) |
| 108 | addr6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff); |
| 109 | ent = (struct radix6_addr_entry *)(rn_match(&addr6, &rnh->rh)); |
| 110 | if (ent != NULL) |
| 111 | return (ent->nhop); |
| 112 | return (NULL); |
| 113 | } |
| 114 | |
| 115 | static uint8_t |
| 116 | lradix6_get_pref(const struct rib_rtable_info *rinfo) |
nothing calls this directly
no test coverage detected