diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2017-09-11 20:14:25 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2017-09-11 20:14:25 +0200 |
commit | 4469d05e3803d3145f47686491c5b76b97ab178a (patch) | |
tree | acb9e5ef704305ed5c8d45d09c51794141d2e476 /kernel/include | |
parent | 54802b2c28265769c2dc1b126419ac673316eb64 (diff) |
Backport nfnl_msg_type()
Diffstat (limited to 'kernel/include')
-rw-r--r-- | kernel/include/linux/netfilter/ipset/ip_set_compat.h.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in b/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in index a6f9093..002e3db 100644 --- a/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in +++ b/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in @@ -38,6 +38,7 @@ #@HAVE_STATE_IN_XT_ACTION_PARAM@ HAVE_STATE_IN_XT_ACTION_PARAM #@HAVE_XT_FAMILY@ HAVE_XT_FAMILY #@HAVE_XT_NET@ HAVE_XT_NET +#@HAVE_NFNL_MSG_TYPE@ HAVE_NFNL_MSG_TYPE #ifdef HAVE_EXPORT_SYMBOL_GPL_IN_MODULE_H #include <linux/module.h> @@ -296,6 +297,13 @@ static inline __be16 tc_skb_protocol(const struct sk_buff *skb) #define IPSET_DEV_NET(par) dev_net((par)->in ? (par)->in : (par)->out) #endif +#ifndef HAVE_NFNL_MSG_TYPE +static inline u16 nfnl_msg_type(u8 subsys, u8 msg_type) +{ + return subsys << 8 | msg_type; +} +#endif + #ifdef HAVE_STATE_IN_XT_ACTION_PARAM #define XAP_STATE(par) (par->state) #else |