summaryrefslogtreecommitdiff
path: root/src/caches/shibari_whitelist_ip4_match.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-12-21 09:44:02 +0000
committerLaurent Bercot <ska@appnovation.com>2023-12-21 09:44:02 +0000
commit071535f5d7aa811647ed359fab431c17c9c5e2a0 (patch)
treeec1e670f772805b47e3892c5cba7294414ee2f13 /src/caches/shibari_whitelist_ip4_match.c
parentb30b381737525c88ae8623258d63f793dbdca08f (diff)
downloads6-dns-071535f5d7aa811647ed359fab431c17c9c5e2a0.tar.xz
Remove unused caches/ subdir
dcache is moved to shibari. Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/caches/shibari_whitelist_ip4_match.c')
-rw-r--r--src/caches/shibari_whitelist_ip4_match.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/caches/shibari_whitelist_ip4_match.c b/src/caches/shibari_whitelist_ip4_match.c
deleted file mode 100644
index fbf11ac..0000000
--- a/src/caches/shibari_whitelist_ip4_match.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* ISC license. */
-
-#include <stdint.h>
-
-#include <skalibs/uint32.h>
-
-#include "shibari-internal.h"
-
-int shibari_whitelist_ip4_match (diuint32 const *s, size_t len, char const *ip)
-{
- uint32_t ip4 ;
- uint32_unpack_big(ip, &ip4) ;
- for (; len-- ; s++) if ((ip4 & s->right) == s->left) return 1 ;
- return 0 ;
-}