]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - include/linux/netfilter/ipset/ip_set_getport.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _IP_SET_GETPORT_H
3 #define _IP_SET_GETPORT_H
5 extern bool ip_set_get_ip4_port(const struct sk_buff
*skb
, bool src
,
6 __be16
*port
, u8
*proto
);
8 #if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE)
9 extern bool ip_set_get_ip6_port(const struct sk_buff
*skb
, bool src
,
10 __be16
*port
, u8
*proto
);
12 static inline bool ip_set_get_ip6_port(const struct sk_buff
*skb
, bool src
,
13 __be16
*port
, u8
*proto
)
19 extern bool ip_set_get_ip_port(const struct sk_buff
*skb
, u8 pf
, bool src
,
22 static inline bool ip_set_proto_with_ports(u8 proto
)
34 #endif /*_IP_SET_GETPORT_H*/