From 00e4e9dfa717bb059e1d95f958c33de5ca8b764c Mon Sep 17 00:00:00 2001 From: Rob White Date: Tue, 13 Oct 2020 08:14:06 +0100 Subject: [PATCH] conf.h: add struct for walled garden config Signed-off-by: Rob White --- src/conf.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/conf.h b/src/conf.h index db0b383..d2ce380 100644 --- a/src/conf.h +++ b/src/conf.h @@ -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