forked from mchome/dogcom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configparse.h
36 lines (32 loc) · 840 Bytes
/
configparse.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef CONFIGPARSE_H_
#define CONFIGPARSE_H_
struct config {
char server[20];
char username[36];
char password[20];
unsigned char CONTROLCHECKSTATUS;
unsigned char ADAPTERNUM;
char host_ip[20];
unsigned char IPDOG;
char host_name[20];
char PRIMARY_DNS[20];
char dhcp_server[20];
unsigned char AUTH_VERSION[2];
unsigned char mac[6];
char host_os[20];
unsigned char KEEP_ALIVE_VERSION[2];
int ror_version;
int keepalive1_mod;
unsigned char pppoe_flag;
unsigned char keep_alive2_flag; /* abandoned */
};
extern struct config drcom_config;
extern int verbose_flag;
extern int logging_flag;
extern int eapol_flag;
extern int eternal_flag;
extern char *log_path;
extern char mode[10];
extern char bind_ip[20];
int config_parse(char *filepath);
#endif // CONFIGPARSE_H_