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

Function test_add_invalid

dpdk/app/test/test_ipsec_sad.c:210–225  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

208 * for incorrect user input arguments
209 */
210int32_t
211test_add_invalid(void)
212{
213 int status;
214 struct rte_ipsec_sadv4_key tuple_v4 = {10, 20, 30};
215 struct rte_ipsec_sadv6_key tuple_v6 = {10, {20, }, {30, } };
216
217 status = __test_add_invalid(0, (union rte_ipsec_sad_key *)&tuple_v4);
218 if (status != TEST_SUCCESS)
219 return status;
220
221 status = __test_add_invalid(1, (union rte_ipsec_sad_key *)&tuple_v6);
222
223 return status;
224
225}
226
227static int32_t
228__test_delete_invalid(int ipv6, union rte_ipsec_sad_key *tuple)

Callers

nothing calls this directly

Calls 1

__test_add_invalidFunction · 0.85

Tested by

no test coverage detected