| 32 | } |
| 33 | |
| 34 | static struct route_ipv6_config * |
| 35 | find_route6_entry(struct route_ipv6_config *route) |
| 36 | { |
| 37 | struct route_ipv6_config *ipv6route; |
| 38 | |
| 39 | TAILQ_FOREACH(ipv6route, &route6, next) { |
| 40 | if (!memcmp(ipv6route, route, sizeof(*route))) |
| 41 | return ipv6route; |
| 42 | } |
| 43 | return NULL; |
| 44 | } |
| 45 | |
| 46 | static uint8_t |
| 47 | convert_ip6_netmask_to_depth(uint8_t *netmask) |