mirror of
https://github.com/openNDS/openNDS.git
synced 2026-05-04 03:01:32 -04:00
conf.h: add struct for walled garden config
Signed-off-by: Rob White <rob@blue-wave.net>
This commit is contained in:
13
src/conf.h
13
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
|
||||
|
||||
Reference in New Issue
Block a user