aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter_decnet.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2005-08-14 19:29:52 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 16:00:54 -0700
commitac6d439d2097b72ea0cbc2322ce1263a38bc1fd0 (patch)
tree19e638a226993dddede5a2da577e2572f7555a95 /include/linux/netfilter_decnet.h
parent[NETLINK]: Use group numbers instead of bitmasks internally (diff)
downloadlinux-dev-ac6d439d2097b72ea0cbc2322ce1263a38bc1fd0.tar.xz
linux-dev-ac6d439d2097b72ea0cbc2322ce1263a38bc1fd0.zip
[NETLINK]: Convert netlink users to use group numbers instead of bitmasks
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netfilter_decnet.h')
-rw-r--r--include/linux/netfilter_decnet.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/netfilter_decnet.h b/include/linux/netfilter_decnet.h
index 018979484150..6f425369ee29 100644
--- a/include/linux/netfilter_decnet.h
+++ b/include/linux/netfilter_decnet.h
@@ -56,7 +56,21 @@ struct nf_dn_rtmsg {
#define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
+#ifndef __KERNEL__
+/* backwards compatibility for userspace */
#define DNRMG_L1_GROUP 0x01
#define DNRMG_L2_GROUP 0x02
+#endif
+
+enum {
+ DNRNG_NLGRP_NONE,
+#define DNRNG_NLGRP_NONE DNRNG_NLGRP_NONE
+ DNRNG_NLGRP_L1,
+#define DNRNG_NLGRP_L1 DNRNG_NLGRP_L1
+ DNRNG_NLGRP_L2,
+#define DNRNG_NLGRP_L2 DNRNG_NLGRP_L2
+ __DNRNG_NLGRP_MAX
+};
+#define DNRNG_NLGRP_MAX (__DNRNG_NLGRP_MAX - 1)
#endif /*__LINUX_DECNET_NETFILTER_H*/