Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2233
b: refs/heads/master
c: 4f09f0b
h: refs/heads/master
i:
  2231: 806d04a
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jun 19, 2005
1 parent 30c27d6 commit e241301
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 4666faab095230ec8aa62da6c33391287f281154
refs/heads/master: 4f09f0bbc1cb3c74e8f2047ad4be201a059829ee
15 changes: 10 additions & 5 deletions trunk/net/key/af_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,13 +656,18 @@ static struct sk_buff * pfkey_xfrm_state2msg(struct xfrm_state *x, int add_keys,
sa->sadb_sa_exttype = SADB_EXT_SA;
sa->sadb_sa_spi = x->id.spi;
sa->sadb_sa_replay = x->props.replay_window;
sa->sadb_sa_state = SADB_SASTATE_DYING;
if (x->km.state == XFRM_STATE_VALID && !x->km.dying)
sa->sadb_sa_state = SADB_SASTATE_MATURE;
else if (x->km.state == XFRM_STATE_ACQ)
switch (x->km.state) {
case XFRM_STATE_VALID:
sa->sadb_sa_state = x->km.dying ?
SADB_SASTATE_DYING : SADB_SASTATE_MATURE;
break;
case XFRM_STATE_ACQ:
sa->sadb_sa_state = SADB_SASTATE_LARVAL;
else if (x->km.state == XFRM_STATE_EXPIRED)
break;
default:
sa->sadb_sa_state = SADB_SASTATE_DEAD;
break;
}
sa->sadb_sa_auth = 0;
if (x->aalg) {
struct xfrm_algo_desc *a = xfrm_aalg_get_byname(x->aalg->alg_name, 0);
Expand Down

0 comments on commit e241301

Please sign in to comment.