/external/ltp/testcases/lib/ |
D | tst_net_ip_prefix.c | 50 char *ip_str = NULL, *prefix_str = NULL; in main() local 64 ip_str = argv[is_rhost ? 2 : 1]; in main() 65 is_ipv6 = !!strchr(ip_str, ':'); in main() 67 prefix_str = strchr(ip_str, '/'); in main() 70 prefix = get_prefix(ip_str, is_ipv6); in main() 76 get_in6_addr(ip_str, &ip6); in main() 78 get_in_addr(ip_str, &ip); in main() 82 print_svar(is_rhost ? "IPV6_RHOST" : "IPV6_LHOST", ip_str); in main() 85 print_svar(is_rhost ? "IPV4_RHOST" : "IPV4_LHOST", ip_str); in main()
|
D | tst_net_iface_prefix.c | 43 static int read_iface_prefix(const char *ip_str, int is_ipv6) in read_iface_prefix() argument 87 if (!strcmp(pradd, ip_str)) { in read_iface_prefix() 108 char *ip_str = NULL, *prefix_str = NULL; in main() local 122 ip_str = argv[is_rhost ? 2 : 1]; in main() 123 is_ipv6 = !!strchr(ip_str, ':'); in main() 125 prefix_str = strchr(ip_str, '/'); in main() 127 prefix = get_prefix(ip_str, is_ipv6); in main() 130 ip_str, prefix); in main() 131 } else if (read_iface_prefix(ip_str, is_ipv6)) { in main() 133 "prefix and interface not found for '%s'.\n", ip_str); in main() [all …]
|
/external/ltp/include/ |
D | tst_net.h | 106 static inline int get_prefix(const char *ip_str, int is_ipv6) in get_prefix() argument 111 prefix_str = strchr(ip_str, '/'); in get_prefix() 134 static inline void get_in_addr(const char *ip_str, struct in_addr *ip) in get_in_addr() argument 136 if (inet_pton(AF_INET, ip_str, ip) <= 0) in get_in_addr() 137 tst_brk_comment("bad IPv4 address: '%s'", ip_str); in get_in_addr() 140 static inline void get_in6_addr(const char *ip_str, struct in6_addr *ip6) in get_in6_addr() argument 142 if (inet_pton(AF_INET6, ip_str, ip6) <= 0) in get_in6_addr() 143 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) 1126 def _ip_int_from_string(cls, ip_str): argument 1139 if not ip_str: 1142 octets = ip_str.split('.') 1144 raise AddressValueError("Expected 4 octets in %r" % ip_str) 1149 raise AddressValueError("%s in %r" % (exc, ip_str)) from None 1552 def _ip_int_from_string(cls, ip_str): argument [all …]
|
/external/grpc-grpc/test/cpp/grpclb/ |
D | grpclb_api_test.cc | 36 grpc::string Ip4ToPackedString(const char* ip_str) { in Ip4ToPackedString() argument 38 GPR_ASSERT(inet_pton(AF_INET, ip_str, &ip4) == 1); in Ip4ToPackedString() 43 char ip_str[46] = {0}; in PackedStringToIp() local 52 GPR_ASSERT(inet_ntop(af, (void*)pb_ip.bytes, ip_str, 46) != nullptr); in PackedStringToIp() 53 return ip_str; in PackedStringToIp()
|
/external/python/ipaddress/ |
D | ipaddress.py | 625 def _prefix_from_ip_string(cls, ip_str): argument 639 ip_int = cls._ip_int_from_string(ip_str) 641 cls._report_invalid_netmask(ip_str) 656 cls._report_invalid_netmask(ip_str) 1244 def _ip_int_from_string(cls, ip_str): argument 1257 if not ip_str: 1260 octets = ip_str.split('.') 1262 raise AddressValueError("Expected 4 octets in %r" % ip_str) 1268 raise AddressValueError("%s in %r" % (exc, ip_str)) 1323 def _is_hostmask(self, ip_str): argument [all …]
|
/external/u-boot/net/ |
D | dns.c | 111 char ip_str[22]; in dns_handler() local 185 ip_to_string(ip_addr, ip_str); in dns_handler() 186 printf("%s\n", ip_str); in dns_handler() 188 env_set(net_dns_env_var, ip_str); in dns_handler()
|
/external/u-boot/cmd/ |
D | pxe_utils.c | 349 char ip_str[68] = ""; in label_boot() local 393 sprintf(ip_str, " ip=%s:%s:%s:%s", in label_boot() 414 strlen(ip_str) + strlen(mac_str) + 1 > sizeof(bootargs)) { in label_boot() 417 strlen(ip_str), strlen(mac_str), in label_boot() 425 strcat(bootargs, ip_str); in label_boot()
|
/external/grpc-grpc/test/cpp/client/ |
D | client_channel_stress_test.cc | 89 grpc::string Ip4ToPackedString(const char* ip_str) { in Ip4ToPackedString() argument 91 GPR_ASSERT(inet_pton(AF_INET, ip_str, &ip4) == 1); in Ip4ToPackedString()
|
/external/openssh/ |
D | clientloop.c | 2180 char *host_str, *ip_str; member 2218 free(ctx->ip_str); in hostkeys_update_ctx_free() 2318 ctx->host_str, ctx->ip_str, ctx->keys, ctx->nkeys, in update_known_hosts() 2500 options.check_host_ip ? &ctx->ip_str : NULL); in client_input_hostkeys() 2504 ctx, ctx->host_str, ctx->ip_str, in client_input_hostkeys()
|
/external/grpc-grpc/test/cpp/end2end/ |
D | grpclb_end2end_test.cc | 163 grpc::string Ip4ToPackedString(const char* ip_str) { in Ip4ToPackedString() argument 165 GPR_ASSERT(inet_pton(AF_INET, ip_str, &ip4) == 1); in Ip4ToPackedString()
|