| /xnu-8019.80.24/bsd/netinet/ |
| H A D | in.h | 313 struct in_addr { struct 401 struct in_addr sin_addr; 407 sizeof (struct in_addr)) == 0) 420 struct in_addr sin_addr; 449 struct in_addr ip_dst; /* first hop, 0 w/o src rt */ 564 struct in_addr imr_multiaddr; /* IP multicast address of group */ 565 struct in_addr imr_interface; /* local IP address of interface */ 574 struct in_addr imr_multiaddr; /* IP multicast address of group */ 575 struct in_addr imr_address; /* local IP address of interface */ 584 struct in_addr imr_multiaddr; /* IP multicast address of group */ [all …]
|
| H A D | dhcp.h | 50 struct in_addr dp_ciaddr; /* client IP address */ 51 struct in_addr dp_yiaddr; /* 'your' IP address */ 52 struct in_addr dp_siaddr; /* server IP address */ 53 struct in_addr dp_giaddr; /* gateway IP address */
|
| H A D | igmp.h | 93 struct in_addr igmp_group; /* group address being reported */ 103 struct in_addr igmp_group; /* group address being reported */ 122 struct in_addr ig_group; /* group address being reported */
|
| H A D | ip_var.h | 83 struct in_addr ih_src; /* source internet address */ 84 struct in_addr ih_dst; /* destination internet address */ 100 struct in_addr ipq_src, ipq_dst; 116 struct in_addr ipopt_dst; /* first-hop dst if source routed */ 136 struct in_addr imo_multicast_addr; /* ifindex/addr on MULTICAST_IF */ 331 extern struct in_ifaddr *ip_rtaddr(struct in_addr);
|
| H A D | in_var.h | 91 struct in_addr ia_netbroadcast; /* to recognize net broadcasts */ 116 struct in_addr ia_addr; /* interface address */ 121 struct in_addr ia_netbroadcast; /* to recognize net broadcasts */ 122 struct in_addr ia_dstaddr; 127 struct in_addr ia_ipaddr; /* conflicting IP address */ 318 struct in_addr inm_addr; /* IP multicast address, convenience */ 504 extern struct in_multi *in_addmulti(struct in_addr *, struct ifnet *);
|
| H A D | in_pcb.h | 122 struct in_addr ia46_addr4; 313 struct in_addr reserved1; /* reserved */ 314 struct in_addr reserved2; /* reserved */ 792 extern int in_pcbladdr(struct inpcb *, struct sockaddr *, struct in_addr *, 794 extern struct inpcb *in_pcblookup_local(struct inpcbinfo *, struct in_addr, 797 struct in_addr, u_int, int); 798 extern struct inpcb *in_pcblookup_hash(struct inpcbinfo *, struct in_addr, 799 u_int, struct in_addr, u_int, int, struct ifnet *); 800 extern int in_pcblookup_hash_exists(struct inpcbinfo *, struct in_addr, 801 u_int, struct in_addr, u_int, int, uid_t *, gid_t *, struct ifnet *); [all …]
|
| H A D | ip_input.c | 381 struct in_addr dst; /* final destination */ 384 struct in_addr route[MAX_IPOPTLEN / sizeof(struct in_addr)]; 388 static void save_rte(u_char *, struct in_addr); 701 struct in_addr pkte_saddr; 702 struct in_addr pkte_daddr; 802 ip_input_update_nstat(struct ifnet *ifp, struct in_addr src_ip, in ip_input_update_nstat() 932 struct in_addr src_ip; in ip_input_first_pass() 2773 struct in_addr *sin, dst; in ip_dooptions() 2852 if (off > optlen - (int)sizeof(struct in_addr)) { in ip_dooptions() 2915 sizeof(struct in_addr)); in ip_dooptions() [all …]
|
| H A D | if_ether.h | 131 struct in_addr sin_addr; 132 struct in_addr sin_srcaddr;
|
| H A D | ip.h | 114 struct in_addr ip_src, ip_dst; /* source and dest address */ 223 struct in_addr ipt_addr;
|
| H A D | tcp_cache.c | 45 struct in_addr addr; 279 memcpy(&key->thk_ip.addr, &tcks->laddr.addr, sizeof(struct in_addr)); in tcp_cache_hash_src() 300 sizeof(struct in_addr)); in tcp_cache_hash() 411 memcpy(&tcks->laddr.addr, &inp->inp_laddr, sizeof(struct in_addr)); in tcp_cache_key_src_create() 412 memcpy(&tcks->faddr.addr, &inp->inp_faddr, sizeof(struct in_addr)); in tcp_cache_key_src_create() 425 memcpy(&tcks->faddr.addr, &SIN(dst)->sin_addr, sizeof(struct in_addr)); in mptcp_version_cache_key_src_init() 1394 memcpy(&tcks.laddr.addr, &local_address->sin.sin_addr, sizeof(struct in_addr)); in tcp_heuristic_do_ecn_with_address() 1416 memcpy(&tcks.laddr.addr, &local_address->sin.sin_addr, sizeof(struct in_addr)); in tcp_heuristics_ecn_update() 1454 memcpy(&tcks.laddr.addr, &local_address->sin.sin_addr, sizeof(struct in_addr)); in tcp_heuristic_do_tfo_with_address() 1455 memcpy(&tcks.faddr.addr, &remote_address->sin.sin_addr, sizeof(struct in_addr)); in tcp_heuristic_do_tfo_with_address() [all …]
|
| H A D | ip_compat.h | 576 struct in_addr ip_src; 577 struct in_addr ip_dst; 589 struct in_addr ih_gwaddr; /* ICMP_REDIRECT */ 629 struct in_addr ih_src; /* source internet address */ 630 struct in_addr ih_dst; /* destination internet address */
|
| H A D | in_mcast.c | 127 static int in_getmulti(struct ifnet *, const struct in_addr *, 129 static int in_joingroup(struct ifnet *, const struct in_addr *, 141 const struct sockaddr_in *, const struct in_addr); 146 static struct ifnet * ip_multicast_if(struct in_addr *, unsigned int *); 529 in_getmulti(struct ifnet *ifp, const struct in_addr *group, in in_getmulti() 959 struct in_addr ia; in inm_get_source() 1021 struct in_addr ia; in ims_merge() 1277 in_joingroup(struct ifnet *ifp, const struct in_addr *gina, in in_joingroup() 1419 in_addmulti(struct in_addr *ap, struct ifnet *ifp) in in_addmulti() 1945 sizeof(struct in_addr)); in inp_getmoptions() [all …]
|
| H A D | mptcp.h | 322 struct in_addr maddr_addrv4; 334 struct in_addr maddr_addr;
|
| /xnu-8019.80.24/bsd/kern/ |
| H A D | netboot.c | 99 struct in_addr client_ip; 100 struct in_addr server_ip; 125 parse_booter_path(char * path, struct in_addr * iaddr_p, char const * * host, in parse_booter_path() 212 parse_netboot_path(char * path, struct in_addr * iaddr_p, char const * * host, in parse_netboot_path() 253 parse_image_path(char * path, struct in_addr * iaddr_p, char const * * host, in parse_image_path() 317 netboot_info_init(struct in_addr iaddr) in netboot_info_init() 347 struct in_addr server_ip; in netboot_info_init() 429 netboot_iaddr(struct in_addr * iaddr_p) in netboot_iaddr() 440 netboot_rootpath(struct in_addr * server_ip, in netboot_rootpath() 467 get_ip_parameters(struct in_addr * iaddr_p, struct in_addr * netmask_p, in get_ip_parameters() [all …]
|
| /xnu-8019.80.24/bsd/net/ |
| H A D | nat464_utils.h | 87 struct in_addr _v4addr; 109 nat464_synthesize_ipv6(ifnet_t, const struct in_addr *, struct in6_addr *); 112 nat464_synthesize_ipv4(ifnet_t, const struct in6_addr *, struct in_addr *); 115 nat464_translate_64(pbuf_t *, int, uint8_t, uint8_t *, uint8_t, struct in_addr, 116 struct in_addr, uint64_t, boolean_t *);
|
| H A D | if_stf.c | 149 #define GET_V4(x) ((const struct in_addr *)(const void *)(&(x)->s6_addr16[1])) 188 static int stf_checkaddr4(struct stf_softc *, const struct in_addr *, 383 struct in_addr a, b; in stf_encapcheck() 454 struct in_addr in; in stf_getsrcifa6() 512 const struct in_addr *in4; in stf_pre_output() 644 const struct in_addr *in, in stf_checkaddr4()
|
| /xnu-8019.80.24/bsd/skywalk/namespace/ |
| H A D | netns.h | 213 netns_lookup_reservations_count_in(struct in_addr addr, uint8_t proto); 226 netns_reserve_in(netns_token *token, struct in_addr addr, uint8_t proto, in netns_reserve_in() 229 return netns_reserve(token, &addr.s_addr, sizeof(struct in_addr), in netns_reserve_in() 247 netns_change_addr_in(netns_token *token, struct in_addr addr) in netns_change_addr_in() 250 sizeof(struct in_addr)); in netns_change_addr_in() 266 (((af) == AF_INET) ? sizeof (struct in_addr) : sizeof (struct in6_addr))
|
| H A D | netns.c | 64 #define NS_VERB_IP(addr_len) ((addr_len == sizeof (struct in_addr)) ? \ 67 #define LEN_TO_AF(len) (((len == sizeof (struct in_addr)) ? \ 135 struct in_addr ns_inaddr; 172 (((addrlen) == sizeof (struct in_addr)) ? NETNS_NS_V4 : NETNS_NS_V6)) 191 struct in_addr nt_inaddr; 471 VERIFY(addr_len == sizeof(struct in_addr) || in _netns_get_ns() 513 case sizeof(struct in_addr): in _netns_is_wildcard_addr() 741 if (addr_len == sizeof(struct in_addr)) { in _netns_reserve_common() 772 NETNS_NS_GLOBAL_IDX(proto, sizeof(struct in_addr))], res, port) || in _netns_reserve_common() 776 NETNS_NS_GLOBAL_IDX(proto, sizeof(struct in_addr))], res, port) || in _netns_reserve_common() [all …]
|
| /xnu-8019.80.24/tests/ |
| H A D | icmp_fragmented_payload.c | 106 struct in_addr in4addr_local; 107 struct in_addr in4addr_remote; 181 icmp4_pcb_open(icmp4_pcb_t pcb, struct in_addr *local, struct in_addr *remote) in icmp4_pcb_open() 201 memcpy(&sin.sin_addr, local, sizeof(struct in_addr)); in icmp4_pcb_open() 208 memcpy(&(pcb->in4addr_local), local, sizeof(struct in_addr)); in icmp4_pcb_open() 210 memcpy(&sin.sin_addr, remote, sizeof(struct in_addr)); in icmp4_pcb_open() 216 memcpy(&(pcb->in4addr_remote), remote, sizeof(struct in_addr)); in icmp4_pcb_open() 257 memcpy(&(pcb->inner_ip_hdr->ip_src), &(pcb->in4addr_local), sizeof(struct in_addr)); in icmp4_pcb_set_payload() 258 memcpy(&(pcb->inner_ip_hdr->ip_dst), &(pcb->in4addr_remote), sizeof(struct in_addr)); in icmp4_pcb_set_payload()
|
| H A D | aqm_qdelay_utun.c | 102 …fnet_add_addr4(const char ifname[IFNAMSIZ], struct in_addr *addr, struct in_addr *mask, struct in_… in ifnet_add_addr4() 195 struct in_addr tun_addr1, tun_addr2, mask;
|
| H A D | net_bridge.c | 97 struct in_addr src_ip; 98 struct in_addr dst_ip; 115 struct in_addr src_ip; 116 struct in_addr dst_ip; 146 struct in_addr ip; 162 static struct in_addr bridge_ip_addr; 251 get_ipv4_address(u_int unit, u_int addr_index, struct in_addr *ip) in get_ipv4_address() 345 static inline struct in_addr 348 struct in_addr ip; in get_external_ipv4_address() 394 siocaifaddr(int s, char *ifname, struct in_addr addr) in siocaifaddr() [all …]
|
| H A D | inet_transfer.h | 41 struct in_addr v4;
|
| /xnu-8019.80.24/bsd/sys/ |
| H A D | netboot.h | 44 boolean_t netboot_iaddr(struct in_addr * iaddr_p); 46 boolean_t netboot_rootpath(struct in_addr * server_ip,
|
| /xnu-8019.80.24/libkern/net/ |
| H A D | inet_ntoa.c | 35 inet_ntoa(struct in_addr ina) in inet_ntoa() 49 inet_ntoa_r(struct in_addr ina, char *buf, size_t buflen) in inet_ntoa_r()
|
| /xnu-8019.80.24/bsd/netinet6/ |
| H A D | ah_output.c | 103 static struct in_addr *ah4_finaldst(struct mbuf *); 195 struct in_addr dst = { .s_addr = 0 }; in ah4_output() 196 struct in_addr *finaldst; in ah4_output() 557 static struct in_addr * 616 if (q[i + IPOPT_OLEN] < 2 + sizeof(struct in_addr) || in ah4_finaldst() 624 i += q[i + IPOPT_OLEN] - sizeof(struct in_addr); in ah4_finaldst() 625 return (struct in_addr *)(void *)(q + i); in ah4_finaldst()
|