/third_party/lwip/src/include/lwip/ |
D | ip_addr.h | 91 #define IP_IS_ANY_TYPE_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_ANY) argument 96 #define IP_IS_V4_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V4) argument 98 #define IP_IS_V6_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V6) argument 100 #define IP_IS_V4(ipaddr) (((ipaddr) == NULL) || IP_IS_V4_VAL(*(ipaddr))) argument 102 #define IP_IS_V6(ipaddr) (((ipaddr) != NULL) && IP_IS_V6_VAL(*(ipaddr))) argument 104 #define IP_SET_TYPE_VAL(ipaddr, iptype) do { (ipaddr).type = (iptype); }while(0) argument 105 #define IP_SET_TYPE(ipaddr, iptype) do { if((ipaddr) != NULL) { IP_SET_TYPE_VAL(*(ipaddr), ipty… argument 106 #define IP_GET_TYPE(ipaddr) ((ipaddr)->type) argument 108 #define IP_ADDR_RAW_SIZE(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V4 ? sizeof(ip4_addr_t) … argument 110 #define IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ipaddr) (IP_GET_TYPE(&pcb->local_ip) == IP_GET_TYPE(ip… argument [all …]
|
D | ip4_addr.h | 104 #define IP4_ADDR(ipaddr, a,b,c,d) (ipaddr)->addr = PP_HTONL(LWIP_MAKEU32(a,b,c,d)) argument 113 #define ip4_addr_set_zero(ipaddr) ((ipaddr)->addr = 0) argument 115 #define ip4_addr_set_any(ipaddr) ((ipaddr)->addr = IPADDR_ANY) argument 117 #define ip4_addr_set_loopback(ipaddr) ((ipaddr)->addr = PP_HTONL(IPADDR_LOOPBACK)) argument 119 #define ip4_addr_isloopback(ipaddr) (((ipaddr)->addr & PP_HTONL(IP_CLASSA_NET)) == PP_HTONL(((u3… argument 162 #define ip4_addr_debug_print(debug, ipaddr) \ argument 164 (u16_t)((ipaddr) != NULL ? ip4_addr1_16(ipaddr) : 0), \ 165 (u16_t)((ipaddr) != NULL ? ip4_addr2_16(ipaddr) : 0), \ 166 (u16_t)((ipaddr) != NULL ? ip4_addr3_16(ipaddr) : 0), \ 167 (u16_t)((ipaddr) != NULL ? ip4_addr4_16(ipaddr) : 0)) [all …]
|
D | ip6_addr.h | 316 #define ip6_addr_debug_print(debug, ipaddr) \ argument 318 (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK1(ipaddr) : 0), \ 319 (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK2(ipaddr) : 0), \ 320 (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK3(ipaddr) : 0), \ 321 (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK4(ipaddr) : 0), \ 322 (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK5(ipaddr) : 0), \ 323 (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK6(ipaddr) : 0), \ 324 (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK7(ipaddr) : 0), \ 325 (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK8(ipaddr) : 0)) 326 #define ip6_addr_debug_print_val(debug, ipaddr) \ argument [all …]
|
D | etharp.h | 78 ssize_t etharp_find_addr(struct netif *netif, const ip4_addr_t *ipaddr, 80 int etharp_get_entry(size_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_addr **eth_ret… 81 err_t etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr); 82 err_t etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q); 83 err_t etharp_request(struct netif *netif, const ip4_addr_t *ipaddr); 92 err_t etharp_add_static_entry(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr); 93 err_t etharp_remove_static_entry(const ip4_addr_t *ipaddr);
|
D | netifapi.h | 60 err_t netifapi_arp_add(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, enum netifapi_arp_entry … 62 err_t netifapi_arp_remove(const ip4_addr_t *ipaddr, enum netifapi_arp_entry type); 67 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, 72 err_t netifapi_netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr,
|
/third_party/lwip/src/core/ipv4/ |
D | etharp.c | 98 ip4_addr_t ipaddr; member 133 static err_t etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_add… 171 mib2_remove_arp_entry(arp_table[i].netif, &arp_table[i].ipaddr); in etharp_free_entry() 185 ip4_addr_set_zero(&arp_table[i].ipaddr); in etharp_free_entry() 257 etharp_request(arp_table[i].netif, &arp_table[i].ipaddr); in etharp_tmr() 285 etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif) in etharp_find_entry() argument 323 if (ipaddr && ip4_addr_cmp(ipaddr, &arp_table[i].ipaddr) in etharp_find_entry() 421 if (ipaddr != NULL) { in etharp_find_entry() 423 ip4_addr_copy(arp_table[i].ipaddr, *ipaddr); in etharp_find_entry() 451 etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8… argument [all …]
|
/third_party/ltp/testcases/network/multicast/mc_member/ |
D | mc_member.sh | 53 local ipaddr=$(tst_ipaddr) 63 mc_member_test -g $GLIST -s 80 -i $ipaddr > $ERRFILE 2>&1 & 69 tst_resm TINFO "Running (1st) member on $ipaddr" 70 mc_member_test -j -g $GLIST -s 30 -i $ipaddr \ 76 "$ipaddr" 79 tst_resm TINFO "Running (2nd) member on $ipaddr" 80 mc_member_test -g $GLIST -s 60 -i $ipaddr \ 86 "$ipaddr" 95 tst_brkm TFAIL "$agroup NOT joined to $ipaddr" 107 "$ipaddr" [all …]
|
/third_party/lwip/src/api/ |
D | netifapi.c | 72 API_EXPR_REF(msg->msg.add.ipaddr), in netifapi_do_netif_add() 97 API_EXPR_REF(msg->msg.add.ipaddr), in netifapi_do_netif_set_addr() 170 netifapi_arp_add(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, enum netifapi_arp_entry type) argument 179 err = etharp_add_static_entry(ipaddr, ethaddr); 183 LWIP_UNUSED_ARG(ipaddr); 200 netifapi_arp_remove(const ip4_addr_t *ipaddr, enum netifapi_arp_entry type) argument 209 err = etharp_remove_static_entry(ipaddr); 213 LWIP_UNUSED_ARG(ipaddr); 231 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, argument 240 if (ipaddr == NULL) { [all …]
|
/third_party/nghttp2/src/ |
D | shrpx_tls_test.cc | 206 static Address parse_addr(const char *ipaddr) { in parse_addr() argument 214 auto rv = getaddrinfo(ipaddr, "443", &hints, &res); in parse_addr() 231 static constexpr char ipaddr[] = "127.0.0.1"; in test_shrpx_tls_verify_numeric_hostname() local 233 auto addr = parse_addr(ipaddr); in test_shrpx_tls_verify_numeric_hostname() 235 tls::verify_numeric_hostname(cert, StringRef::from_lit(ipaddr), &addr); in test_shrpx_tls_verify_numeric_hostname() 244 static constexpr char ipaddr[] = "::1"; in test_shrpx_tls_verify_numeric_hostname() local 246 auto addr = parse_addr(ipaddr); in test_shrpx_tls_verify_numeric_hostname() 248 tls::verify_numeric_hostname(cert, StringRef::from_lit(ipaddr), &addr); in test_shrpx_tls_verify_numeric_hostname() 257 static constexpr char ipaddr[] = "192.168.0.127"; in test_shrpx_tls_verify_numeric_hostname() local 259 auto addr = parse_addr(ipaddr); in test_shrpx_tls_verify_numeric_hostname() [all …]
|
/third_party/lwip/src/core/ |
D | raw.c | 229 raw_bind(struct raw_pcb *pcb, const ip_addr_t *ipaddr) in raw_bind() argument 232 if ((pcb == NULL) || (ipaddr == NULL)) { in raw_bind() 235 ip_addr_set_ipaddr(&pcb->local_ip, ipaddr); in raw_bind() 286 raw_connect(struct raw_pcb *pcb, const ip_addr_t *ipaddr) in raw_connect() argument 289 if ((pcb == NULL) || (ipaddr == NULL)) { in raw_connect() 292 ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr); in raw_connect() 362 raw_sendto(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *ipaddr) in raw_sendto() argument 367 if ((pcb == NULL) || (ipaddr == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, ipaddr)) { in raw_sendto() 385 if (ip_addr_ismulticast(ipaddr)) { in raw_sendto() 400 netif = ip_route(&pcb->local_ip, ipaddr, group); in raw_sendto() [all …]
|
D | netif.c | 130 static err_t netif_null_output_ip6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipaddr); 133 static err_t netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr); 329 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, argument 358 if (ipaddr == NULL) { 359 ipaddr = ip_2_ip4(IP4_ADDR_ANY); 433 netif_set_addr(netif, ipaddr, netmask, gw); 511 ip4_addr_debug_print(NETIF_DEBUG, ipaddr); 540 netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr) argument 542 LWIP_ASSERT("invalid pointer", ipaddr != NULL); 546 if (ip4_addr_cmp(ipaddr, netif_ip4_addr(netif)) == 0) { [all …]
|
D | udp.c | 978 udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) argument 990 if (ipaddr == NULL) { 991 ipaddr = IP4_ADDR_ANY; 994 LWIP_ERROR("udp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG); 1000 ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_TRACE, ipaddr); 1018 if (IP_IS_V6(ipaddr) && ip6_addr_lacks_zone(ip_2_ip6(ipaddr), IP6_UNKNOWN)) { 1019 ip_addr_copy(zoned_ipaddr, *ipaddr); 1021 ipaddr = &zoned_ipaddr; 1050 (((IP_GET_TYPE(&ipcb->local_ip) == IP_GET_TYPE(ipaddr)) && 1052 (ip_addr_cmp(&ipcb->local_ip, ipaddr) || [all …]
|
/third_party/node/deps/cares/src/lib/ |
D | ares__hosts_file.c | 190 const void *ares_dns_pton(const char *ipaddr, struct ares_addr *addr, in ares_dns_pton() argument 196 if (ipaddr == NULL || addr == NULL || out_len == NULL) { in ares_dns_pton() 203 ares_inet_pton(AF_INET, ipaddr, &addr->addr.addr4) > 0) { in ares_dns_pton() 207 ares_inet_pton(AF_INET6, ipaddr, &addr->addr.addr6) > 0) { in ares_dns_pton() 211 if (ares_inet_pton(AF_INET, ipaddr, &addr->addr.addr4) > 0) { in ares_dns_pton() 215 } else if (ares_inet_pton(AF_INET6, ipaddr, &addr->addr.addr6) > 0) { in ares_dns_pton() 226 static ares_bool_t ares__normalize_ipaddr(const char *ipaddr, char *out, in ares__normalize_ipaddr() argument 236 addr = ares_dns_pton(ipaddr, &data, &addr_len); in ares__normalize_ipaddr() 332 const char *ipaddr = ares__llist_node_val(node); in ares__hosts_file_merge_entry() local 334 if (ares__htable_strvp_get_direct(hf->iphash, ipaddr) != NULL) { in ares__hosts_file_merge_entry() [all …]
|
D | ares__iface_ips.c | 354 IP_ADAPTER_UNICAST_ADDRESS *ipaddr = NULL; in ares__iface_ips_enumerate() local 381 for (ipaddr = address->FirstUnicastAddress; ipaddr != NULL; in ares__iface_ips_enumerate() 382 ipaddr = ipaddr->Next) { in ares__iface_ips_enumerate() 385 if (ipaddr->Address.lpSockaddr->sa_family == AF_INET) { in ares__iface_ips_enumerate() 387 (const struct sockaddr_in *)((void *)ipaddr->Address.lpSockaddr); in ares__iface_ips_enumerate() 391 } else if (ipaddr->Address.lpSockaddr->sa_family == AF_INET6) { in ares__iface_ips_enumerate() 393 (const struct sockaddr_in6 *)((void *)ipaddr->Address.lpSockaddr); in ares__iface_ips_enumerate() 410 ipaddr->OnLinkPrefixLength /* netmask */, in ares__iface_ips_enumerate()
|
D | ares_sysconfig.c | 382 char ipaddr[INET6_ADDRSTRLEN] = ""; in get_DNS_Windows() local 410 if (!ares_inet_ntop(AF_INET, &namesrvr.sa4->sin_addr, ipaddr, in get_DNS_Windows() 411 sizeof(ipaddr))) { in get_DNS_Windows() 415 sizeof(addresses[addressesIndex].text), "[%s]:%u", ipaddr, in get_DNS_Windows() 454 if (!ares_inet_ntop(AF_INET6, &namesrvr.sa6->sin6_addr, ipaddr, in get_DNS_Windows() 455 sizeof(ipaddr))) { in get_DNS_Windows() 462 ipaddr, ntohs(namesrvr.sa6->sin6_port), ll_scope); in get_DNS_Windows() 465 sizeof(addresses[addressesIndex].text), "[%s]:%u", ipaddr, in get_DNS_Windows() 858 char ipaddr[INET6_ADDRSTRLEN] = ""; in ares__init_sysconfig_libresolv() local 865 ares_inet_ntop(family, &addr[i].sin.sin_addr, ipaddr, sizeof(ipaddr)); in ares__init_sysconfig_libresolv() [all …]
|
/third_party/selinux/secilc/docs/ |
D | cil_network_labeling_statements.md | 4 ipaddr section in Network Labeling Statements 18 (ipaddr ipaddr_id ip_address) 30 <td align="left"><p><code>ipaddr</code></p></td> 31 <td align="left"><p>The <code>ipaddr</code> keyword.</p></td> 49 (ipaddr netmask_1 255.255.255.0) 54 (macro build_nodecon ((ipaddr ARG1) (ipaddr ARG2)) 138 <td align="left"><p>A previously declared <code>ipaddr</code> identifier, or an anonymous IPv4 or I… 142 <td align="left"><p>A previously declared <code>ipaddr</code> identifier, or an anonymous IPv4 or I… 159 (ipaddr netmask_1 255.255.255.255) 160 (ipaddr ipv4_1 192.0.2.64) [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/ |
D | p2p-action.sh | 44 ipaddr=`echo "$*" | sed 's/.* ip_addr=\([^ ]*\).*/\1/'` 47 if echo "$ipaddr$ipmask$goipaddr" | grep -q ' '; then 48 ipaddr="" 52 if [ -n "$ipaddr" ]; then 53 sudo ifconfig $GIFNAME "$ipaddr" netmask "$ipmask"
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | dhcp_snoop.c | 117 if (sta->ipaddr == b->your_ip) in handle_dhcp() 120 if (sta->ipaddr != 0) { in handle_dhcp() 123 ipaddr_str(be_to_host32(sta->ipaddr))); in handle_dhcp() 125 (u8 *) &sta->ipaddr); in handle_dhcp() 136 sta->ipaddr = b->your_ip; in handle_dhcp()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/ |
D | p2p-action.sh | 44 ipaddr=`echo "$*" | sed 's/.* ip_addr=\([^ ]*\).*/\1/'` 47 if echo "$ipaddr$ipmask$goipaddr" | grep -q ' '; then 48 ipaddr="" 52 if [ -n "$ipaddr" ]; then 53 sudo ifconfig $GIFNAME "$ipaddr" netmask "$ipmask"
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | dhcp_snoop.c | 115 if (sta->ipaddr == b->your_ip) in handle_dhcp() 118 if (sta->ipaddr != 0) { in handle_dhcp() 121 ipaddr_str(be_to_host32(sta->ipaddr))); in handle_dhcp() 123 (u8 *) &sta->ipaddr); in handle_dhcp() 134 sta->ipaddr = b->your_ip; in handle_dhcp()
|
/third_party/musl/porting/uniproton/kernel/include/netinet/ |
D | if_ether.h | 135 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \ argument 140 (enaddr)[3] = ((uint8_t *)ipaddr)[1] & 0x7f; \ 141 (enaddr)[4] = ((uint8_t *)ipaddr)[2]; \ 142 (enaddr)[5] = ((uint8_t *)ipaddr)[3]; \
|
/third_party/musl/porting/liteos_m/kernel/include/netinet/ |
D | if_ether.h | 135 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \ argument 140 (enaddr)[3] = ((uint8_t *)ipaddr)[1] & 0x7f; \ 141 (enaddr)[4] = ((uint8_t *)ipaddr)[2]; \ 142 (enaddr)[5] = ((uint8_t *)ipaddr)[3]; \
|
/third_party/musl/include/netinet/ |
D | if_ether.h | 137 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \ argument 142 (enaddr)[3] = ((uint8_t *)ipaddr)[1] & 0x7f; \ 143 (enaddr)[4] = ((uint8_t *)ipaddr)[2]; \ 144 (enaddr)[5] = ((uint8_t *)ipaddr)[3]; \
|
/third_party/musl/porting/liteos_a/kernel/include/netinet/ |
D | if_ether.h | 137 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \ argument 142 (enaddr)[3] = ((uint8_t *)ipaddr)[1] & 0x7f; \ 143 (enaddr)[4] = ((uint8_t *)ipaddr)[2]; \ 144 (enaddr)[5] = ((uint8_t *)ipaddr)[3]; \
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/netinet/ |
D | if_ether.h | 135 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \ argument 140 (enaddr)[3] = ((uint8_t *)ipaddr)[1] & 0x7f; \ 141 (enaddr)[4] = ((uint8_t *)ipaddr)[2]; \ 142 (enaddr)[5] = ((uint8_t *)ipaddr)[3]; \
|