mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 19:58:22 -05:00
7d597d4617
Proxy ARP allows the AP devices to keep track of the hardware address to IP address mapping of the STA devices within the BSS. When a request for such information is made (i.e., ARP request, Neighbor Solicitation), the AP will respond on behalf of the STA device within the BSS. Such requests could originate from a device within the BSS or also from the bridge. In the process of the AP replying to the request (i.e., ARP reply, Neighbor Advertisement), the AP will drop the original request frame. The relevant STA will not even know that such information was ever requested. This feature is a requirement for Hotspot 2.0, and is defined in IEEE Std 802.11-2012, 10.23.13. While the Proxy ARP support code mainly resides in the kernel bridge code, in order to optimize the performance and simplify kernel implementation, the DHCP snooping code was added to the hostapd. Signed-off-by: Kyeyoon Park <kyeyoonp@qca.qualcomm.com>
31 lines
590 B
C
31 lines
590 B
C
/*
|
|
* DHCP snooping for Proxy ARP
|
|
* Copyright (c) 2014, Qualcomm Atheros, Inc.
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef DHCP_SNOOP_H
|
|
#define DHCP_SNOOP_H
|
|
|
|
#ifdef CONFIG_PROXYARP
|
|
|
|
int dhcp_snoop_init(struct hostapd_data *hapd);
|
|
void dhcp_snoop_deinit(struct hostapd_data *hapd);
|
|
|
|
#else /* CONFIG_PROXYARP */
|
|
|
|
static inline int dhcp_snoop_init(struct hostapd_data *hapd)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void dhcp_snoop_deinit(struct hostapd_data *hapd)
|
|
{
|
|
}
|
|
|
|
#endif /* CONFIG_PROXYARP */
|
|
|
|
#endif /* DHCP_SNOOP_H */
|