/freebsd/contrib/pf/ftp-proxy/ |
H A D | filter.c | 41 #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 D | filter.c | 45 #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 D | af_inet6.c | 198 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 D | ifvxlan.c | 129 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 D | carp.c | 234 memcpy(&carp_addr6, &(satosin6(res->ai_addr))->sin6_addr, sizeof(carp_addr6)); in setcarp_peer6()
|
H A D | ifpfsync.c | 234 struct sockaddr_in6 *sin6 = satosin6(peerres->ai_addr); in setpfsync_syncpeer()
|
/freebsd/usr.bin/netstat/ |
H A D | route.c | 417 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 D | netstat.h | 37 #define satosin6(sa) ((struct sockaddr_in6 *)(sa)) macro
|
/freebsd/sys/netinet6/ |
H A D | in6_pcb.h | 67 #define satosin6(sa) ((struct sockaddr_in6 *)(sa)) macro
|
H A D | in6.h | 686 #define satosin6(sa) ((struct sockaddr_in6 *)(sa)) macro
|
H A D | raw_ip6.c | 111 #define satosin6(sa) ((struct sockaddr_in6 *)(sa)) macro
|
H A D | in6_src.c | 655 struct sockaddr_in6 *sin6_next = satosin6(opts->ip6po_nexthop); in lookup_route()
|
/freebsd/sys/dev/wg/ |
H A D | wg_cookie.c | 333 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 D | if_ipsec.c | 635 &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 D | if_stf.c | 1015 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 D | syslogd.c | 159 #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 D | key.c | 4515 #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 D | ipsec_output.c | 1072 inc.inc6_faddr = satosin6(&dst->sa)->sin6_addr; in ipsec_get_pmtu()
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_pfil.c | 221 sa6 = satosin6(tag + 1); in ipfw_check_packet()
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdkrpc.c | 223 ip6_sprintf(buf, &satosin6(sin)->sin6_addr) : in nfssvc_program()
|
/freebsd/usr.sbin/inetd/ |
H A D | inetd.c | 199 #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()
|