From: Aviad Yehezkel Date: Tue, 24 Oct 2017 12:48:59 +0000 (+0300) Subject: examples/ipsec-secgw: fix AAD length setting X-Git-Tag: spdx-start~1193 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4040126053d8dd79dbd63b721fa6b73bd3863e0e;p=dpdk.git examples/ipsec-secgw: fix AAD length setting Fixes: 501e9c226adf ("examples/ipsec-secgw: add AEAD parameters") Cc: stable@dpdk.org Signed-off-by: Aviad Yehezkel Acked-by: Radu Nicolau Acked-by: Pablo de Lara --- diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 7be0e62840..0f5c4fe412 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -375,7 +375,6 @@ parse_sa_tokens(char **tokens, uint32_t n_tokens, rule->auth_algo = algo->algo; rule->auth_key_len = algo->key_len; rule->digest_len = algo->digest_len; - rule->aad_len = algo->key_len; /* NULL algorithm and combined algos do not * require auth key @@ -431,7 +430,7 @@ parse_sa_tokens(char **tokens, uint32_t n_tokens, rule->aead_algo = algo->algo; rule->cipher_key_len = algo->key_len; rule->digest_len = algo->digest_len; - rule->aad_len = algo->key_len; + rule->aad_len = algo->aad_len; rule->block_size = algo->block_size; rule->iv_len = algo->iv_len;