Home
last modified time | relevance | path

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

/openssh-portable/
H A Daddr.c38 switch (af) { in addr_unicast_masklen()
51 switch (af) { in masklen_valid()
71 switch (xa->af) { in addr_xaddr_to_sa()
148 switch (n->af) { in addr_invert()
175 switch (af) { in addr_netmask()
212 if (dst == NULL || a == NULL || b == NULL || a->af != b->af) in addr_and()
216 switch (a->af) { in addr_and()
235 if (a->af != b->af) in addr_cmp()
238 switch (a->af) { in addr_cmp()
268 switch (a->af) { in addr_is_all0s()
[all …]
H A Daddr.h26 sa_family_t af; member
42 int addr_unicast_masklen(int af);
46 int addr_netmask(int af, u_int l, struct xaddr *n);
47 int addr_hostmask(int af, u_int l, struct xaddr *n);
H A Dsrclimit.c83 bits = xa.af == AF_INET ? ipv4_masklen : ipv6_masklen; in srclimit_check_allow()
84 if (addr_netmask(xa.af, bits, &xmask) != 0 || in srclimit_check_allow()
H A Dchannels.h317 void channel_set_af(struct ssh *, int af);
H A Dmisc.c255 int af; in set_sock_tos() local
257 switch ((af = get_sock_af(fd))) { in set_sock_tos()
282 debug2_f("unsupported socket family %d", af); in set_sock_tos()
H A Dchannels.c1404 u_int have, need, i, found, nmethods, addrlen, af; in channel_decode_socks5() local
1454 af = AF_INET; in channel_decode_socks5()
1458 af = -1; in channel_decode_socks5()
1462 af = AF_INET6; in channel_decode_socks5()
1496 if (inet_ntop(af, dest_addr, ntop, sizeof(ntop)) == NULL) in channel_decode_socks5()
3257 channel_set_af(struct ssh *ssh, int af) argument
3259 ssh->chanctxt->IPv4or6 = af;
H A Dsshconnect.c293 check_ifaddrs(const char *ifname, int af, const struct ifaddrs *ifaddrs, in check_ifaddrs() argument
310 ifa->ifa_addr->sa_family != af || in check_ifaddrs()
/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.c319 u_int32_t af; in sys_tun_infilter() local
332 af = iph.ip_v == 6 ? OPENBSD_AF_INET6 : OPENBSD_AF_INET; in sys_tun_infilter()
336 POKE_U32(rbuf, af); in sys_tun_infilter()
342 af = PEEK_U32(buf); in sys_tun_infilter()
344 POKE_U32(buf, af == AF_INET6 ? OPENBSD_AF_INET6 : OPENBSD_AF_INET); in sys_tun_infilter()
357 u_int32_t af; in sys_tun_outfilter() local
363 if (*dlen < sizeof(af)) in sys_tun_outfilter()
369 *dlen -= sizeof(af); in sys_tun_outfilter()
370 buf = *data + sizeof(af); in sys_tun_outfilter()
373 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.h93 int rresvport_af(int *alport, sa_family_t af);
157 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
/openssh-portable/regress/
H A Dnetcat.c1177 set_common_sockopts(int s, int af) in set_common_sockopts() argument
1197 if (af == AF_INET6) { in set_common_sockopts()