MCPcopy Index your code
hub / github.com/F-Stack/f-stack / rtr_flush

Function rtr_flush

tools/ndp/ndp.c:1346–1359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1344}
1345
1346static void
1347rtr_flush()
1348{
1349 char dummyif[IFNAMSIZ+8];
1350 int sock;
1351
1352 if ((sock = socket(AF_INET6, SOCK_DGRAM, 0)) < 0)
1353 err(1, "socket");
1354 strlcpy(dummyif, "lo0", sizeof(dummyif)); /* dummy */
1355 if (ioctl(sock, SIOCSRTRFLUSH_IN6, (caddr_t)&dummyif) < 0)
1356 err(1, "ioctl(SIOCSRTRFLUSH_IN6)");
1357
1358 close(sock);
1359}
1360
1361static void
1362harmonize_rtr()

Callers 1

mainFunction · 0.85

Calls 4

socketClass · 0.50
strlcpyFunction · 0.50
ioctlFunction · 0.50
closeFunction · 0.50

Tested by

no test coverage detected