Lines Matching refs:rtsock
138 static int rtsock; /* the routing socket */
490 close(rtsock);
615 if ((rtsock = socket(PF_ROUTE, SOCK_RAW, 0)) < 0) {
618 rtsock;
1465 if ((len = read(rtsock, buf, sizeof(buf))) < 0) {
1466 perror("read from rtsock");
1470 trace(1, "short read from rtsock: %d (should be > %lu)\n",
1531 trace(1, "rtsock: %s (addrs=%x)\n",
1652 trace(1, "rtsock: reconfigure interfaces, refresh interface routes\n");
1672 trace(1, "rtsock: read routing table again\n");
2604 if (write(rtsock, buf, len) > 0)
2614 trace(0, "Can not write to rtsock (addroute): %s\n",
2617 fprintf(rtlog, "\tCan not write to rtsock: %s\n",
2669 if (write(rtsock, buf, len) >= 0)
2679 trace(0, "Can not write to rtsock (delroute): %s\n",
2682 fprintf(rtlog, "\tCan not write to rtsock: %s\n",