Lines Matching defs:saddr
3914 struct sockaddr *saddr = (struct sockaddr*)&ss;
3923 bcopy(sa, saddr, min(sizeof(ss), sa->sa_len));
3924 if (saddr->sa_family == AF_INET) {
3926 ((struct sockaddr_in*)saddr)->sin_port = htons(nmp->nm_mountport);
3927 mntport = ntohs(((struct sockaddr_in*)saddr)->sin_port);
3930 ((struct sockaddr_in6*)saddr)->sin6_port = htons(nmp->nm_mountport);
3931 mntport = ntohs(((struct sockaddr_in6*)saddr)->sin6_port);
3935 error = nfs_portmap_lookup(nmp, ctx, saddr, NULL, RPCPROG_MNT, mntvers, mntproto, timeo);
3937 if (saddr->sa_family == AF_INET)
3938 mntport = ntohs(((struct sockaddr_in*)saddr)->sin_port);
3940 mntport = ntohs(((struct sockaddr_in6*)saddr)->sin6_port);
3948 bcopy(sa, saddr, min(sizeof(ss), sa->sa_len));
3964 error = nfs_aux_request(nmp, thd, saddr, NULL,
3998 struct sockaddr *saddr = (struct sockaddr*)&ss;
4010 bcopy(nmp->nm_saddr, saddr, min(sizeof(ss), nmp->nm_saddr->sa_len));
4011 if (saddr->sa_family == AF_INET)
4012 ((struct sockaddr_in*)saddr)->sin_port = htons(mntport);
4014 ((struct sockaddr_in6*)saddr)->sin6_port = htons(mntport);
4017 error = nfs_portmap_lookup(nmp, ctx, saddr, NULL, RPCPROG_MNT, mntvers, mntproto, timeo);
4019 if (saddr->sa_family == AF_INET)
4020 mntport = ntohs(((struct sockaddr_in*)saddr)->sin_port);
4022 mntport = ntohs(((struct sockaddr_in6*)saddr)->sin6_port);
4033 bcopy(nmp->nm_saddr, saddr, min(sizeof(ss), nmp->nm_saddr->sa_len));
4052 error = nfs_aux_request(nmp, thd, saddr, NULL,