Home
last modified time | relevance | path

Searched refs:addr_str (Results 1 – 18 of 18) sorted by relevance

/external/libnl/tests/
Dcheck-addr.c105 char *addr_str = "10.0.0.1/16"; in START_TEST() local
108 fail_if(nl_addr_parse(addr_str, AF_INET6, &addr4) == 0, in START_TEST()
111 fail_if(nl_addr_parse(addr_str, AF_UNSPEC, &addr4) != 0, in START_TEST()
112 "Should be able to parse \"%s\"", addr_str); in START_TEST()
133 fail_if(strcmp(nl_addr2str(addr4, buf, sizeof(buf)), addr_str), in START_TEST()
146 char *addr_str = "2001:1:2::3/64"; in START_TEST() local
149 fail_if(nl_addr_parse(addr_str, AF_INET, &addr6) == 0, in START_TEST()
152 fail_if(nl_addr_parse(addr_str, AF_UNSPEC, &addr6) != 0, in START_TEST()
153 "Should be able to parse \"%s\"", addr_str); in START_TEST()
174 fail_if(strcmp(nl_addr2str(addr6, buf, sizeof(buf)), addr_str), in START_TEST()
[all …]
/external/autotest/client/common_lib/cros/network/
Dnetblock.py31 addr_str, prefix_len_str = addr.split('/')
34 addr_str = addr
49 return Netblock(addr_str, prefix_len)
117 def __init__(self, addr_str, prefix_len): argument
124 self._octets = map(int, addr_str.split('.'))
/external/strace/tests/
Dquotactl.h86 const char *addr_str = NULL; in check_quota() local
111 addr_str = va_arg(ap, const char *); in check_quota()
136 printf(", %s", addr_str); in check_quota()
/external/strace/tests-m32/
Dquotactl.h86 const char *addr_str = NULL; in check_quota() local
111 addr_str = va_arg(ap, const char *); in check_quota()
136 printf(", %s", addr_str); in check_quota()
/external/strace/tests-mx32/
Dquotactl.h86 const char *addr_str = NULL; in check_quota() local
111 addr_str = va_arg(ap, const char *); in check_quota()
136 printf(", %s", addr_str); in check_quota()
/external/mdnsresponder/mDNSPosix/
Dnss_mdns.c557 const char * addr_str,
633 char * addr_str
717 char addr_str [NI_MAXHOST + 1]; in _nss_mdns_gethostbyaddr_r() local
721 if (inet_ntop (af, addr, addr_str, NI_MAXHOST) == NULL) in _nss_mdns_gethostbyaddr_r()
746 addr_str in _nss_mdns_gethostbyaddr_r()
759 if (is_applicable_addr (&result, addr, af, addr_str)) in _nss_mdns_gethostbyaddr_r()
763 rv = mdns_lookup_addr (addr, len, af, addr_str, &result); in _nss_mdns_gethostbyaddr_r()
936 const char * addr_str, in mdns_lookup_addr() argument
947 addr_str in mdns_lookup_addr()
966 addr_str, // address string to query for in mdns_lookup_addr()
[all …]
/external/selinux/libsepol/src/
Dnode_record.c45 const char *addr_str, int proto, char *addr_bytes) in node_parse_addr() argument
54 if (inet_pton(AF_INET, addr_str, &in_addr) <= 0) { in node_parse_addr()
56 "%s: %s", addr_str, strerror(errno)); in node_parse_addr()
67 if (inet_pton(AF_INET6, addr_str, &in_addr) <= 0) { in node_parse_addr()
69 "%s: %s", addr_str, strerror(errno)); in node_parse_addr()
135 char *addr_bytes, int proto, char *addr_str) in node_expand_addr() argument
146 if (inet_ntop(AF_INET, &addr, addr_str, in node_expand_addr()
162 if (inet_ntop(AF_INET6, &addr, addr_str, in node_expand_addr()
/external/toybox/toys/pending/
Dtraceroute.c84 char addr_str[INET6_ADDRSTRLEN]; variable
419 memset(addr_str, '\0', INET6_ADDRSTRLEN); in do_trace()
421 addr_str, INET6_ADDRSTRLEN); in do_trace()
422 xprintf(" %s", addr_str); in do_trace()
430 memset(addr_str, '\0', INET6_ADDRSTRLEN); in do_trace()
432 &from)->sin6_addr, addr_str, INET6_ADDRSTRLEN); in do_trace()
434 xprintf(" %d bytes to %s ", rcv_len, addr_str); in do_trace()
633 addr_str, INET6_ADDRSTRLEN); in traceroute_main()
634 xprintf("traceroute6 to %s(%s)", toys.optargs[0], addr_str); in traceroute_main()
/external/iptables/iptables/
Dnft-ipv6.c259 char addr_str[INET6_ADDRSTRLEN]; in save_ipv6_addr() local
264 inet_ntop(AF_INET6, addr, addr_str, INET6_ADDRSTRLEN); in save_ipv6_addr()
265 printf("%s-%c %s ", invert ? "! " : "", letter, addr_str); in save_ipv6_addr()
393 char addr_str[INET6_ADDRSTRLEN]; in xlate_ipv6_addr() local
398 inet_ntop(AF_INET6, addr, addr_str, INET6_ADDRSTRLEN); in xlate_ipv6_addr()
399 xt_xlate_add(xl, "%s %s%s%s ", selector, invert ? "!= " : "", addr_str, in xlate_ipv6_addr()
/external/parameter-framework/asio-1.10.6/include/asio/ip/impl/
Daddress_v4.ipp81 char addr_str[asio::detail::max_addr_v4_str_len];
84 ASIO_OS_DEF(AF_INET), &addr_, addr_str,
Daddress_v6.ipp99 char addr_str[asio::detail::max_addr_v6_str_len];
102 ASIO_OS_DEF(AF_INET6), &addr_, addr_str,
/external/selinux/libsepol/cil/src/
Dcil_copy_ast.c1181 if (orig->addr_str != NULL) { in cil_copy_nodecon()
1182 new->addr_str = orig->addr_str; in cil_copy_nodecon()
Dcil_internal.h749 char *addr_str; member
Dcil_tree.c1443 cil_log(CIL_INFO, " %s", nodecon->addr_str); in cil_tree_print_node()
Dcil_resolve_ast.c1984 if (nodecon->addr_str != NULL) { in cil_resolve_nodecon()
1985 rc = cil_resolve_name(current, nodecon->addr_str, CIL_SYM_IPADDRS, extra_args, &addr_datum); in cil_resolve_nodecon()
Dcil.c2272 (*nodecon)->addr_str = NULL; in cil_nodecon_init()
Dcil_build_ast.c4384 nodecon->addr_str = parse_current->next->data; in cil_gen_nodecon()
4433 if (nodecon->addr_str == NULL && nodecon->addr != NULL) { in cil_destroy_nodecon()
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_copy_ast.c1143 CuAssertStrEquals(tc, test_copy->addr_str, in test_cil_copy_nodecon()
1144 ((struct cil_nodecon *)test_ast_node->data)->addr_str); in test_cil_copy_nodecon()
1175 CuAssertStrEquals(tc, test_copy->addr_str, in test_cil_copy_nodecon_anon()
1176 ((struct cil_nodecon *)test_ast_node->data)->addr_str); in test_cil_copy_nodecon_anon()