/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() 228 etharp_request(arp_table[i].netif, &arp_table[i].ipaddr); in etharp_tmr() 256 etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif) in etharp_find_entry() argument 294 if (ipaddr && ip4_addr_cmp(ipaddr, &arp_table[i].ipaddr) in etharp_find_entry() 392 if (ipaddr != NULL) { in etharp_find_entry() 394 ip4_addr_copy(arp_table[i].ipaddr, *ipaddr); in etharp_find_entry() 422 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 | 54 local ipaddr=$(tst_ipaddr) 64 mc_member_test -g $GLIST -s 80 -i $ipaddr > $ERRFILE 2>&1 & 70 tst_resm TINFO "Running (1st) member on $ipaddr" 71 mc_member_test -j -g $GLIST -s 30 -i $ipaddr \ 77 "$ipaddr" 80 tst_resm TINFO "Running (2nd) member on $ipaddr" 81 mc_member_test -g $GLIST -s 60 -i $ipaddr \ 87 "$ipaddr" 96 tst_brkm TFAIL "$agroup NOT joined to $ipaddr" 108 "$ipaddr" [all …]
|
/third_party/lwip/src/api/ |
D | netifapi.c | 69 API_EXPR_REF(msg->msg.add.ipaddr), in netifapi_do_netif_add() 94 API_EXPR_REF(msg->msg.add.ipaddr), in netifapi_do_netif_set_addr() 163 netifapi_arp_add(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, enum netifapi_arp_entry type) in netifapi_arp_add() argument 172 err = etharp_add_static_entry(ipaddr, ethaddr); in netifapi_arp_add() 176 LWIP_UNUSED_ARG(ipaddr); in netifapi_arp_add() 193 netifapi_arp_remove(const ip4_addr_t *ipaddr, enum netifapi_arp_entry type) in netifapi_arp_remove() argument 202 err = etharp_remove_static_entry(ipaddr); in netifapi_arp_remove() 206 LWIP_UNUSED_ARG(ipaddr); in netifapi_arp_remove() 224 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, in netifapi_netif_add() argument 233 if (ipaddr == NULL) { in netifapi_netif_add() [all …]
|
/third_party/lwip/src/core/ |
D | raw.c | 221 raw_bind(struct raw_pcb *pcb, const ip_addr_t *ipaddr) in raw_bind() argument 224 if ((pcb == NULL) || (ipaddr == NULL)) { in raw_bind() 227 ip_addr_set_ipaddr(&pcb->local_ip, ipaddr); in raw_bind() 278 raw_connect(struct raw_pcb *pcb, const ip_addr_t *ipaddr) in raw_connect() argument 281 if ((pcb == NULL) || (ipaddr == NULL)) { in raw_connect() 284 ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr); in raw_connect() 354 raw_sendto(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *ipaddr) in raw_sendto() argument 359 if ((pcb == NULL) || (ipaddr == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, ipaddr)) { in raw_sendto() 370 if (ip_addr_ismulticast(ipaddr)) { in raw_sendto() 380 netif = ip_route(&pcb->local_ip, ipaddr); in raw_sendto() [all …]
|
D | netif.c | 126 static err_t netif_null_output_ip6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipaddr); 129 static err_t netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr); 278 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, in netif_add() argument 299 if (ipaddr == NULL) { in netif_add() 300 ipaddr = ip_2_ip4(IP4_ADDR_ANY); in netif_add() 370 netif_set_addr(netif, ipaddr, netmask, gw); in netif_add() 431 ip4_addr_debug_print(NETIF_DEBUG, ipaddr); in netif_add() 460 netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr) in netif_do_set_ipaddr() argument 462 LWIP_ASSERT("invalid pointer", ipaddr != NULL); in netif_do_set_ipaddr() 466 if (ip4_addr_cmp(ipaddr, netif_ip4_addr(netif)) == 0) { in netif_do_set_ipaddr() [all …]
|
D | udp.c | 936 udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) in udp_bind() argument 948 if (ipaddr == NULL) { in udp_bind() 949 ipaddr = IP4_ADDR_ANY; in udp_bind() 952 LWIP_ERROR("udp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG); in udp_bind() 958 ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_TRACE, ipaddr); in udp_bind() 976 if (IP_IS_V6(ipaddr) && ip6_addr_lacks_zone(ip_2_ip6(ipaddr), IP6_UNKNOWN)) { in udp_bind() 977 ip_addr_copy(zoned_ipaddr, *ipaddr); in udp_bind() 979 ipaddr = &zoned_ipaddr; in udp_bind() 1004 (((IP_GET_TYPE(&ipcb->local_ip) == IP_GET_TYPE(ipaddr)) && in udp_bind() 1006 (ip_addr_cmp(&ipcb->local_ip, ipaddr) || in udp_bind() [all …]
|
/third_party/iptables/extensions/ |
D | libarpt_mangle.c | 56 struct in_addr *ipaddr, mask; in arpmangle_parse() local 66 xtables_ipparse_any(optarg, &ipaddr, &mask, &nr); in arpmangle_parse() 67 mangle->u_s.src_ip.s_addr = ipaddr->s_addr; in arpmangle_parse() 68 free(ipaddr); in arpmangle_parse() 72 xtables_ipparse_any(optarg, &ipaddr, &mask, &nr); in arpmangle_parse() 73 mangle->u_t.tgt_ip.s_addr = ipaddr->s_addr; in arpmangle_parse() 74 free(ipaddr); in arpmangle_parse()
|
/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/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_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/libcoap/examples/lwip/ |
D | server.c | 47 static ip4_addr_t ipaddr, netmask, gw; variable 59 IP4_ADDR(&ipaddr, 192,168,113,2); in main() 66 netif_add(&netif, &ipaddr, &netmask, &gw, NULL, tapif_init, ethernet_input); in main()
|
/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/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]; \
|
/third_party/musl/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_a/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/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/ndk_musl_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/selinux/libsepol/cil/test/integration_testing/ |
D | nonmls.cil | 24 (ipaddr ip_v4 192.25.35.200) 25 (ipaddr netmask 192.168.1.1) 26 (ipaddr ip_v6 2001:0DB8:AC10:FE01::) 27 (ipaddr netmask_v6 2001:0DE0:DA88:2222::)
|