Lines Matching defs:saddr
945 struct sockaddr *saddr, *oldsaddr;
1222 saddr = nso->nso_saddr2;
1223 if (!saddr) {
1244 saddr = (struct sockaddr*)&ss;
1249 if (saddr)
1251 if (saddr && fh)
1253 if (!saddr || !fh || !path) {
1267 error = nfs3_mount_rpc(nmp, saddr, nso->nso_sotype, nfsvers,
4853 struct sockaddr *saddr,
4876 if ((error = sock_socket(saddr->sa_family, sotype, soproto, NULL, NULL, &newso)))
4880 int level = (saddr->sa_family == AF_INET) ? IPPROTO_IP : IPPROTO_IPV6;
4881 int optname = (saddr->sa_family == AF_INET) ? IP_PORTRANGE : IPV6_PORTRANGE;
4885 ss.ss_len = saddr->sa_len;
4886 ss.ss_family = saddr->sa_family;
4904 error = sock_connect(newso, saddr, 0);
4941 msg.msg_name = saddr;
4942 msg.msg_namelen = saddr->sa_len;
5035 struct sockaddr *saddr = (struct sockaddr*)&ss;
5043 bcopy(sa, saddr, min(sizeof(ss), sa->sa_len));
5044 if (saddr->sa_family == AF_INET) {
5049 } else if (saddr->sa_family == AF_INET6) {
5063 ((struct sockaddr_in*)saddr)->sin_port = htons(PMAPPORT);
5065 ((struct sockaddr_in6*)saddr)->sin6_port = htons(PMAPPORT);
5087 error = nfs_aux_request(nmp, thd, saddr, so, (ipproto == IPPROTO_UDP) ? SOCK_DGRAM : SOCK_STREAM,
5103 bcopy(sa, saddr, min(sizeof(ss), sa->sa_len));
5104 ((struct sockaddr_in6*)saddr)->sin6_port = htons(0);
5109 if (!nfs_uaddr2sockaddr(uaddr, saddr))
5122 bcopy(sa, saddr, min(sizeof(ss), sa->sa_len));
5129 bcopy(saddr, sa, min(saddr->sa_len, sa->sa_len));