Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
5a2e278
)
Fix [csit-dev] CSIT IPv6 IPSec transport mode tests are failing
15/16415/3
author
jackiechen1985
<xiaobo.chen@tieto.com>
Mon, 10 Dec 2018 20:13:22 +0000
(
04:13
+0800)
committer
Neale Ranns
<nranns@cisco.com>
Tue, 11 Dec 2018 12:40:52 +0000
(12:40 +0000)
Change-Id: I7893a8fd5b3e15063675597c0e9bd1cd0b49ef0e
Signed-off-by: jackiechen1985 <xiaobo.chen@tieto.com>
src/vnet/ipsec/esp_encrypt.c
patch
|
blob
|
history
diff --git
a/src/vnet/ipsec/esp_encrypt.c
b/src/vnet/ipsec/esp_encrypt.c
index
88eda91
..
ff9c1e6
100644
(file)
--- a/
src/vnet/ipsec/esp_encrypt.c
+++ b/
src/vnet/ipsec/esp_encrypt.c
@@
-311,7
+311,15
@@
esp_encrypt_inline (vlib_main_t * vm,
vnet_buffer (o_b0)->sw_if_index[VLIB_TX] =
vnet_buffer (i_b0)->sw_if_index[VLIB_TX];
}
- vlib_buffer_advance (i_b0, sizeof (ip4_header_t));
+
+ if (is_ip6)
+ {
+ vlib_buffer_advance (i_b0, sizeof (ip6_header_t));
+ }
+ else
+ {
+ vlib_buffer_advance (i_b0, sizeof (ip4_header_t));
+ }
}
ASSERT (sa0->crypto_alg < IPSEC_CRYPTO_N_ALG);