Go to the documentation of this file.
4 #include <asm/byteorder.h>
5 #include <linux/netfilter.h>
13 ip_set_netmask(
u8 pfxlen)
18 static inline const __be32 *
19 ip_set_netmask6(
u8 pfxlen)
25 ip_set_hostmask(
u8 pfxlen)
30 static inline const __be32 *
31 ip_set_hostmask6(
u8 pfxlen)
38 #define ip_set_mask_from_to(from, to, cidr) \
40 from &= ip_set_hostmask(cidr); \
41 to = from | ~ip_set_hostmask(cidr); \