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

Function newroute_fib

tools/route/route.c:1193–1206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1191}
1192
1193static int
1194newroute_fib(int fib, char *cmd, int flags)
1195{
1196 int error;
1197
1198 error = set_sofib(fib);
1199 if (error) {
1200 warn("fib number %d is ignored", fib);
1201 return (error);
1202 }
1203
1204 error = rtmsg(*cmd, flags, fib);
1205 return (error);
1206}
1207
1208#ifdef INET
1209static void

Callers 1

newrouteFunction · 0.85

Calls 2

set_sofibFunction · 0.85
rtmsgFunction · 0.50

Tested by

no test coverage detected