diff options
Diffstat (limited to 'src/caches/shibari_whitelist_ip4_match.c')
-rw-r--r-- | src/caches/shibari_whitelist_ip4_match.c | 15 |
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 ; -} |