wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
x_snoop.h
Go to the documentation of this file.
1 
5 #ifndef X_SNOOP_H
6 #define X_SNOOP_H
7 
8 #include "l2_packet/l2_packet.h"
9 
10 #ifdef CONFIG_PROXYARP
11 
12 int x_snoop_init(struct hostapd_data *hapd);
13 struct l2_packet_data *
14 x_snoop_get_l2_packet(struct hostapd_data *hapd,
15  void (*handler)(void *ctx, const u8 *src_addr,
16  const u8 *buf, size_t len),
17  enum l2_packet_filter_type type);
18 void x_snoop_mcast_to_ucast_convert_send(struct hostapd_data *hapd,
19  struct sta_info *sta, u8 *buf,
20  size_t len);
21 void x_snoop_deinit(struct hostapd_data *hapd);
22 
23 #else /* CONFIG_PROXYARP */
24 
25 static inline int x_snoop_init(struct hostapd_data *hapd)
26 {
27  return 0;
28 }
29 
30 static inline struct l2_packet_data *
31 x_snoop_get_l2_packet(struct hostapd_data *hapd,
32  void (*handler)(void *ctx, const u8 *src_addr,
33  const u8 *buf, size_t len),
34  enum l2_packet_filter_type type)
35 {
36  return NULL;
37 }
38 
39 static inline void
40 x_snoop_mcast_to_ucast_convert_send(struct hostapd_data *hapd,
41  struct sta_info *sta, void *buf,
42  size_t len)
43 {
44 }
45 
46 static inline void x_snoop_deinit(struct hostapd_data *hapd)
47 {
48 }
49 
50 #endif /* CONFIG_PROXYARP */
51 
52 #endif /* X_SNOOP_H */
Definition: sta_info.h:44
Definition: l2_packet_freebsd.c:32
WPA Supplicant - Layer2 packet interface definition.
hostapd per-BSS data structure
Definition: hostapd.h:103