| 329 | } |
| 330 | |
| 331 | struct nhop_object * |
| 332 | fib6_lookup_debugnet(uint32_t fibnum, const struct in6_addr *dst6, |
| 333 | uint32_t scopeid, uint32_t flags) |
| 334 | { |
| 335 | struct rtentry *rt; |
| 336 | struct route_nhop_data rnd; |
| 337 | |
| 338 | rt = fib6_lookup_rt(fibnum, dst6, scopeid, NHR_UNLOCKED, &rnd); |
| 339 | if (rt != NULL) { |
| 340 | struct nhop_object *nh = nhop_select(rnd.rnd_nhop, 0); |
| 341 | /* Ensure route & ifp is UP */ |
| 342 | if (RT_LINK_IS_UP(nh->nh_ifp)) |
| 343 | return (nh); |
| 344 | } |
| 345 | |
| 346 | return (NULL); |
| 347 | } |
| 348 | |
| 349 | #endif |
nothing calls this directly
no test coverage detected