Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 25 of 26) sorted by relevance

12

/hostap-latest/wlantest/
Drx_ip.c123 struct ip ip; in rx_data_ip() local
128 if (len < sizeof(ip)) in rx_data_ip()
130 os_memcpy(&ip, data, sizeof(ip)); in rx_data_ip()
132 if (ip.ip_v != 4) { in rx_data_ip()
139 " dst=" MACSTR ")", ip.ip_v, MAC2STR(bssid), in rx_data_ip()
143 if (ip.ip_hl * 4 < sizeof(ip)) { in rx_data_ip()
146 " dst=" MACSTR ")", ip.ip_hl, MAC2STR(bssid), in rx_data_ip()
150 if (ip.ip_hl * 4 > len) { in rx_data_ip()
153 " dst=" MACSTR ")", ip.ip_hl, (unsigned) len, in rx_data_ip()
160 frag_off = be_to_host16(ip.ip_off); in rx_data_ip()
[all …]
Dwired.c234 const struct ip *ip; in process_ipv4() local
239 if (len < sizeof(*ip)) in process_ipv4()
242 ip = (const struct ip *) data; in process_ipv4()
243 if (ip->ip_v != 4) in process_ipv4()
245 if (ip->ip_hl < 5) in process_ipv4()
250 frag_off = be_to_host16(ip->ip_off); in process_ipv4()
257 ip_len = be_to_host16(ip->ip_len); in process_ipv4()
263 payload = data + 4 * ip->ip_hl; in process_ipv4()
264 plen = len - 4 * ip->ip_hl; in process_ipv4()
268 switch (ip->ip_p) { in process_ipv4()
[all …]
/hostap-latest/src/common/
Dwpa_helpers.c214 char ip[30]; in wait_ip_addr() local
222 if (get_wpa_status(ifname, "ip_address", ip, sizeof(ip)) == 0 in wait_ip_addr()
223 && strlen(ip) > 0) { in wait_ip_addr()
224 printf("IP address found: '%s'\n", ip); in wait_ip_addr()
225 if (strncmp(ip, "169.254.", 8) != 0) in wait_ip_addr()
Ddhcp.h42 struct ip iph;
/hostap-latest/tests/hwsim/vm/
Dinside.sh85 IPv4 0800 ip ip4
90 ip 0 IP
106 ip link set lo up
140 ip link set eth0 up
141 ip addr add 172.16.0.15/24 dev eth0
/hostap-latest/hostapd/
Dctrl_iface.c1883 struct ip ip; in hostapd_data_test_rx() local
1888 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) { in hostapd_data_test_rx()
1896 os_memcpy(&ip, eth + 1, sizeof(ip)); in hostapd_data_test_rx()
1897 pos = &buf[sizeof(*eth) + sizeof(ip)]; in hostapd_data_test_rx()
1899 if (ip.ip_hl != 5 || ip.ip_v != 4 || in hostapd_data_test_rx()
1900 ntohs(ip.ip_len) > HWSIM_IP_LEN) { in hostapd_data_test_rx()
1906 for (i = 0; i < ntohs(ip.ip_len) - sizeof(ip); i++) { in hostapd_data_test_rx()
1916 if (ntohs(ip.ip_len) != HWSIM_IP_LEN) in hostapd_data_test_rx()
1917 os_snprintf(extra, sizeof(extra), " len=%d", ntohs(ip.ip_len)); in hostapd_data_test_rx()
1975 struct ip *ip; in hostapd_ctrl_iface_data_test_tx() local
[all …]
/hostap-latest/src/ap/
Dfils_hlp.c161 struct ip *iph; in fils_dhcp_handler()
482 const struct ip *iph; in fils_process_hlp_udp()
488 iph = (const struct ip *) pos; in fils_process_hlp_udp()
513 const struct ip *iph; in fils_process_hlp_ip()
518 iph = (const struct ip *) pos; in fils_process_hlp_ip()
Dhostapd.h303 const u8 *ip);
/hostap-latest/tests/hwsim/
Dtest_nfc_p2p.py51 ip = dev[0].p2pdev_request("GET ip_addr_go")
52 if ip != "192.168.42.1":
53 raise Exception("Unexpected ip_addr_go returned: " + ip)
102 ip = dev[0].p2pdev_request("GET ip_addr_go")
103 if ip != "192.168.42.1":
104 raise Exception("Unexpected ip_addr_go returned: " + ip)
Dstop.sh18 sudo ip link set hwsim0 down
Dstart.sh120 sudo ip link set hwsim0 up
Dtest_fils.py848 ip = frame[0:20]
849 if ip_checksum(ip) != b'\x00\x00':
/hostap-latest/wpa_supplicant/
Dnotify.c752 int client, const u8 *ip) in wpas_notify_p2p_group_started() argument
757 wpas_dbus_signal_p2p_group_started(wpa_s, client, persistent, ip); in wpas_notify_p2p_group_started()
790 const u8 *p2p_dev_addr, const u8 *ip) in wpas_notify_ap_sta_authorized() argument
834 const u8 *p2p_dev_addr, const u8 *ip) in wpas_notify_sta_authorized() argument
838 ip); in wpas_notify_sta_authorized()
Dnotify.h99 const u8 *p2p_dev_addr, const u8 *ip);
128 int client, const u8 *ip);
Dctrl_iface.c9996 struct ip ip; in wpas_data_test_rx() local
10001 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) { in wpas_data_test_rx()
10009 os_memcpy(&ip, eth + 1, sizeof(ip)); in wpas_data_test_rx()
10010 pos = &buf[sizeof(*eth) + sizeof(ip)]; in wpas_data_test_rx()
10012 if (ip.ip_hl != 5 || ip.ip_v != 4 || ntohs(ip.ip_len) > HWSIM_IP_LEN) { in wpas_data_test_rx()
10018 for (i = 0; i < ntohs(ip.ip_len) - sizeof(ip); i++) { in wpas_data_test_rx()
10027 if (ntohs(ip.ip_len) != HWSIM_IP_LEN) in wpas_data_test_rx()
10028 os_snprintf(extra, sizeof(extra), " len=%d", ntohs(ip.ip_len)); in wpas_data_test_rx()
10080 struct ip *ip; in wpas_ctrl_iface_data_test_tx() local
10110 if (i < sizeof(*ip) || i > HWSIM_IP_LEN) in wpas_ctrl_iface_data_test_tx()
[all …]
Dp2p_supplicant.c7856 u8 ip[3 * 4], *ip_ptr = NULL; in wpas_p2p_completed() local
7893 if (wpa_sm_get_p2p_ip_addr(wpa_s->wpa, ip) == 0) { in wpas_p2p_completed()
7899 ip[0], ip[1], ip[2], ip[3], in wpas_p2p_completed()
7900 ip[4], ip[5], ip[6], ip[7], in wpas_p2p_completed()
7901 ip[8], ip[9], ip[10], ip[11]); in wpas_p2p_completed()
7904 ip_ptr = ip; in wpas_p2p_completed()
Dap.c877 const u8 *ip) in ap_sta_authorized_cb() argument
879 wpas_notify_sta_authorized(ctx, mac_addr, authorized, p2p_dev_addr, ip); in ap_sta_authorized_cb()
/hostap-latest/tests/hwsim/auth_serv/
Ddh_param_3072.pem5 9ip+gHvO6FmRI4bUr5tosVfcVv2nWA0aRknEWFgUw5qKzi0XIejxHf+SKl+XlHGF
/hostap-latest/wpa_supplicant/examples/
Dp2p-action.sh54 sudo ip ro re default via "$goipaddr"
/hostap-latest/src/tls/
Dx509v3.h43 u8 *ip; /* iPAddress */ member
Dx509v3.c33 os_free(name->ip); in x509_free_name()
35 name->ip = NULL; in x509_free_name()
946 os_free(name->ip); in x509_parse_alt_name_ip()
947 name->ip = os_memdup(pos, len); in x509_parse_alt_name_ip()
948 if (name->ip == NULL) in x509_parse_alt_name_ip()
/hostap-latest/wpa_supplicant/dbus/
Ddbus_new.h219 const u8 *ip);
463 const u8 *ip) in wpas_dbus_signal_p2p_group_started() argument
Ddbus_new.c1627 const u8 *ip) in wpas_dbus_signal_p2p_group_started() argument
1670 (ip && in wpas_dbus_signal_p2p_group_started()
1672 (char *) ip, 4) || in wpas_dbus_signal_p2p_group_started()
1674 (char *) ip + 4, 4) || in wpas_dbus_signal_p2p_group_started()
1676 (char *) ip + 8, 4))) || in wpas_dbus_signal_p2p_group_started()
/hostap-latest/tests/remote/
Drutils.py330 def ping_run(host, ip, result, ifname=None, addr_type="ipv4", deadline="5", qos=None): argument
341 ping = ping + [ip]
/hostap-latest/src/l2_packet/
Dl2_packet_zephyr.c231 &l2->iface->config.ip.ipv4->unicast[0].ipv4.address.in_addr.s_addr, in l2_packet_get_ip_addr()

12