vlan_init.h
Go to the documentation of this file.00001
00017 #ifndef VLAN_INIT_H
00018 #define VLAN_INIT_H
00019
00020 #ifndef CONFIG_NO_VLAN
00021 int vlan_init(struct hostapd_data *hapd);
00022 void vlan_deinit(struct hostapd_data *hapd);
00023 int vlan_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
00024 struct hostapd_bss_config *oldbss);
00025 struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
00026 struct hostapd_vlan *vlan,
00027 int vlan_id);
00028 int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id);
00029 int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
00030 struct hostapd_ssid *mssid,
00031 const char *dyn_vlan);
00032 #else
00033 static inline int vlan_init(struct hostapd_data *hapd)
00034 {
00035 return 0;
00036 }
00037
00038 static inline void vlan_deinit(struct hostapd_data *hapd)
00039 {
00040 }
00041
00042 static inline struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
00043 struct hostapd_vlan *vlan,
00044 int vlan_id)
00045 {
00046 return NULL;
00047 }
00048
00049 static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id)
00050 {
00051 return -1;
00052 }
00053
00054 static inline int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
00055 struct hostapd_ssid *mssid,
00056 const char *dyn_vlan)
00057 {
00058 return -1;
00059 }
00060 #endif
00061
00062 #endif
00063