aboutsummaryrefslogtreecommitdiff
path: root/test/validation
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2022-03-25 16:53:07 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2022-03-30 09:45:26 +0300
commit039ecc5592b0bcab924d5720dab969831b57594a (patch)
treef98eae140288836eb0d18a787732644468bdf12a /test/validation
parent8a329e1e9a48465c6a186f98ef674a61c5d92b7d (diff)
validation: ipsec: relax tunnel mode dummy TFC packet checking
Do not try to verify the content of a processed incoming packet if the packet is supposed to be a tunnel mode dummy TFC packet. The content of such a packet is implementation specific according to the ODP API. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'test/validation')
-rw-r--r--test/validation/api/ipsec/ipsec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/validation/api/ipsec/ipsec.c b/test/validation/api/ipsec/ipsec.c
index 88f204ea4..3404fbd05 100644
--- a/test/validation/api/ipsec/ipsec.c
+++ b/test/validation/api/ipsec/ipsec.c
@@ -942,9 +942,8 @@ static void verify_in(const ipsec_test_part *part,
result.orig_ip_len == len);
}
}
- ipsec_check_packet(part->out[i].pkt_res,
- pkto[i],
- false);
+ if (part->out[i].l3_type != ODP_PROTO_L3_TYPE_NONE)
+ ipsec_check_packet(part->out[i].pkt_res, pkto[i], false);
if (suite_context.inbound_op_mode == ODP_IPSEC_OP_MODE_INLINE)
expected_user_ptr = NULL;
CU_ASSERT(odp_packet_user_ptr(pkto[i]) == expected_user_ptr);