Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 14 of 14) sorted by last modified time

/openssh-portable/
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 Dsshconnect.c294 struct sockaddr_in *sa; in check_ifaddrs() local
312 sa = (struct sockaddr_in *)ifa->ifa_addr; in check_ifaddrs()
313 if (!allow_local && sa->sin_addr.s_addr == in check_ifaddrs()
321 memcpy(resultp, sa, *rlenp); in check_ifaddrs()
H A Dmisc.c2391 struct sigaction sa, osa; in ssh_signal() local
2394 memset(&sa, 0, sizeof(sa)); in ssh_signal()
2395 sa.sa_handler = handler; in ssh_signal()
2396 sigfillset(&sa.sa_mask); in ssh_signal()
2399 sa.sa_flags = SA_RESTART; in ssh_signal()
2401 if (sigaction(signum, &sa, &osa) == -1) { in ssh_signal()
H A Dconfigure.ac2572 struct sigaction sa;
2574 sa.sa_handler = sighandler;
2575 sa.sa_flags = SA_RESTART;
2576 (void)sigaction(SIGTERM, &sa, NULL);
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 Dloginrec.h45 struct sockaddr sa; member
115 void login_set_addr(struct logininfo *li, const struct sockaddr *sa,
H A Dlogintest.c79 li->hostaddr.sa.sa_family); in dump_logininfo()
/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()
/openssh-portable/openbsd-compat/
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);
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 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 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()

Completed in 23 milliseconds