Lines Matching refs:sock
122 svcudp_bufcreate (int sock, u_int sendsz, u_int recvsz) in svcudp_bufcreate() argument
132 if (sock == RPC_ANYSOCK) in svcudp_bufcreate()
134 if ((sock = __socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) in svcudp_bufcreate()
143 if (bindresvport (sock, &addr)) in svcudp_bufcreate()
146 (void) __bind (sock, (struct sockaddr *) &addr, len); in svcudp_bufcreate()
148 if (__getsockname (sock, (struct sockaddr *) &addr, &len) != 0) in svcudp_bufcreate()
152 (void) __close (sock); in svcudp_bufcreate()
175 xprt->xp_sock = sock; in svcudp_bufcreate()
187 if (__setsockopt (sock, SOL_IP, IP_PKTINFO, (void *) &pad, in svcudp_bufcreate()
207 svcudp_create (int sock) in libc_hidden_def()
209 return svcudp_bufcreate (sock, UDPMSGSIZE, UDPMSGSIZE); in libc_hidden_def()