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.
gentoo-overlay/net-firewall/pglinux/files/pglinux-2.3.1_p20171006-fno...

22 lines
492 B

--- a/pgld/src/blocklist.h
+++ b/pgld/src/blocklist.h
@@ -74,6 +74,6 @@
void blocklist_stats(int clearhits);
block_entry_t * blocklist_find(uint32_t ip);
void blocklist_dump();
-blocklist_t blocklist;
+extern blocklist_t blocklist;
#endif /* INC_BLOCKLIST_H */
--- a/pgld/src/blocklist.c
+++ b/pgld/src/blocklist.c
@@ -22,6 +22,8 @@
#include "blocklist.h"
#include "pgld.h"
+blocklist_t blocklist;
+
void blocklist_init() {
blocklist.entries = NULL;
blocklist.count = 0;