Lines Matching defs:sa
165 conn_tcp6(struct smb_ctx *ctx, const struct sockaddr *sa, int port)
173 if (sa->sa_family != AF_INET6) {
174 DPRINT("bad af %d", sa->sa_family);
177 bcopy(sa, &sin6, sizeof (sin6));
226 conn_tcp4(struct smb_ctx *ctx, const struct sockaddr *sa, int port)
234 if (sa->sa_family != AF_INET) {
235 DPRINT("bad af %d", sa->sa_family);
238 bcopy(sa, &sin, sizeof (sin));
296 struct sockaddr *sa;
302 sa = (struct sockaddr *)&sin;
320 * the IP address in the passed sa. Otherwise,
354 if ((err = conn_tcp4(ctx, sa, port)) != 0) {
380 struct sockaddr *sa;
423 sa = &ctx->ct_srvaddr.sa;
424 switch (sa->sa_family) {
427 err = conn_tcp6(ctx, sa, IPPORT_SMB);
431 err = conn_tcp4(ctx, sa, IPPORT_SMB);
440 err2 = conn_nbt(ctx, sa, NULL);
448 err = conn_nbt(ctx, sa, ctx->ct_srvname);
452 DPRINT("skipped family %d", sa->sa_family);