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

Function set_sofib

tools/route/route.c:313–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313static int
314set_sofib(int fib)
315{
316
317 if (fib < 0)
318 return (0);
319#ifdef FSTACK
320 return (rt_setsockopt(s, SOL_SOCKET, SO_SETFIB, (void *)&fib,
321 sizeof(fib)));
322#endif
323 return (setsockopt(s, SOL_SOCKET, SO_SETFIB, (void *)&fib,
324 sizeof(fib)));
325}
326
327static int
328fiboptlist_range(const char *arg, struct fibl_head_t *flh)

Callers 3

flushroutes_fibFunction · 0.85
newroute_fibFunction · 0.85
monitorFunction · 0.85

Calls 2

rt_setsockoptFunction · 0.85
setsockoptFunction · 0.50

Tested by

no test coverage detected