MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fib6_lookup_debugnet

Function fib6_lookup_debugnet

freebsd/netinet6/in6_fib.c:331–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331struct nhop_object *
332fib6_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

Callers

nothing calls this directly

Calls 2

fib6_lookup_rtFunction · 0.85
nhop_selectFunction · 0.85

Tested by

no test coverage detected