fragattacks/src/ap
Jouni Malinen 25ef8529c1 P2P: Add support for IP address assignment in 4-way handshake
This new mechanism allows P2P Client to request an IPv4 address from the
GO as part of the 4-way handshake to avoid use of DHCP exchange after
4-way handshake. If the new mechanism is used, the assigned IP address
is shown in the P2P-GROUP-STARTED event on the client side with
following new parameters: ip_addr, ip_mask, go_ip_addr. The assigned IP
address is included in the AP-STA-CONNECTED event on the GO side as a
new ip_addr parameter. The IP address is valid for the duration of the
association.

The IP address pool for this new mechanism is configured as global
wpa_supplicant configuration file parameters ip_addr_go, ip_addr_mask,
ip_addr_star, ip_addr_end. For example:

ip_addr_go=192.168.42.1
ip_addr_mask=255.255.255.0
ip_addr_start=192.168.42.2
ip_addr_end=192.168.42.100

DHCP mechanism is expected to be enabled at the same time to support P2P
Devices that do not use the new mechanism. The easiest way of managing
the IP addresses is by splitting the IP address range into two parts and
assign a separate range for wpa_supplicant and DHCP server.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
2014-01-27 21:44:26 +02:00
..
accounting.c Include driver.h in hostapd.h 2013-12-24 08:22:37 +02:00
accounting.h Add Acct-Session-Id into Access-Request messages 2012-12-18 18:13:31 +02:00
acs.c ACS: Mark acs_fail() static 2013-12-31 22:30:49 +02:00
acs.h Move declaration of hostapd_acs_completed() into correct header file 2013-12-31 19:34:43 +02:00
ap_config.c hostapd: Skip full AP configuration validation on SET command 2014-01-07 20:23:56 +02:00
ap_config.h P2P: Add support for IP address assignment in 4-way handshake 2014-01-27 21:44:26 +02:00
ap_drv_ops.c WNM: Fix AP processing without wnm_oper driver callback 2013-12-27 18:48:04 +02:00
ap_drv_ops.h Add DRIVER-STATUS command for hostapd 2014-01-07 10:45:12 +02:00
ap_list.c Include driver.h in hostapd.h 2013-12-24 08:22:37 +02:00
ap_list.h AP: Use monotonic time for AP list 2013-12-07 20:50:15 -08:00
ap_mlme.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
ap_mlme.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
authsrv.c EAP server: Initialize TLS context based on private_key 2013-11-24 18:08:45 +02:00
authsrv.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
beacon.c Remove obsolete license notifications 2013-12-24 22:59:52 +02:00
beacon.h Remove obsolete license notifications 2013-12-24 22:59:52 +02:00
ctrl_iface_ap.c hostapd: Fix segmentation fault when calling hostapd_cli all_sta 2014-01-22 19:28:57 +02:00
ctrl_iface_ap.h Add chan_switch to ctrl interface of wpa_supplicant and hostapd 2013-11-17 17:12:58 +02:00
dfs.c hostapd: DFS setup seg0 correctly for HT40- 2014-01-14 17:14:13 +02:00
dfs.h DFS: Convert hostapd_data use to hostapd_iface 2013-11-03 19:51:06 +02:00
drv_callbacks.c Remove unnecessary EVENT_RX_ACTION 2013-12-29 17:18:17 +02:00
eap_user_db.c Add preliminary support for using SQLite for eap_user database 2012-11-21 00:47:47 +02:00
gas_serv.c GAS server: Add support for Protected Dual of Public Action frames 2014-01-23 11:19:55 +02:00
gas_serv.h GAS server: Add support for Protected Dual of Public Action frames 2014-01-23 11:19:55 +02:00
hostapd.c hostapd: Skip full AP configuration validation on SET command 2014-01-07 20:23:56 +02:00
hostapd.h hostapd: Allow external management frame processing or testing 2013-12-26 16:55:45 +02:00
hs20.c HS 2.0: Add mechanism for disabling DGAF 2012-07-30 18:23:52 +03:00
hs20.h HS 2.0: Add Hotspot 2.0 Indication for AP 2012-07-30 18:23:38 +03:00
hw_features.c Remove obsolete license notifications 2013-12-24 22:59:52 +02:00
hw_features.h Move declaration of hostapd_acs_completed() into correct header file 2013-12-31 19:34:43 +02:00
iapp.c Convert perror/printf calls to wpa_printf 2013-11-02 12:58:33 +02:00
iapp.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
ieee802_1x.c Add more STA information into the ctrl_iface STA command 2014-01-02 16:58:14 +02:00
ieee802_1x.h Share a single definition of EAPOL-Key structure for WEP keys 2012-08-07 21:27:01 +03:00
ieee802_11_auth.c Use monotonic clock for RADIUS cache timeouts 2013-12-07 20:50:15 -08:00
ieee802_11_auth.h Use a shared function for freeing PSK list 2012-11-25 18:01:55 +02:00
ieee802_11_ht.c Remove obsolete license notifications 2013-12-24 22:59:52 +02:00
ieee802_11_shared.c AP: Use monotonic clock for SA query timeout 2013-12-07 20:50:15 -08:00
ieee802_11_vht.c Include driver.h in hostapd.h 2013-12-24 08:22:37 +02:00
ieee802_11.c GAS server: Add support for Protected Dual of Public Action frames 2014-01-23 11:19:55 +02:00
ieee802_11.h Do not process Action frames twice in hostapd SME/MLME 2013-12-29 11:25:59 +02:00
Makefile Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00
p2p_hostapd.c Remove the GPL notification from files contributed by Atheros 2012-02-11 19:39:36 +02:00
p2p_hostapd.h Remove the GPL notification from files contributed by Atheros 2012-02-11 19:39:36 +02:00
peerkey_auth.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
pmksa_cache_auth.c AP: Use monotonic time for PMKSA cache 2013-12-24 07:01:07 +02:00
pmksa_cache_auth.h WNM: Remove PMKSA cache entry on ESS disassoc imminent notification 2013-05-23 16:50:06 +03:00
preauth_auth.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
preauth_auth.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
sta_info.c P2P: Add support for IP address assignment in 4-way handshake 2014-01-27 21:44:26 +02:00
sta_info.h hostapd: Make STA flags available through ctrl_iface STA command 2013-12-27 19:35:12 +02:00
tkip_countermeasures.c AP: Use monotonic time for MMIC failure/TKIP countermeasures 2013-12-24 07:13:34 +02:00
tkip_countermeasures.h hostapd: Fix a regression in TKIP countermeasures processing 2012-11-18 13:06:03 +02:00
utils.c Move hostapd global callback functions into hapd_interfaces 2012-08-25 13:47:05 +03:00
vlan_init.c Remove obsolete license notifications 2013-12-24 22:59:52 +02:00
vlan_init.h Remove obsolete license notifications 2013-12-24 22:59:52 +02:00
vlan_util.c Add option to use netlink to create and remove VLAN interfaces 2012-08-10 14:09:05 +03:00
vlan_util.h Add option to use netlink to create and remove VLAN interfaces 2012-08-10 14:09:05 +03:00
wmm.c Remove obsolete license notifications 2013-12-24 22:59:52 +02:00
wmm.h Remove obsolete license notifications 2013-12-24 22:59:52 +02:00
wnm_ap.c WNM: Clean up le16 variable use to avoid sparse warnings 2013-12-31 19:41:47 +02:00
wnm_ap.h Remove unnecessary EVENT_RX_ACTION 2013-12-29 17:18:17 +02:00
wpa_auth_ft.c Fix whitespace style 2013-12-29 11:25:59 +02:00
wpa_auth_glue.c P2P: Add support for IP address assignment in 4-way handshake 2014-01-27 21:44:26 +02:00
wpa_auth_glue.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
wpa_auth_i.h P2P: Add support for IP address assignment in 4-way handshake 2014-01-27 21:44:26 +02:00
wpa_auth_ie.c P2P: Add support for IP address assignment in 4-way handshake 2014-01-27 21:44:26 +02:00
wpa_auth_ie.h P2P: Add support for IP address assignment in 4-way handshake 2014-01-27 21:44:26 +02:00
wpa_auth.c P2P: Add support for IP address assignment in 4-way handshake 2014-01-27 21:44:26 +02:00
wpa_auth.h P2P: Add support for IP address assignment in 4-way handshake 2014-01-27 21:44:26 +02:00
wps_hostapd.c WPS NFC: Allow BSSID and channel to be included in handover select 2014-01-27 21:10:55 +02:00
wps_hostapd.h WPS NFC: Add AP mode connection handover report 2014-01-27 21:10:55 +02:00