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

Function fill_ipsec_session

dpdk/examples/ipsec-secgw/sa.c:1535–1547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1533}
1534
1535static int
1536fill_ipsec_session(struct rte_ipsec_session *ss, struct rte_ipsec_sa *sa)
1537{
1538 int32_t rc = 0;
1539
1540 ss->sa = sa;
1541
1542 rc = rte_ipsec_session_prepare(ss);
1543 if (rc != 0)
1544 memset(ss, 0, sizeof(*ss));
1545
1546 return rc;
1547}
1548
1549/*
1550 * Initialise related rte_ipsec_sa object.

Callers 1

ipsec_sa_initFunction · 0.85

Calls 2

memsetFunction · 0.85

Tested by

no test coverage detected