Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 14 of 14) sorted by relevance

/openssh-portable/openbsd-compat/
H A Dbindresvport.c53 bindresvport_sa(int sd, struct sockaddr *sa) in bindresvport_sa() argument
64 if (sa == NULL) { in bindresvport_sa()
66 sa = (struct sockaddr *)&myaddr; in bindresvport_sa()
69 if (getsockname(sd, sa, &salen) == -1) in bindresvport_sa()
72 af = sa->sa_family; in bindresvport_sa()
75 af = sa->sa_family; in bindresvport_sa()
78 in = (struct sockaddr_in *)sa; in bindresvport_sa()
82 in6 = (struct sockaddr_in6 *)sa; in bindresvport_sa()
89 sa->sa_family = af; in bindresvport_sa()
101 error = bind(sd, sa, salen); in bindresvport_sa()
H A Drresvport.c61 struct sockaddr *sa; in rresvport_af() local
67 sa = (struct sockaddr *)&ss; in rresvport_af()
72 portp = &((struct sockaddr_in *)sa)->sin_port; in rresvport_af()
76 portp = &((struct sockaddr_in6 *)sa)->sin6_port; in rresvport_af()
82 sa->sa_family = af; in rresvport_af()
90 if (bind(s, sa, salen) >= 0) in rresvport_af()
99 sa->sa_family = af; in rresvport_af()
100 if (bindresvport_sa(s, sa) == -1) { in rresvport_af()
H A Dreadpassphrase.c115 sigemptyset(&sa.sa_mask); in readpassphrase()
117 sa.sa_handler = handler; in readpassphrase()
118 (void)sigaction(SIGALRM, &sa, &savealrm); in readpassphrase()
119 (void)sigaction(SIGHUP, &sa, &savehup); in readpassphrase()
120 (void)sigaction(SIGINT, &sa, &saveint); in readpassphrase()
121 (void)sigaction(SIGPIPE, &sa, &savepipe); in readpassphrase()
122 (void)sigaction(SIGQUIT, &sa, &savequit); in readpassphrase()
123 (void)sigaction(SIGTERM, &sa, &saveterm); in readpassphrase()
124 (void)sigaction(SIGTSTP, &sa, &savetstp); in readpassphrase()
125 (void)sigaction(SIGTTIN, &sa, &savettin); in readpassphrase()
[all …]
H A Dfake-rfc2553.c47 int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, in getnameinfo() argument
50 struct sockaddr_in *sin = (struct sockaddr_in *)sa; in getnameinfo()
54 if (sa->sa_family != AF_UNSPEC && sa->sa_family != AF_INET) in getnameinfo()
H A Dport-aix.c419 sshaix_getnameinfo(const struct sockaddr *sa, size_t salen, char *host, in sshaix_getnameinfo() argument
426 sa->sa_family == AF_INET6) { in sshaix_getnameinfo()
427 sa6 = (struct sockaddr_in6 *)sa; in sshaix_getnameinfo()
436 return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags); in sshaix_getnameinfo()
H A Dopenbsd-compat.h56 int bindresvport_sa(int sd, struct sockaddr *sa);
/openssh-portable/
H A Dloginrec.h45 struct sockaddr sa; member
115 void login_set_addr(struct logininfo *li, const struct sockaddr *sa,
H A Daddrmatch.c81 addr_sa_to_xaddr(struct sockaddr *sa, socklen_t slen, struct xaddr *xa) in addr_sa_to_xaddr() argument
83 struct sockaddr_in *in4 = (struct sockaddr_in *)sa; in addr_sa_to_xaddr()
84 struct sockaddr_in6 *in6 = (struct sockaddr_in6 *)sa; in addr_sa_to_xaddr()
88 switch (sa->sa_family) { in addr_sa_to_xaddr()
H A Dloginrec.c421 login_set_addr(struct logininfo *li, const struct sockaddr *sa, in login_set_addr() argument
430 memcpy(&li->hostaddr.sa, sa, bufsize); in login_set_addr()
701 if (li->hostaddr.sa.sa_family == AF_INET) in construct_utmp()
706 if (li->hostaddr.sa.sa_family == AF_INET6) { in construct_utmp()
707 sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa); in construct_utmp()
786 if (li->hostaddr.sa.sa_family == AF_INET) in construct_utmpx()
791 if (li->hostaddr.sa.sa_family == AF_INET6) { in construct_utmpx()
792 sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa); in construct_utmpx()
H A Dlogintest.c79 li->hostaddr.sa.sa_family); in dump_logininfo()
H A Dmisc.c2445 struct sigaction sa, osa; in ssh_signal() local
2448 memset(&sa, 0, sizeof(sa)); in ssh_signal()
2449 sa.sa_handler = handler; in ssh_signal()
2450 sigfillset(&sa.sa_mask); in ssh_signal()
2453 sa.sa_flags = SA_RESTART; in ssh_signal()
2455 if (sigaction(signum, &sa, &osa) == -1) { in ssh_signal()
H A Dsshconnect.c295 struct sockaddr_in *sa; in check_ifaddrs() local
313 sa = (struct sockaddr_in *)ifa->ifa_addr; in check_ifaddrs()
314 if (!allow_local && sa->sin_addr.s_addr == in check_ifaddrs()
322 memcpy(resultp, sa, *rlenp); in check_ifaddrs()
H A Dconfigure.ac2543 struct sigaction sa;
2545 sa.sa_handler = sighandler;
2546 sa.sa_flags = SA_RESTART;
2547 (void)sigaction(SIGTERM, &sa, NULL);
/openssh-portable/regress/
H A Dnetcat.c1272 report_connect(const struct sockaddr *sa, socklen_t salen) in report_connect() argument
1282 if ((herr = getnameinfo(sa, salen, in report_connect()

Completed in 22 milliseconds