linux/include/linux/netfilter/ipset/pfxlen.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _PFXLEN_H
#define _PFXLEN_H

#include <asm/byteorder.h>
#include <linux/netfilter.h>
#include <net/tcp.h>

/* Prefixlen maps, by Jan Engelhardt  */
extern const union nf_inet_addr ip_set_netmask_map[];
extern const union nf_inet_addr ip_set_hostmask_map[];

static inline __be32
ip_set_netmask(u8 pfxlen)
{}

static inline const __be32 *
ip_set_netmask6(u8 pfxlen)
{}

static inline u32
ip_set_hostmask(u8 pfxlen)
{}

static inline const __be32 *
ip_set_hostmask6(u8 pfxlen)
{}

extern u32 ip_set_range_to_cidr(u32 from, u32 to, u8 *cidr);

#define ip_set_mask_from_to(from, to, cidr)

static inline void
ip6_netmask(union nf_inet_addr *ip, u8 prefix)
{}

#endif /*_PFXLEN_H */