[XFRM]: Fix aevent structuring to be more complete.
aevents can not uniquely identify an SA. We break the ABI with this patch, but consensus is that since it is not yet utilized by any (known) application then it is fine (better do it now than later). Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
02dba025b0
commit
2b5f6dcce5
@@ -1281,10 +1281,12 @@ static int build_aevent(struct sk_buff *skb, struct xfrm_state *x, struct km_eve
|
||||
id = NLMSG_DATA(nlh);
|
||||
nlh->nlmsg_flags = 0;
|
||||
|
||||
id->sa_id.daddr = x->id.daddr;
|
||||
memcpy(&id->sa_id.daddr, &x->id.daddr,sizeof(x->id.daddr));
|
||||
id->sa_id.spi = x->id.spi;
|
||||
id->sa_id.family = x->props.family;
|
||||
id->sa_id.proto = x->id.proto;
|
||||
memcpy(&id->saddr, &x->props.saddr,sizeof(x->props.saddr));
|
||||
id->reqid = x->props.reqid;
|
||||
id->flags = c->data.aevent;
|
||||
|
||||
RTA_PUT(skb, XFRMA_REPLAY_VAL, sizeof(x->replay), &x->replay);
|
||||
|
Reference in New Issue
Block a user