diff options
author | Neale Ranns <nranns@cisco.com> | 2019-06-17 15:43:38 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-06-17 20:24:52 +0000 |
commit | 72f2a3acb797797416a96dc10312ccd431126de7 (patch) | |
tree | e712168ebaea12b09299ac74e53842663dfef5a2 /src/vnet/ipsec/esp_encrypt.c | |
parent | 2f0522008ca168e5fff5d754e2ca280ef9366d58 (diff) |
ipsec: One DPO per SA
An SA can be used only for ESP or AH nver both, so it needs only one
coresponding DPO.
Type: refactor
Change-Id: I689060f795ee352245a0eaed0890a6b234c63d71
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ipsec/esp_encrypt.c')
-rw-r--r-- | src/vnet/ipsec/esp_encrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ipsec/esp_encrypt.c b/src/vnet/ipsec/esp_encrypt.c index ef1f5bbca58..d7cda052c92 100644 --- a/src/vnet/ipsec/esp_encrypt.c +++ b/src/vnet/ipsec/esp_encrypt.c @@ -367,7 +367,7 @@ esp_encrypt_inline (vlib_main_t * vm, vlib_node_runtime_t * node, esp_update_ip4_hdr (ip4, len, /* is_transport */ 0, 0); } - dpo = sa0->dpo + IPSEC_PROTOCOL_ESP; + dpo = &sa0->dpo; if (!is_tun) { next[0] = dpo->dpoi_next_node; |