Home
last modified time | relevance | path

Searched refs:ip_addr (Results 1 – 25 of 61) sorted by relevance

123

/third_party/ltp/testcases/network/tcp_cmds/arping/
Darping01.sh15 local ip_addr=$(tst_ipaddr rhost)
18 tst_res TINFO "arping host '$ip_addr' via dev '$dev' with timeout '$timeout' secs"
19 EXPECT_PASS arping -w $timeout "$ip_addr" -I $dev -fq
/third_party/ltp/testcases/network/stress/route/
Droute-change-netlink.c43 struct ip_addr { struct
45 struct ip_addr *next; argument
49 static struct ip_addr *dst, *gw, *rhost; argument
70 struct ip_addr *n = SAFE_MALLOC(sizeof(*n)); in save_ip()
71 struct ip_addr **list = (struct ip_addr**)data; in save_ip()
143 struct ip_addr *p_rhost = rhost; in setup()
286 struct ip_addr *p_dst = dst, *p_gw = gw, *p_rhost = rhost; in run()
/third_party/ltp/testcases/network/dhcp/
Ddhcp_lib.sh49 ip_addr="fd00:1:1:2::12/64"
53 ip_addr="10.1.1.12/24"
77 tst_res TINFO "add $ip_addr to $iface0"
78 ip addr add $ip_addr dev $iface0 || \
/third_party/ltp/testcases/network/stress/ns-tools/
Dns-icmp_redirector.c70 unsigned char ip_addr[4]; member
76 struct in6_addr ip_addr; member
309 memcpy(gateway_p->ip_addr, rcvarp_p->ar_tip, 4); /* IP address */ in return_arp_reply()
312 memcpy(new_nexthop, gateway_p->ip_addr, 4); in return_arp_reply()
337 memcpy(sndarp_p->ar_sip, gateway_p->ip_addr, 4); in return_arp_reply()
414 memcpy((unsigned char *)&sndip_p->hdr.saddr, gw_p->ip_addr, 4); in return_icmp4_redirect()
499 gateway_p->ip_addr = rcvns_p->defs.nd_ns_target; /* IP address */ in return_neigh_adv()
532 sndip6_p->hdr.ip6_src = gateway_p->ip_addr; in return_neigh_adv()
539 sndna_p->defs.nd_na_target = gateway_p->ip_addr; in return_neigh_adv()
634 sndip6_p->hdr.ip6_src = gw_p->ip_addr; in return_icmp6_redirect()
/third_party/lwip/test/unit/mqtt/
Dtest_mqtt.c22 test_mqtt_init_netif(struct netif *netif, const ip_addr_t *ip_addr, const ip_addr_t *netmask) in test_mqtt_init_netif() argument
29 ip_addr_copy_from_ip4(netif->ip_addr, *ip_2_ip4(ip_addr)); in test_mqtt_init_netif()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_upnp_i.h130 unsigned ip_addr; /* IP address of network i.f. we use (host order) */ member
161 int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text,
173 int ssdp_open_multicast_sock(u32 ip_addr, const char *forced_ifname);
Dwps_upnp_ssdp.c852 int ssdp_open_multicast_sock(u32 ip_addr, const char *forced_ifname) in ssdp_open_multicast_sock() argument
887 &ip_addr, sizeof(ip_addr))) { in ssdp_open_multicast_sock()
889 "%d (%s)", ip_addr, errno, strerror(errno)); in ssdp_open_multicast_sock()
905 mreq.imr_interface.s_addr = ip_addr; in ssdp_open_multicast_sock()
938 sm->multicast_sd = ssdp_open_multicast_sock(sm->ip_addr, NULL); in ssdp_open_multicast()
Dwps_upnp.c310 (sm->ip_addr & sm->netmask.s_addr); in local_network_addr()
918 int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text, in get_netif_info() argument
941 *ip_addr = addr->sin_addr.s_addr; in get_netif_info()
942 in_addr.s_addr = *ip_addr; in get_netif_info()
1063 if (get_netif_info(net_if, &sm->ip_addr, &sm->ip_addr_text, in upnp_wps_device_start()
Dwps_er.h82 unsigned ip_addr; /* IP address of network i.f. we use (host order) */ member
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_upnp_i.h130 unsigned ip_addr; /* IP address of network i.f. we use (host order) */ member
160 int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text,
172 int ssdp_open_multicast_sock(u32 ip_addr, const char *forced_ifname);
Dwps_upnp_ssdp.c852 int ssdp_open_multicast_sock(u32 ip_addr, const char *forced_ifname) in ssdp_open_multicast_sock() argument
887 &ip_addr, sizeof(ip_addr))) { in ssdp_open_multicast_sock()
889 "%d (%s)", ip_addr, errno, strerror(errno)); in ssdp_open_multicast_sock()
905 mreq.imr_interface.s_addr = ip_addr; in ssdp_open_multicast_sock()
938 sm->multicast_sd = ssdp_open_multicast_sock(sm->ip_addr, NULL); in ssdp_open_multicast()
Dwps_er.h82 unsigned ip_addr; /* IP address of network i.f. we use (host order) */ member
Dwps_upnp.c895 int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text, in get_netif_info() argument
918 *ip_addr = addr->sin_addr.s_addr; in get_netif_info()
919 in_addr.s_addr = *ip_addr; in get_netif_info()
1027 if (get_netif_info(net_if, &sm->ip_addr, &sm->ip_addr_text, in upnp_wps_device_start()
/third_party/lwip/test/unit/dhcp/
Dtest_dhcp.c462 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST()
493 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST()
535 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST()
754 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST()
781 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST()
903 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST()
1009 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST()
1017 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST()
1025 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST()
/third_party/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dload_balancer_api.cc33 int r = memcmp(ip_addr, other.ip_addr, ip_size); in operator ==()
130 memcpy(cur.ip_addr, address.data, address.size); in ParseServerList()
Dload_balancer_api.h42 char ip_addr[GRPC_GRPCLB_SERVER_IP_ADDRESS_MAX_SIZE]; member
/third_party/gstreamer/gstplugins_bad/gst/pcapparse/
Dgstpcapparse.c205 get_ip_address_as_string (gint64 ip_addr) in get_ip_address_as_string() argument
207 if (ip_addr >= 0) { in get_ip_address_as_string()
209 addr.s_addr = ip_addr; in get_ip_address_as_string()
217 set_ip_address_from_string (gint64 * ip_addr, const gchar * ip_str) in set_ip_address_from_string() argument
222 *ip_addr = addr; in set_ip_address_from_string()
224 *ip_addr = -1; in set_ip_address_from_string()
/third_party/python/Lib/
Duuid.py527 ip_addr = socket.gethostbyname(socket.gethostname())
532 mac = _find_mac_near_keyword('arp', '-an', [os.fsencode(ip_addr)], lambda i: -1)
537 mac = _find_mac_near_keyword('arp', '-an', [os.fsencode(ip_addr)], lambda i: i+1)
542 mac = _find_mac_near_keyword('arp', '-an', [os.fsencode('(%s)' % ip_addr)],
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
DMakefile11 ip_addr.o \
/third_party/lwip/test/unit/tcp/
Dtcp_helper.c300 const ip_addr_t *ip_addr, const ip_addr_t *netmask) in test_tcp_init_netif() argument
311 ip_addr_copy_from_ip4(netif->ip_addr, *ip_2_ip4(ip_addr)); in test_tcp_init_netif()
Dtcp_helper.h55 const ip_addr_t *ip_addr, const ip_addr_t *netmask);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
DMakefile21 ip_addr.o \
/third_party/lwip/src/include/lwip/
Dnetif.h268 ip_addr_t ip_addr; member
443 #define netif_ip4_addr(netif) ((const ip4_addr_t*)ip_2_ip4(&((netif)->ip_addr)))
449 #define netif_ip_addr4(netif) ((const ip_addr_t*)&((netif)->ip_addr))
/third_party/lwip/src/apps/mqtt/
Dmqtt.c1282 mqtt_client_connect(mqtt_client_t *client, const ip_addr_t *ip_addr, u16_t port, mqtt_connection_cb… in mqtt_client_connect() argument
1295 LWIP_ASSERT("mqtt_client_connect: ip_addr != NULL", ip_addr != NULL); in mqtt_client_connect()
1366 client->conn = altcp_tls_new(client_info->tls_config, IP_GET_TYPE(ip_addr)); in mqtt_client_connect()
1370 client->conn = altcp_tcp_new_ip_type(IP_GET_TYPE(ip_addr)); in mqtt_client_connect()
1384 …E, ("mqtt_client_connect: Connecting to host: %s at port:%"U16_F"\n", ipaddr_ntoa(ip_addr), port)); in mqtt_client_connect()
1387 err = altcp_connect(client->conn, ip_addr, port, mqtt_tcp_connect_cb); in mqtt_client_connect()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dsta_info.c1258 char ip_addr[100]; in ap_sta_set_authorized() local
1261 ip_addr[0] = '\0'; in ap_sta_set_authorized()
1264 os_snprintf(ip_addr, sizeof(ip_addr), in ap_sta_set_authorized()
1278 buf, ip_addr, keyid_buf); in ap_sta_set_authorized()
1284 buf, ip_addr, keyid_buf); in ap_sta_set_authorized()

123