Lines Matching refs:ipaddr
734 char ipaddr[INET6_ADDRSTRLEN + 1]; in parse_ipv6() local
755 memcpy(ipaddr, str + 1, end); in parse_ipv6()
758 memcpy(ipaddr, str, end); in parse_ipv6()
761 ipaddr[end] = '\0'; in parse_ipv6()
765 ret = net_addr_pton(AF_INET6, ipaddr, addr6); in parse_ipv6()
792 memcpy(ipaddr, ptr, len); in parse_ipv6()
793 ipaddr[len] = '\0'; in parse_ipv6()
795 ret = convert_port(ipaddr, &port); in parse_ipv6()
803 net_addr_ntop(AF_INET6, addr6, ipaddr, sizeof(ipaddr) - 1), in parse_ipv6()
807 net_addr_ntop(AF_INET6, addr6, ipaddr, sizeof(ipaddr) - 1)); in parse_ipv6()
825 char ipaddr[NET_IPV4_ADDR_LEN + 1]; in parse_ipv4() local
851 memcpy(ipaddr, str, end); in parse_ipv4()
852 ipaddr[end] = '\0'; in parse_ipv4()
856 ret = net_addr_pton(AF_INET, ipaddr, addr4); in parse_ipv4()
867 memcpy(ipaddr, ptr + 1, str_len - end - 1); in parse_ipv4()
868 ipaddr[str_len - end - 1] = '\0'; in parse_ipv4()
870 ret = convert_port(ipaddr, &port); in parse_ipv4()
878 net_addr_ntop(AF_INET, addr4, ipaddr, sizeof(ipaddr) - 1), in parse_ipv4()