You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
667 B

  1. /*
  2. * Copyright (C) 2017 jianhui zhao <jianhuizhao329@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. #ifndef __CONFIG_H_
  9. #define __CONFIG_H_
  10. #include <linux/proc_fs.h>
  11. #define PROC_DIR_NAME "wifidog-ng"
  12. struct config {
  13. int enabled;
  14. char interface[32];
  15. int interface_ifindex;
  16. __be32 interface_ipaddr;
  17. __be32 interface_mask;
  18. __be32 interface_broadcast;
  19. int port;
  20. int ssl_port;
  21. };
  22. int init_config(void);
  23. void deinit_config(void);
  24. struct config *get_config(void);
  25. #endif