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

Function get_rnh

freebsd/net/route/route_ctl.c:186–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186static struct rib_head *
187get_rnh(uint32_t fibnum, const struct rt_addrinfo *info)
188{
189 struct rib_head *rnh;
190 struct sockaddr *dst;
191
192 KASSERT((fibnum < rt_numfibs), ("rib_add_route: bad fibnum"));
193
194 dst = info->rti_info[RTAX_DST];
195 rnh = rt_tables_get_rnh(fibnum, dst->sa_family);
196
197 return (rnh);
198}
199
200#ifdef ROUTE_MPATH
201static bool

Callers 3

rib_add_routeFunction · 0.85
rib_del_routeFunction · 0.85
rib_change_routeFunction · 0.85

Calls 1

rt_tables_get_rnhFunction · 0.85

Tested by

no test coverage detected