diff options
author | Jamal Hadi Salim <hadi@cyberus.ca> | 2006-03-20 22:15:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 22:15:29 -0500 |
commit | 9500e8a81fe6302fcc5e4110adc4d166c9873d3a (patch) | |
tree | 9b26d81e2d69869d2a01c4b33f568ab6cf1e0378 /net/ipv4 | |
parent | f8cd54884e675dfaf0c86cc7c088adb6ca9d7638 (diff) |
[IPSEC]: Sync series - fast path
Fast path sequence updates that will generate ipsec async
events
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ah4.c | 1 | ||||
-rw-r--r-- | net/ipv4/esp4.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c index aed537fa2c88..e16d8b42b953 100644 --- a/net/ipv4/ah4.c +++ b/net/ipv4/ah4.c | |||
@@ -97,6 +97,7 @@ static int ah_output(struct xfrm_state *x, struct sk_buff *skb) | |||
97 | ah->reserved = 0; | 97 | ah->reserved = 0; |
98 | ah->spi = x->id.spi; | 98 | ah->spi = x->id.spi; |
99 | ah->seq_no = htonl(++x->replay.oseq); | 99 | ah->seq_no = htonl(++x->replay.oseq); |
100 | xfrm_aevent_doreplay(x); | ||
100 | ahp->icv(ahp, skb, ah->auth_data); | 101 | ahp->icv(ahp, skb, ah->auth_data); |
101 | 102 | ||
102 | top_iph->tos = iph->tos; | 103 | top_iph->tos = iph->tos; |
diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index 09590f356086..bf88c620a954 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c | |||
@@ -90,6 +90,7 @@ static int esp_output(struct xfrm_state *x, struct sk_buff *skb) | |||
90 | 90 | ||
91 | esph->spi = x->id.spi; | 91 | esph->spi = x->id.spi; |
92 | esph->seq_no = htonl(++x->replay.oseq); | 92 | esph->seq_no = htonl(++x->replay.oseq); |
93 | xfrm_aevent_doreplay(x); | ||
93 | 94 | ||
94 | if (esp->conf.ivlen) | 95 | if (esp->conf.ivlen) |
95 | crypto_cipher_set_iv(tfm, esp->conf.ivec, crypto_tfm_alg_ivsize(tfm)); | 96 | crypto_cipher_set_iv(tfm, esp->conf.ivec, crypto_tfm_alg_ivsize(tfm)); |