[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:
parent
4f09f0bbc1
commit
bf08867f91
4 changed files with 17 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue