Home
last modified time | relevance | path

Searched refs:ipaddr (Results 1 - 25 of 116) sorted by relevance

12345

/third_party/lwip/src/include/lwip/
H A Dip_addr.h50 /** @ingroup ipaddr
65 * @ingroup ipaddr
90 /** @ingroup ipaddr */
91 #define IP_IS_ANY_TYPE_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_ANY)
92 /** @ingroup ipaddr */
96 #define IP_IS_V4_VAL(ipaddr) (IP_GET_TYPE(&ipaddr) == IPADDR_TYPE_V4)
98 #define IP_IS_V6_VAL(ipaddr) (IP_GET_TYPE(&ipaddr)
[all...]
H A Dip4_addr.h104 #define IP4_ADDR(ipaddr, a,b,c,d) (ipaddr)->addr = PP_HTONL(LWIP_MAKEU32(a,b,c,d))
113 #define ip4_addr_set_zero(ipaddr) ((ipaddr)->addr = 0)
115 #define ip4_addr_set_any(ipaddr) ((ipaddr)->addr = IPADDR_ANY)
117 #define ip4_addr_set_loopback(ipaddr) ((ipaddr)->addr = PP_HTONL(IPADDR_LOOPBACK))
119 #define ip4_addr_isloopback(ipaddr) (((ipaddr)
[all...]
H A Dip6_addr.h316 #define ip6_addr_debug_print(debug, ipaddr) \
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) !
[all...]
H A Detharp.h78 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);
H A Dnetifapi.h60 err_t netifapi_arp_add(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, enum netifapi_arp_entry type);
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/
H A Detharp.c98 ip4_addr_t ipaddr; member
133 static err_t etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr *hw_dst_addr);
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()
271 * If ipaddr is NULL, return a initialized new entry in state ETHARP_EMPTY.
277 * @param ipaddr IP address to find in ARP cache, or to add if not found.
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, in etharp_find_entry()
451 etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8_t flags) global() argument
532 etharp_add_static_entry(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr) global() argument
561 etharp_remove_static_entry(const ip4_addr_t *ipaddr) global() argument
615 etharp_find_addr(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr **eth_ret, const ip4_addr_t **ip_ret) global() argument
644 etharp_get_entry(size_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_addr **eth_ret) global() argument
823 etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr) global() argument
965 etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q) global() argument
1221 etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr *hw_dst_addr) global() argument
1238 etharp_request(struct netif *netif, const ip4_addr_t *ipaddr) global() argument
[all...]
/third_party/ltp/testcases/network/multicast/mc_member/
H A Dmc_member.sh53 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/
H A Dnetifapi.c72 API_EXPR_REF(msg->msg.add.ipaddr), in netifapi_do_netif_add()
97 API_EXPR_REF(msg->msg.add.ipaddr),
162 * For an update, ipaddr is used to find the cache entry.
164 * @param ipaddr IPv4 address of cache entry
165 * @param ethaddr hardware address mapped to ipaddr
170 netifapi_arp_add(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, enum netifapi_arp_entry type)
179 err = etharp_add_static_entry(ipaddr, ethaddr);
183 LWIP_UNUSED_ARG(ipaddr);
193 * Remove an entry in the ARP cache identified by ipaddr
195 * @param ipaddr IPv
[all...]
/third_party/nghttp2/src/
H A Dshrpx_tls_test.cc206 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()
270 static constexpr char ipaddr[] = "192.168.0.1"; test_shrpx_tls_verify_numeric_hostname() local
283 static constexpr char ipaddr[] = "127.0.0.1"; test_shrpx_tls_verify_numeric_hostname() local
[all...]
/third_party/lwip/src/core/
H A Draw.c217 * @param pcb RAW PCB to be bound with a local address ipaddr.
218 * @param ipaddr local IP address to bind with. Use IP4_ADDR_ANY to
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()
278 * @param pcb RAW PCB to be connected with remote address ipaddr and port.
279 * @param ipaddr remote IP address to connect with.
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) raw_sendto() argument
[all...]
H A Dnetif.c130 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);
300 * @param ipaddr IP address for the new netif
329 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw,
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 !
324 netif_add(struct netif *netif, struct net_group *group, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, void *state, netif_init_fn init, netif_input_fn input) global() argument
583 netif_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr) global() argument
741 netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw) global() argument
1749 netif_null_output_ip6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipaddr) global() argument
1763 netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr) global() argument
[all...]
H A Dudp.c961 * @param pcb UDP PCB to be bound with a local address ipaddr and port.
962 * @param ipaddr local IP address to bind with. Use IP_ANY_TYPE to
968 * ipaddr & port are expected to be in the same byte order as in the pcb.
972 * - ERR_USE. The specified ipaddr and port are already bound to by
978 udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
990 if (ipaddr == NULL) {
991 ipaddr = IP4_ADDR_ANY;
994 LWIP_ERROR("udp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
999 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_bind(ipaddr
[all...]
/third_party/node/deps/cares/src/lib/
H A Dares__hosts_file.c190 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) ! in ares__hosts_file_merge_entry()
368 const char *ipaddr = ares__llist_node_val(node); ares__hosts_file_match() local
415 const char *ipaddr = ares__llist_last_val(entry->ips); ares__hosts_file_add() local
805 ares__hosts_search_ipaddr(ares_channel_t *channel, ares_bool_t use_env, const char *ipaddr, const ares_hosts_entry_t **entry) ares__hosts_search_ipaddr() argument
883 const char *ipaddr = ares__llist_node_val(node); ares__hosts_entry_to_hostent() local
1082 const char *ipaddr = ares__llist_node_val(node); ares__hosts_entry_to_addrinfo() local
[all...]
H A Dares__iface_ips.c354 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 in ares__iface_ips_enumerate()
[all...]
H A Dares_sysconfig.c382 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, sizeo in ares__init_sysconfig_libresolv()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/
H A Dp2p-action.sh44 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/
H A Ddhcp_snoop.c117 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_standard/wpa_supplicant/examples/
H A Dp2p-action.sh44 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/
H A Ddhcp_snoop.c115 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/libcoap/examples/lwip/
H A Dserver.c48 static ip4_addr_t ipaddr, netmask, gw; variable
89 IP4_ADDR(&ipaddr, 192,168,113,2); in main()
98 netif_add(&netif, &ipaddr, &netmask, &gw, NULL, tapif_init, ethernet_input); in main()
H A Dclient.c48 static ip4_addr_t ipaddr, netmask, gw; variable
91 IP4_ADDR(&ipaddr, 192,168,114,2); in main()
100 netif_add(&netif, &ipaddr, &netmask, &gw, NULL, tapif_init, ethernet_input); in main()
/third_party/musl/porting/liteos_a/kernel/include/netinet/
H A Dif_ether.h137 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \
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/
H A Dif_ether.h135 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \
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/
H A Dif_ether.h135 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \
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/
H A Dif_ether.h135 #define ETHER_MAP_IP_MULTICAST(ipaddr, enaddr) \
140 (enaddr)[3] = ((uint8_t *)ipaddr)[1] & 0x7f; \
141 (enaddr)[4] = ((uint8_t *)ipaddr)[2]; \
142 (enaddr)[5] = ((uint8_t *)ipaddr)[3]; \

Completed in 16 milliseconds

12345