Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42003
b: refs/heads/master
c: 2b5f6dc
h: refs/heads/master
i:
  42001: 13415d9
  41999: 0aa2a61
v: v3
  • Loading branch information
Jamal Hadi Salim authored and David S. Miller committed Dec 3, 2006
1 parent 09129d7 commit f6ed513
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02dba025b0bc881432cf325bfb124fae523087d5
refs/heads/master: 2b5f6dcce5bf94b9b119e9ed8d537098ec61c3d2
5 changes: 4 additions & 1 deletion trunk/Documentation/networking/xfrm_sync.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ aevent_id structure looks like:

struct xfrm_aevent_id {
struct xfrm_usersa_id sa_id;
xfrm_address_t saddr;
__u32 flags;
__u32 reqid;
};

xfrm_usersa_id in this message layout identifies the SA.
The unique SA is identified by the combination of xfrm_usersa_id,
reqid and saddr.

flags are used to indicate different things. The possible
flags are:
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/xfrm.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ struct xfrm_usersa_id {

struct xfrm_aevent_id {
struct xfrm_usersa_id sa_id;
xfrm_address_t saddr;
__u32 flags;
__u32 reqid;
};

struct xfrm_userspi_info {
Expand Down
4 changes: 3 additions & 1 deletion trunk/net/xfrm/xfrm_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f6ed513

Please sign in to comment.