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

Function harmonize_rtr

tools/ndp/ndp.c:1361–1374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1359}
1360
1361static void
1362harmonize_rtr()
1363{
1364 char dummyif[IFNAMSIZ+8];
1365 int sock;
1366
1367 if ((sock = socket(AF_INET6, SOCK_DGRAM, 0)) < 0)
1368 err(1, "socket");
1369 strlcpy(dummyif, "lo0", sizeof(dummyif)); /* dummy */
1370 if (ioctl(sock, SIOCSNDFLUSH_IN6, (caddr_t)&dummyif) < 0)
1371 err(1, "ioctl(SIOCSNDFLUSH_IN6)");
1372
1373 close(sock);
1374}
1375
1376#ifdef SIOCSDEFIFACE_IN6 /* XXX: check SIOCGDEFIFACE_IN6 as well? */
1377static void

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