xtables-addons: FreeBSD build fix
[feed/packages.git] / net / wifidog-ng / src / config.h
1 /*
2 * Copyright (C) 2017 jianhui zhao <zhaojh329@gmail.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9 #ifndef __CONFIG_H_
10 #define __CONFIG_H_
11
12 #include <linux/proc_fs.h>
13
14 #define PROC_DIR_NAME "wifidog-ng"
15
16 struct config {
17 int enabled;
18 char interface[32];
19 int interface_ifindex;
20 __be32 interface_ipaddr;
21 __be32 interface_mask;
22 __be32 interface_broadcast;
23 int port;
24 int ssl_port;
25 };
26
27 int init_config(void);
28 void deinit_config(void);
29 struct config *get_config(void);
30
31 #endif