MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_delete_invalid

Function test_delete_invalid

dpdk/app/test/test_ipsec_sad.c:269–284  ·  view source on GitHub ↗

* Check that rte_ipsec_sad_delete fails gracefully for incorrect user input * arguments */

Source from the content-addressed store, hash-verified

267 * arguments
268 */
269int32_t
270test_delete_invalid(void)
271{
272 int status;
273 struct rte_ipsec_sadv4_key tuple_v4 = {SPI, DIP, SIP};
274 struct rte_ipsec_sadv6_key tuple_v6 = {SPI, {0xbe, 0xef, },
275 {0xf0, 0x0d, } };
276
277 status = __test_delete_invalid(0, (union rte_ipsec_sad_key *)&tuple_v4);
278 if (status != TEST_SUCCESS)
279 return status;
280
281 status = __test_delete_invalid(1, (union rte_ipsec_sad_key *)&tuple_v6);
282
283 return status;
284}
285
286static int32_t
287__test_lookup_invalid(int ipv6, union rte_ipsec_sad_key *tuple)

Callers

nothing calls this directly

Calls 1

__test_delete_invalidFunction · 0.85

Tested by

no test coverage detected