vlan_init.h
Go to the documentation of this file.
00001 /*
00002  * hostapd / VLAN initialization
00003  * Copyright 2003, Instant802 Networks, Inc.
00004  * Copyright 2005, Devicescape Software, Inc.
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License version 2 as
00008  * published by the Free Software Foundation.
00009  *
00010  * Alternatively, this software may be distributed under the terms of BSD
00011  * license.
00012  *
00013  * See README and COPYING for more details.
00014  */
00015 
00016 #ifndef VLAN_INIT_H
00017 #define VLAN_INIT_H
00018 
00019 #ifndef CONFIG_NO_VLAN
00020 int vlan_init(struct hostapd_data *hapd);
00021 void vlan_deinit(struct hostapd_data *hapd);
00022 struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
00023                                        struct hostapd_vlan *vlan,
00024                                        int vlan_id);
00025 int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id);
00026 int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
00027                               struct hostapd_ssid *mssid,
00028                               const char *dyn_vlan);
00029 #else /* CONFIG_NO_VLAN */
00030 static inline int vlan_init(struct hostapd_data *hapd)
00031 {
00032         return 0;
00033 }
00034 
00035 static inline void vlan_deinit(struct hostapd_data *hapd)
00036 {
00037 }
00038 
00039 static inline struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
00040                                                      struct hostapd_vlan *vlan,
00041                                                      int vlan_id)
00042 {
00043         return NULL;
00044 }
00045 
00046 static inline int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id)
00047 {
00048         return -1;
00049 }
00050 
00051 static inline int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
00052                                             struct hostapd_ssid *mssid,
00053                                             const char *dyn_vlan)
00054 {
00055         return -1;
00056 }
00057 #endif /* CONFIG_NO_VLAN */
00058 
00059 #endif /* VLAN_INIT_H */


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:36