/freebsd/contrib/pf/ftp-proxy/ |
H A D | filter.c | 40 #define satosin(sa) ((struct sockaddr_in *)(sa)) macro 100 &satosin(nat)->sin_addr.s_addr, 4); in add_nat() 134 &satosin(rdr)->sin_addr.s_addr, 4); in add_rdr() 277 &satosin(src)->sin_addr.s_addr, 4); in prepare_rule() 280 &satosin(dst)->sin_addr.s_addr, 4); in prepare_rule() 340 return (server_lookup4(satosin(client), satosin(proxy), in server_lookup() 341 satosin(server))); in server_lookup()
|
/freebsd/contrib/pf/tftp-proxy/ |
H A D | filter.c | 44 #define satosin(sa) ((struct sockaddr_in *)(sa)) macro 104 &satosin(nat)->sin_addr.s_addr, 4); in add_nat() 138 &satosin(rdr)->sin_addr.s_addr, 4); in add_rdr() 286 &satosin(src)->sin_addr.s_addr, 4); in prepare_rule() 289 &satosin(dst)->sin_addr.s_addr, 4); in prepare_rule() 351 return (server_lookup4(satosin(client), satosin(proxy), in server_lookup() 352 satosin(server), proto)); in server_lookup()
|
/freebsd/sbin/ifconfig/ |
H A D | af_inet.c | 103 sin = satosin(ifa->ifa_addr); in in_status() 110 sin = satosin(ifa->ifa_dstaddr); in in_status() 116 sin = satosin(ifa->ifa_netmask); in in_status() 137 sin = satosin(ifa->ifa_broadaddr); in in_status() 161 struct sockaddr_in *sin = satosin(ifa->ifa_local); in in_status_nl() 167 struct sockaddr_in *dst = satosin(ifa->ifa_address); in in_status_nl() 179 struct sockaddr_in *brd = satosin(ifa->ifa_broadcast); in in_status_nl() 365 addr = satosin(attrs.ifa_local)->sin_addr; in in_delete_first_nl()
|
H A D | ifvxlan.c | 126 struct sockaddr_in *sin = satosin(rsa); in vxlan_status() 231 struct sockaddr_in *sin = satosin(sa); in setvxlan_local() 295 struct sockaddr_in *sin = satosin(sa); in setvxlan_remote() 359 struct sockaddr_in *sin = satosin(sa); in setvxlan_group()
|
H A D | ifpfsync.c | 226 struct sockaddr_in *sin = satosin(peerres->ai_addr); in setpfsync_syncpeer()
|
/freebsd/libexec/talkd/ |
H A D | process.c | 145 #define satosin(sa) ((struct sockaddr_in *)(void *)(sa)) in do_announce() macro 146 hp = gethostbyaddr(&satosin(&mp->ctl_addr)->sin_addr, in do_announce()
|
/freebsd/usr.bin/netstat/ |
H A D | route.c | 495 src = &satosin(sa)->sin_addr; in routename() 557 return (netname4(satosin(sa)->sin_addr.s_addr, in netname() 558 satosin(mask)->sin_addr.s_addr)); in netname() 560 return (netname4(satosin(sa)->sin_addr.s_addr, in netname()
|
H A D | netstat.h | 36 #define satosin(sa) ((struct sockaddr_in *)(sa)) macro
|
/freebsd/sys/dev/wg/ |
H A D | wg_cookie.c | 326 blake2s_update(&state, (uint8_t *)&satosin(sa)->sin_addr, in make_cookie() 328 blake2s_update(&state, (uint8_t *)&satosin(sa)->sin_port, in make_cookie() 430 memcpy(key.ip, &satosin(sa)->sin_addr, IPV4_MASK_SIZE); in ratelimit_allow()
|
/freebsd/sys/netinet/ |
H A D | ip_icmp.c | 660 ip->ip_src = satosin(&ia->ia_broadaddr)->sin_addr; in icmp_input() 662 ip->ip_src = satosin(&ia->ia_dstaddr)->sin_addr; in icmp_input() 824 if (satosin(&ia->ia_broadaddr)->sin_addr.s_addr == in icmp_reflect()
|
H A D | in.h | 693 #define satosin(sa) ((struct sockaddr_in *)(sa)) macro
|
H A D | ip_input.c | 731 if (satosin(&ia->ia_broadaddr)->sin_addr.s_addr == in ip_input()
|
H A D | in_pcb.c | 1331 faddr = satosin(&CK_STAILQ_FIRST( in in_pcbconnect_setup()
|
/freebsd/usr.sbin/syslogd/ |
H A D | syslogd.c | 155 #define satosin(sa) ((struct sockaddr_in *)(void *)(sa)) macro 1856 ntohs(satosin(f->fu_forw_addr->ai_addr)->sin_port)); in fprintlog_write() 2649 port = ntohs(satosin(f->fu_forw_addr->ai_addr)->sin_port); in init() 3531 sin4 = satosin(sa); in validate() 3532 a4p = satosin(&ap->a_addr); in validate() 3533 m4p = satosin(&ap->a_mask); in validate()
|
/freebsd/sys/net/ |
H A D | if_ipsec.c | 627 if (satosin(src)->sin_addr.s_addr == INADDR_ANY || in ipsec_ioctl() 628 satosin(dst)->sin_addr.s_addr == INADDR_ANY) in ipsec_ioctl()
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_pfil.c | 178 if (in_localip(satosin(psa)->sin_addr)) in ipfw_check_packet()
|
/freebsd/sys/netipsec/ |
H A D | key.c | 4511 #ifdef satosin 4512 #undef satosin 4514 #define satosin(s) ((const struct sockaddr_in *)s) macro 4532 if (satosin(sa1)->sin_addr.s_addr != in key_sockaddrcmp() 4533 satosin(sa2)->sin_addr.s_addr) { in key_sockaddrcmp() 4536 if (port && satosin(sa1)->sin_port != satosin(sa2)->sin_port) in key_sockaddrcmp() 4578 return (!key_bbcmp(&satosin(sa1)->sin_addr, in key_sockaddrcmp_withmask() 4579 &satosin(sa2)->sin_addr, mask)); in key_sockaddrcmp_withmask() 4592 #undef satosin
|
H A D | ipsec_output.c | 1067 inc.inc_faddr = satosin(&dst->sa)->sin_addr; in ipsec_get_pmtu()
|
/freebsd/usr.sbin/inetd/ |
H A D | inetd.c | 196 #define satosin(sa) ((struct sockaddr_in *)(void *)sa) macro 420 bind_sa4 = satosin(res->ai_addr); in main()
|
/freebsd/sys/netinet6/ |
H A D | nd6_rtr.c | 296 satosin(ifa->ifa_addr)->sin_addr)) { in defrtr_ipv6_only_ifp()
|