Home
last modified time | relevance | path

Searched refs:satosin6 (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/pf/ftp-proxy/
H A Dfilter.c41 #define satosin6(sa) ((struct sockaddr_in6 *)(sa)) macro
104 &satosin6(nat)->sin6_addr.s6_addr, 16); in add_nat()
138 &satosin6(rdr)->sin6_addr.s6_addr, 16); in add_rdr()
284 &satosin6(src)->sin6_addr.s6_addr, 16); in prepare_rule()
287 &satosin6(dst)->sin6_addr.s6_addr, 16); in prepare_rule()
344 return (server_lookup6(satosin6(client), satosin6(proxy), in server_lookup()
345 satosin6(server))); in server_lookup()
/freebsd/contrib/pf/tftp-proxy/
H A Dfilter.c45 #define satosin6(sa) ((struct sockaddr_in6 *)(sa)) macro
108 &satosin6(nat)->sin6_addr.s6_addr, 16); in add_nat()
142 &satosin6(rdr)->sin6_addr.s6_addr, 16); in add_rdr()
293 &satosin6(src)->sin6_addr.s6_addr, 16); in prepare_rule()
296 &satosin6(dst)->sin6_addr.s6_addr, 16); in prepare_rule()
355 return (server_lookup6(satosin6(client), satosin6(proxy), in server_lookup()
356 satosin6(server), proto)); in server_lookup()
/freebsd/sbin/ifconfig/
H A Daf_inet6.c198 sin6 = (const struct sockaddr_in6 *)satosin6(ifa->ifa_addr); in setip6eui64()
297 sin = satosin6(ifa->ifa_addr); in in6_status()
326 sin = satosin6(ifa->ifa_dstaddr); in in6_status()
335 sin = satosin6(ifa->ifa_netmask); in in6_status()
342 if ((satosin6(ifa->ifa_addr))->sin6_scope_id) in in6_status()
344 (satosin6(ifa->ifa_addr))->sin6_scope_id); in in6_status()
390 scopeid = satosin6(ifa->ifa_address)->sin6_scope_id; in in6_status_nl()
391 print_addr(satosin6(ifa->ifa_address)); in in6_status_nl()
393 scopeid = satosin6(ifa->ifa_local)->sin6_scope_id; in in6_status_nl()
394 print_addr(satosin6(ifa->ifa_local)); in in6_status_nl()
[all …]
H A Difvxlan.c129 struct sockaddr_in6 *sin6 = satosin6(rsa); in vxlan_status()
242 struct sockaddr_in6 *sin6 = satosin6(sa); in setvxlan_local()
306 struct sockaddr_in6 *sin6 = satosin6(sa); in setvxlan_remote()
370 struct sockaddr_in6 *sin6 = satosin6(sa); in setvxlan_group()
H A Dcarp.c234 memcpy(&carp_addr6, &(satosin6(res->ai_addr))->sin6_addr, sizeof(carp_addr6)); in setcarp_peer6()
H A Difpfsync.c234 struct sockaddr_in6 *sin6 = satosin6(peerres->ai_addr); in setpfsync_syncpeer()
/freebsd/usr.bin/netstat/
H A Droute.c417 in6_fillscopeid(satosin6(sa)); in fmt_sockaddr()
500 src = &satosin6(sa)->sin6_addr; in routename()
565 return (netname6(satosin6(sa), satosin6(mask))); in netname()
H A Dnetstat.h37 #define satosin6(sa) ((struct sockaddr_in6 *)(sa)) macro
/freebsd/sys/netinet6/
H A Din6_pcb.h67 #define satosin6(sa) ((struct sockaddr_in6 *)(sa)) macro
H A Din6.h686 #define satosin6(sa) ((struct sockaddr_in6 *)(sa)) macro
H A Draw_ip6.c111 #define satosin6(sa) ((struct sockaddr_in6 *)(sa)) macro
H A Din6_src.c655 struct sockaddr_in6 *sin6_next = satosin6(opts->ip6po_nexthop); in lookup_route()
/freebsd/sys/dev/wg/
H A Dwg_cookie.c333 blake2s_update(&state, (uint8_t *)&satosin6(sa)->sin6_addr, in make_cookie()
335 blake2s_update(&state, (uint8_t *)&satosin6(sa)->sin6_port, in make_cookie()
435 memcpy(key.ip, &satosin6(sa)->sin6_addr, IPV6_MASK_SIZE); in ratelimit_allow()
/freebsd/sys/net/
H A Dif_ipsec.c635 &satosin6(src)->sin6_addr) || in ipsec_ioctl()
637 &satosin6(dst)->sin6_addr)) in ipsec_ioctl()
644 error = sa6_embedscope(satosin6(src), 0); in ipsec_ioctl()
647 error = sa6_embedscope(satosin6(dst), 0); in ipsec_ioctl()
H A Dif_stf.c1015 satosin6(ifa->ifa_addr)->sin6_addr, in stf_ioctl()
1016 satosin6(ifa->ifa_netmask)->sin6_addr) == NULL) { in stf_ioctl()
/freebsd/usr.sbin/syslogd/
H A Dsyslogd.c159 #define satosin6(sa) ((struct sockaddr_in6 *)(void *)(sa)) macro
952 sin6 = satosin6(sa); in unmapped()
1862 ntohs(satosin6(f->fu_forw_addr->ai_addr)->sin6_port)); in fprintlog_write()
2654 port = ntohs(satosin6(f->fu_forw_addr->ai_addr)->sin6_port); in init()
3543 sin6 = satosin6(sa); in validate()
3544 a6p = satosin6(&ap->a_addr); in validate()
3545 m6p = satosin6(&ap->a_mask); in validate()
/freebsd/sys/netipsec/
H A Dkey.c4515 #ifdef satosin6
4516 #undef satosin6
4518 #define satosin6(s) ((const struct sockaddr_in6 *)s) macro
4544 if (satosin6(sa1)->sin6_scope_id != in key_sockaddrcmp()
4545 satosin6(sa2)->sin6_scope_id) { in key_sockaddrcmp()
4548 if (!IN6_ARE_ADDR_EQUAL(&satosin6(sa1)->sin6_addr, in key_sockaddrcmp()
4549 &satosin6(sa2)->sin6_addr)) { in key_sockaddrcmp()
4553 satosin6(sa1)->sin6_port != satosin6(sa2)->sin6_port) { in key_sockaddrcmp()
4583 if (satosin6(sa1)->sin6_scope_id != in key_sockaddrcmp_withmask()
4584 satosin6(sa2)->sin6_scope_id) in key_sockaddrcmp_withmask()
[all …]
H A Dipsec_output.c1072 inc.inc6_faddr = satosin6(&dst->sa)->sin6_addr; in ipsec_get_pmtu()
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_pfil.c221 sa6 = satosin6(tag + 1); in ipfw_check_packet()
/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdkrpc.c223 ip6_sprintf(buf, &satosin6(sin)->sin6_addr) : in nfssvc_program()
/freebsd/usr.sbin/inetd/
H A Dinetd.c199 #define satosin6(sa) ((struct sockaddr_in6 *)(void *)sa) macro
309 IN6_IS_ADDR_V4MAPPED(&satosin6(sa)->sin6_addr)) in whichaf()
429 bind_sa6 = satosin6(res->ai_addr); in main()