huangcm
2024-12-18 9d29be7f7249789d6ffd0440067187a9f040c2cd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * 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 */