1 #ifndef STORAGE_H 2 #define STORAGE_H 3 4 #if HAVE_CONFIG_H 5 #include "config.h" 6 #endif 7 8 #include "addrwatch.h" 9 10 enum ip_type_len { 11 IP4_LEN = 4, 12 IP6_LEN = 16, 13 }; 14 15 void datafile_init(); 16 void datafile_close(); 17 18 void blacklist_add(char *ip_str); 19 void blacklist_free(); 20 struct ip_node *blacklist_match(uint8_t *ip_addr, uint8_t addr_len); 21 22 void save_pairing(struct pkt *p); 23 24 #endif 25