diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-06-19 01:44:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-19 01:44:00 -0400 |
commit | bf08867f91a43aa3ba2e4598c06c4769a6cdddf6 (patch) | |
tree | 316504b4756a32d802ea037815f2d9022ab88bfe /include/net | |
parent | 4f09f0bbc1cb3c74e8f2047ad4be201a059829ee (diff) |
[IPSEC] Turn km_event.data into a union
This patch turns km_event.data into a union. This makes code that
uses it clearer.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/xfrm.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index aaa0f5f330e2..fda356e81014 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -173,7 +173,12 @@ enum { | |||
173 | /* callback structure passed from either netlink or pfkey */ | 173 | /* callback structure passed from either netlink or pfkey */ |
174 | struct km_event | 174 | struct km_event |
175 | { | 175 | { |
176 | u32 data; | 176 | union { |
177 | u32 hard; | ||
178 | u32 proto; | ||
179 | u32 byid; | ||
180 | } data; | ||
181 | |||
177 | u32 seq; | 182 | u32 seq; |
178 | u32 pid; | 183 | u32 pid; |
179 | u32 event; | 184 | u32 event; |