| 33 | } |
| 34 | |
| 35 | static struct route_ipv4_config * |
| 36 | find_route4_entry(struct route_ipv4_config *route) |
| 37 | { |
| 38 | struct route_ipv4_config *ipv4route; |
| 39 | |
| 40 | TAILQ_FOREACH(ipv4route, &route4, next) { |
| 41 | if (!memcmp(ipv4route, route, sizeof(*route))) |
| 42 | return ipv4route; |
| 43 | } |
| 44 | return NULL; |
| 45 | |
| 46 | } |
| 47 | |
| 48 | static uint8_t |
| 49 | convert_netmask_to_depth(uint32_t netmask) |