Home
last modified time | relevance | path

Searched refs:af (Results 1 – 10 of 10) sorted by relevance

/openssh-portable/
H A Daddrmatch.c36 sa_family_t af; member
53 switch (af) { in addr_unicast_masklen()
66 switch (af) { in masklen_valid()
125 switch (af) { in addr_netmask()
127 n->af = AF_INET; in addr_netmask()
154 if (dst == NULL || a == NULL || b == NULL || a->af != b->af) in addr_and()
158 switch (a->af) { in addr_and()
181 if (a->af != b->af) in addr_cmp()
184 switch (a->af) { in addr_cmp()
240 switch (n->af) { in addr_invert()
[all …]
H A Dchannels.h306 void channel_set_af(struct ssh *, int af);
H A Dsshconnect.c308 check_ifaddrs(const char *ifname, int af, const struct ifaddrs *ifaddrs, in check_ifaddrs() argument
325 ifa->ifa_addr->sa_family != af || in check_ifaddrs()
H A Dchannels.c1387 u_int have, need, i, found, nmethods, addrlen, af; in channel_decode_socks5() local
1441 af = AF_INET; in channel_decode_socks5()
1445 af = -1; in channel_decode_socks5()
1449 af = AF_INET6; in channel_decode_socks5()
1487 if (inet_ntop(af, dest_addr, ntop, sizeof(ntop)) == NULL) in channel_decode_socks5()
3310 channel_set_af(struct ssh *ssh, int af) argument
3312 ssh->chanctxt->IPv4or6 = af;
/openssh-portable/openbsd-compat/
H A Dbindresvport.c55 int error, af; in bindresvport_sa() local
72 af = sa->sa_family; in bindresvport_sa()
75 af = sa->sa_family; in bindresvport_sa()
77 if (af == AF_INET) { in bindresvport_sa()
81 } else if (af == AF_INET6) { in bindresvport_sa()
89 sa->sa_family = af; in bindresvport_sa()
H A Drresvport.c58 rresvport_af(int *alport, sa_family_t af) in rresvport_af() argument
69 switch (af) { in rresvport_af()
82 sa->sa_family = af; in rresvport_af()
84 s = socket(af, SOCK_STREAM, 0); in rresvport_af()
99 sa->sa_family = af; in rresvport_af()
H A Dport-net.c318 u_int32_t af; in sys_tun_infilter() local
331 af = iph.ip_v == 6 ? OPENBSD_AF_INET6 : OPENBSD_AF_INET; in sys_tun_infilter()
335 POKE_U32(rbuf, af); in sys_tun_infilter()
341 af = PEEK_U32(buf); in sys_tun_infilter()
343 POKE_U32(buf, af == AF_INET6 ? OPENBSD_AF_INET6 : OPENBSD_AF_INET); in sys_tun_infilter()
356 u_int32_t af; in sys_tun_outfilter() local
362 if (*dlen < sizeof(af)) in sys_tun_outfilter()
368 *dlen -= sizeof(af); in sys_tun_outfilter()
369 buf = *data + sizeof(af); in sys_tun_outfilter()
372 af = (PEEK_U32(buf) == OPENBSD_AF_INET6) ? AF_INET6 : AF_INET; in sys_tun_outfilter()
[all …]
H A Dinet_ntop.c60 inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop() argument
62 switch (af) { in inet_ntop()
H A Dopenbsd-compat.h89 int rresvport_af(int *alport, sa_family_t af);
153 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
/openssh-portable/regress/
H A Dnetcat.c1174 set_common_sockopts(int s, int af) in set_common_sockopts() argument
1194 if (af == AF_INET6) { in set_common_sockopts()

Completed in 17 milliseconds