Home
last modified time | relevance | path

Searched refs:satosin (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/pf/ftp-proxy/
H A Dfilter.c40 #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 Dfilter.c44 #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 Daf_inet.c103 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 Difvxlan.c126 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 Difpfsync.c226 struct sockaddr_in *sin = satosin(peerres->ai_addr); in setpfsync_syncpeer()
/freebsd/libexec/talkd/
H A Dprocess.c145 #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 Droute.c495 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 Dnetstat.h36 #define satosin(sa) ((struct sockaddr_in *)(sa)) macro
/freebsd/sys/dev/wg/
H A Dwg_cookie.c326 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 Dip_icmp.c660 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 Din.h693 #define satosin(sa) ((struct sockaddr_in *)(sa)) macro
H A Dip_input.c731 if (satosin(&ia->ia_broadaddr)->sin_addr.s_addr == in ip_input()
H A Din_pcb.c1331 faddr = satosin(&CK_STAILQ_FIRST( in in_pcbconnect_setup()
/freebsd/usr.sbin/syslogd/
H A Dsyslogd.c155 #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 Dif_ipsec.c627 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 Dip_fw_pfil.c178 if (in_localip(satosin(psa)->sin_addr)) in ipfw_check_packet()
/freebsd/sys/netipsec/
H A Dkey.c4511 #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 Dipsec_output.c1067 inc.inc_faddr = satosin(&dst->sa)->sin_addr; in ipsec_get_pmtu()
/freebsd/usr.sbin/inetd/
H A Dinetd.c196 #define satosin(sa) ((struct sockaddr_in *)(void *)sa) macro
420 bind_sa4 = satosin(res->ai_addr); in main()
/freebsd/sys/netinet6/
H A Dnd6_rtr.c296 satosin(ifa->ifa_addr)->sin_addr)) { in defrtr_ipv6_only_ifp()