Searched refs:ip_str (Results 1 – 7 of 7) sorted by relevance
/external/ltp/testcases/lib/ |
D | tst_net_iface_prefix.c | 55 static int read_iface_prefix(const char *ip_str, int is_ipv6) in read_iface_prefix() argument 99 if (!strcmp(pradd, ip_str)) { in read_iface_prefix() 120 char *ip_str = NULL, *prefix_str = NULL; in main() local 134 ip_str = argv[is_rhost ? 2 : 1]; in main() 135 is_ipv6 = !!strchr(ip_str, ':'); in main() 137 prefix_str = strchr(ip_str, '/'); in main() 139 prefix = get_prefix(ip_str, is_ipv6); in main() 142 ip_str, prefix); in main() 143 } else if (read_iface_prefix(ip_str, is_ipv6)) { in main() 145 "prefix and interface not found for '%s'.\n", ip_str); in main() [all …]
|
D | tst_net_ip_prefix.c | 62 char *ip_str = NULL, *prefix_str = NULL; in main() local 76 ip_str = argv[is_rhost ? 2 : 1]; in main() 77 is_ipv6 = !!strchr(ip_str, ':'); in main() 79 prefix_str = strchr(ip_str, '/'); in main() 82 prefix = get_prefix(ip_str, is_ipv6); in main() 88 get_in6_addr(ip_str, &ip6); in main() 90 get_in_addr(ip_str, &ip); in main() 94 print_svar(is_rhost ? "IPV6_RHOST" : "IPV6_LHOST", ip_str); in main() 97 print_svar(is_rhost ? "IPV4_RHOST" : "IPV4_LHOST", ip_str); in main()
|
/external/ltp/include/ |
D | tst_net.h | 115 static int get_prefix(const char *ip_str, int is_ipv6) in get_prefix() argument 120 prefix_str = strchr(ip_str, '/'); in get_prefix() 143 static void get_in_addr(const char *ip_str, struct in_addr *ip) in get_in_addr() argument 145 if (inet_pton(AF_INET, ip_str, ip) <= 0) in get_in_addr() 146 tst_brk_comment("bad IPv4 address: '%s'", ip_str); in get_in_addr() 149 static void get_in6_addr(const char *ip_str, struct in6_addr *ip6) in get_in6_addr() argument 151 if (inet_pton(AF_INET6, ip_str, ip6) <= 0) in get_in6_addr() 152 tst_brk_comment("bad IPv6 address: '%s'", ip_str); in get_in6_addr()
|
/external/python/cpython3/Lib/ |
D | ipaddress.py | 502 def _prefix_from_ip_string(cls, ip_str): argument 516 ip_int = cls._ip_int_from_string(ip_str) 518 cls._report_invalid_netmask(ip_str) 533 cls._report_invalid_netmask(ip_str) 1100 def _ip_int_from_string(cls, ip_str): argument 1113 if not ip_str: 1116 octets = ip_str.split('.') 1118 raise AddressValueError("Expected 4 octets in %r" % ip_str) 1123 raise AddressValueError("%s in %r" % (exc, ip_str)) from None 1206 def _is_hostmask(self, ip_str): argument [all …]
|
/external/syslinux/core/fs/pxe/ |
D | dnsresolv.c | 59 static bool parse_dotquad(const char *ip_str, uint32_t *res) in parse_dotquad() argument 61 const char *p = ip_str; in parse_dotquad()
|
/external/syslinux/core/legacynet/ |
D | dnsresolv.c | 178 static bool parse_dotquad(const char *ip_str, uint32_t *res) in parse_dotquad() argument 180 const char *p = ip_str; in parse_dotquad()
|
/external/syslinux/gpxe/src/interface/efi/ |
D | efi_snp.c | 399 const char *ip_str; in efi_snp_mcast_ip_to_mac() local 402 ip_str = ( ipv6 ? "(IPv6)" /* FIXME when we have inet6_ntoa() */ : in efi_snp_mcast_ip_to_mac() 404 DBGC2 ( snpdev, "SNPDEV %p MCAST_IP_TO_MAC %s\n", snpdev, ip_str ); in efi_snp_mcast_ip_to_mac() 410 snpdev, ip_str, strerror ( rc ) ); in efi_snp_mcast_ip_to_mac()
|