conf.h: add struct for walled garden config

Signed-off-by: Rob White <rob@blue-wave.net>
This commit is contained in:
Rob White
2020-10-13 08:14:06 +01:00
parent 7778e5c2ad
commit 00e4e9dfa7

View File

@@ -132,6 +132,17 @@ typedef struct _MAC_t {
struct _MAC_t *next;
} t_MAC;
// Walled Garden Ports
typedef struct _WGP_t {
unsigned int wgport;
struct _WGP_t *next;
} t_WGP;
// Walled Garden FQDNs
typedef struct _WGFQDN_t {
char *wgfqdn;
struct _WGFQDN_t *next;
} t_WGFQDN;
// Configuration structure
typedef struct {
@@ -195,6 +206,8 @@ typedef struct {
int ip6; //@brief enable IPv6
char *binauth; //@brief external authentication program
char *preauth; //@brief external preauthentication program
t_WGP walledgardenportlist; //@brief list of Walled Garden Ports
t_WGFQDN *walledgardenfqdnlist; //@brief list of Walled Garden FQDNs
} s_config;
// @brief Get the current gateway configuration