Lines Matching refs:sock
49 int length, state, request_length, sock, sock1, status, retval, retries;
245 if (TT.sock > 0) xclose(TT.sock);
246 TT.sock = xsocket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IPV6));
252 if (bind(TT.sock, (struct sockaddr *) &sockll, sizeof(sockll))) {
253 xclose(TT.sock);
256 if (setsockopt(TT.sock, SOL_PACKET, PACKET_HOST,&constone, sizeof(int)) < 0) {
476 xclose(TT.sock);
586 int maxfd = TT.sock;
588 if (TT.sock >= 0) FD_SET(TT.sock, &rfds);
620 } else if (FD_ISSET(TT.sock, &rfds)) {
621 if ((TT.status = read(TT.sock, toybuf, sizeof(toybuf))) <= 0) continue;
691 xclose(TT.sock);