Preparations to parse IEEE802.11 management packets

This commit is contained in:
vemax78
2014-03-26 21:35:52 +01:00
parent 4c466d68be
commit 7fd2d4357a
6 changed files with 60 additions and 2 deletions

View File

@ -9,9 +9,11 @@
#include "capwap_lock.h"
#include "capwap_rwlock.h"
#include "capwap_list.h"
#include "capwap_hash.h"
#include "capwap_element.h"
#include <pthread.h>
#include <linux/if_ether.h>
/* AC Configuration */
#define AC_DEFAULT_CONFIGURATION_FILE "/etc/capwap/ac.conf"
@ -53,6 +55,10 @@
#define AC_IDLE_TIMEOUT_INTERVAL 300000
#define AC_WTP_FALLBACK_MODE CAPWAP_WTP_FALLBACK_ENABLED
/* */
#define AC_STATIONS_HASH_SIZE 65536
#define AC_STATIONS_KEY_SIZE ETH_ALEN
/* */
struct ac_state {
struct capwap_ecnsupport_element ecn;
@ -91,6 +97,9 @@ struct ac_t {
struct capwap_list* sessionsthread;
capwap_rwlock_t sessionslock;
/* Stations */
struct capwap_hash* stations;
/* Dtls */
int enabledtls;
struct capwap_dtls_context dtlscontext;