Lines Matching refs:ip_addr
52 bool net_ip_compare(const struct ip_addr *ip1, const struct ip_addr *ip2)
57 int net_ip_cmp(const struct ip_addr *ip1, const struct ip_addr *ip2)
68 unsigned int net_ip_hash(const struct ip_addr *ip)
94 sin_set_ip(union sockaddr_union *so, const struct ip_addr *ip)
110 sin_get_ip(const union sockaddr_union *so, struct ip_addr *ip)
145 static int net_connect_ip_once(const struct ip_addr *ip, in_port_t port,
146 const struct ip_addr *my_ip, int sock_type, bool blocking)
201 static int net_connect_ip_full(const struct ip_addr *ip, in_port_t port,
202 const struct ip_addr *my_ip, int sock_type,
224 int net_connect_ip(const struct ip_addr *ip, in_port_t port,
225 const struct ip_addr *my_ip)
230 int net_connect_ip_blocking(const struct ip_addr *ip, in_port_t port,
231 const struct ip_addr *my_ip)
236 int net_connect_udp(const struct ip_addr *ip, in_port_t port,
237 const struct ip_addr *my_ip)
242 int net_try_bind(const struct ip_addr *ip)
388 const struct ip_addr net_ip4_any = {
393 const struct ip_addr net_ip6_any = {
398 const struct ip_addr net_ip4_loopback = {
403 const struct ip_addr net_ip6_loopback = {
408 int net_listen(const struct ip_addr *my_ip, in_port_t *port, int backlog)
415 int net_listen_full(const struct ip_addr *my_ip, in_port_t *port,
565 int net_accept(int fd, struct ip_addr *addr_r, in_port_t *port_r)
620 int net_gethostbyname(const char *addr, struct ip_addr **ips,
626 struct ip_addr ip;
636 *ips = t_new(struct ip_addr, 1);
655 *ips = t_new(struct ip_addr, count);
668 int net_gethostbyaddr(const struct ip_addr *ip, const char **name_r)
686 int net_getsockname(int fd, struct ip_addr *addr, in_port_t *port)
707 int net_getpeername(int fd, struct ip_addr *addr, in_port_t *port)
868 const char *net_ip2addr(const struct ip_addr *ip)
878 static bool net_addr2ip_inet4_fast(const char *addr, struct ip_addr *ip)
913 int net_addr2ip(const char *addr, struct ip_addr *ip)
1005 int net_ipport2str(const struct ip_addr *ip, in_port_t port, const char **str_r)
1017 int net_ipv6_mapped_ipv4_convert(const struct ip_addr *src,
1018 struct ip_addr *dest)
1103 int net_parse_range(const char *network, struct ip_addr *ip_r,
1129 bool net_is_in_network(const struct ip_addr *ip,
1130 const struct ip_addr *net_ip, unsigned int bits)
1132 struct ip_addr tmp_ip;