diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-01-27 15:46:06 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-01-27 15:46:06 +0000 |
commit | b5eba018a0a948d7757448d4cd70fe33cb6b71a0 (patch) | |
tree | 7a00533384303e4802df1e935d50397decb9395b /src/caches/shibari-internal.h | |
parent | 7e3beac8435b957a583559d13f7666631719d15f (diff) | |
download | s6-dns-b5eba018a0a948d7757448d4cd70fe33cb6b71a0.tar.xz |
Add shibari, prepare for 2.3.2.0dcache
Diffstat (limited to 'src/caches/shibari-internal.h')
-rw-r--r-- | src/caches/shibari-internal.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/caches/shibari-internal.h b/src/caches/shibari-internal.h new file mode 100644 index 0000000..048faa5 --- /dev/null +++ b/src/caches/shibari-internal.h @@ -0,0 +1,25 @@ +/* ISC license. */ + +#ifndef S6DNS_SHIBARI_INTERNAL_H +#define S6DNS_SHIBARI_INTERNAL_H + +#include <stdint.h> + +#include <skalibs/diuint32.h> +#include <skalibs/genalloc.h> + +typedef struct shibari_ip6_s shibari_ip6_t, *shibari_ip6_t_ref ; +struct shibari_ip6_s +{ + uint64_t addr0 ; + uint64_t addr1 ; + uint64_t mask0 ; + uint64_t mask1 ; +} ; + +extern int shibari_whitelist_add6 (genalloc *g, char const *, uint16_t) ; +extern int shibari_whitelist_read (char const *, genalloc *, genalloc *) ; +extern int shibari_whitelist_ip4_match (diuint32 const *, size_t, char const *) ; +extern int shibari_whitelist_ip6_match (shibari_ip6_t const *, size_t, char const *) ; + +#endif |