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

Function nhop_select

freebsd/net/route/route_var.h:264–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262};
263
264static inline struct nhop_object *
265nhop_select(struct nhop_object *nh, uint32_t flowid)
266{
267
268#ifdef ROUTE_MPATH
269 if (NH_IS_NHGRP(nh)) {
270 struct nhgrp_object *nhg = (struct nhgrp_object *)nh;
271 nh = nhg->nhops[flowid % nhg->nhg_size];
272 }
273#endif
274 return (nh);
275}
276
277
278struct weightened_nhop;

Callers 7

fib4_lookupFunction · 0.85
fib4_lookup_debugnetFunction · 0.85
fib6_lookupFunction · 0.85
fib6_lookup_debugnetFunction · 0.85
rib_lookup_infoFunction · 0.85
rib_handle_ifaddr_oneFunction · 0.85
nhop_select_funcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected