diff options
| author | David S. Miller <davem@davemloft.net> | 2011-03-20 23:42:25 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-03-20 23:42:25 +0300 |
| commit | 1a0c83307d8211463df27af7c70465099c4979d3 (patch) | |
| tree | e1311c236744935c7770d88aa306b71a32988b7c /include/linux | |
| parent | a769f4968396093d5cc1b1a86204cef579784b24 (diff) | |
| parent | 961ed183a9fd080cf306c659b8736007e44065a5 (diff) | |
| download | linux-1a0c83307d8211463df27af7c70465099c4979d3.tar.xz | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netfilter/ipset/ip_set_getport.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/netfilter/ipset/ip_set_getport.h b/include/linux/netfilter/ipset/ip_set_getport.h index 3882a81a3b3c..5aebd170f899 100644 --- a/include/linux/netfilter/ipset/ip_set_getport.h +++ b/include/linux/netfilter/ipset/ip_set_getport.h @@ -18,4 +18,14 @@ static inline bool ip_set_get_ip6_port(const struct sk_buff *skb, bool src, extern bool ip_set_get_ip_port(const struct sk_buff *skb, u8 pf, bool src, __be16 *port); +static inline bool ip_set_proto_with_ports(u8 proto) +{ + switch (proto) { + case IPPROTO_TCP: + case IPPROTO_UDP: + return true; + } + return false; +} + #endif /*_IP_SET_GETPORT_H*/ |
