summaryrefslogtreecommitdiff
path: root/include/linux/xfrm.h
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-05-03 14:26:40 -0700
committerDavid S. Miller <davem@davemloft.net>2005-05-03 14:26:40 -0700
commit492b558b3191319cbc859a9e025bc354d336c261 (patch)
tree44e4aef7da73c9d4fd0e31bdfe26399f52a9f0cd /include/linux/xfrm.h
parent526bdb80a23b2e10ed4ccc3fcf309c9118d892d6 (diff)
[XFRM]: Cleanup xfrm_msg_min and xfrm_dispatch
Converts xfrm_msg_min and xfrm_dispatch to use c99 designated initializers to make greping a little bit easier. Also replaces two hardcoded message type with meaningful names. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/xfrm.h')
-rw-r--r--include/linux/xfrm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h
index 4d19b9e65317..fd2ef742a9fd 100644
--- a/include/linux/xfrm.h
+++ b/include/linux/xfrm.h
@@ -144,6 +144,8 @@ enum {
};
#define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1)
+#define XFRM_NR_MSGTYPES (XFRM_MSG_MAX + 1 - XFRM_MSG_BASE)
+
struct xfrm_user_tmpl {
struct xfrm_id id;
__u16 family;