[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>
This commit is contained in:

committed by
David S. Miller

parent
4f09f0bbc1
commit
bf08867f91
@@ -173,7 +173,12 @@ enum {
|
||||
/* callback structure passed from either netlink or pfkey */
|
||||
struct km_event
|
||||
{
|
||||
u32 data;
|
||||
union {
|
||||
u32 hard;
|
||||
u32 proto;
|
||||
u32 byid;
|
||||
} data;
|
||||
|
||||
u32 seq;
|
||||
u32 pid;
|
||||
u32 event;
|
||||
|
Reference in New Issue
Block a user