Lines Matching refs:sock
135 int sock;
212 static int set_recvpktinfo(int sock)
219 ret = setsockopt(sock,
225 ret = setsockopt(sock,
240 ret = setsockopt(sock,
253 static int __inline__ init_sock(int sock)
260 if (setsockopt(sock,
271 if (setsockopt(sock,
279 if (set_recvpktinfo(sock) < 0)
288 int sock = p->sock;
309 if ((cc = recvmsg(sock, &msgh, 0)) < 0)
333 int sock = p->sock;
382 cc = sendmsg(sock, &msgh, 0);
672 sock = open_sock();
673 if (sock < 0)
693 if (init_sock(sock) < 0)
723 p->sock = sock;