Lines Matching defs:sockfd
46 int sockfd, connected, from_ok, route_cmd;
178 if (send(TT.sockfd , (void*)buf, blen, 0) < 0)
1259 length = recv(TT.sockfd, reply, sizeof(reply), 0);
1398 int len = recv(TT.sockfd, TT.gbuf, sizeof(TT.gbuf), 0);
1708 int sockfd = 0;
1728 sockfd = xsocket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
1729 if (send(sockfd , (void*)mhdr, mhdr->nlmsg_len, 0) < 0)
1734 int msglen = recv(sockfd, toybuf, sizeof(toybuf), 0);
1739 xclose(sockfd);
1743 xclose(sockfd);
1751 xclose(sockfd);
1757 if (merr->error == 0) { xclose(sockfd); return 0; }
1764 xclose(sockfd);
1773 xclose(sockfd);
1863 xclose(TT.sockfd);
1864 TT.sockfd = xsocket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
2790 int msglen = recv(TT.sockfd, TT.gbuf, MESG_LEN, 0);
2876 TT.sockfd = xsocket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
2895 xclose(TT.sockfd);