]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/netfilter/ipset/ip_set.h
netfilter: ipset: use bitmap infrastructure completely
[mirror_ubuntu-bionic-kernel.git] / include / linux / netfilter / ipset / ip_set.h
index 91a533bd3eb19d1447b122e07b8e2f347403480a..b7246b7e0bf4932620e44530407910b50670bd48 100644 (file)
@@ -445,13 +445,6 @@ ip6addrptr(const struct sk_buff *skb, bool src, struct in6_addr *addr)
               sizeof(*addr));
 }
 
-/* Calculate the bytes required to store the inclusive range of a-b */
-static inline int
-bitmap_bytes(u32 a, u32 b)
-{
-       return 4 * ((((b - a + 8) / 8) + 3) / 4);
-}
-
 #include <linux/netfilter/ipset/ip_set_timeout.h>
 #include <linux/netfilter/ipset/ip_set_comment.h>
 #include <linux/netfilter/ipset/ip_set_counter.h>