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

Function inbound_sa_check

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

Source from the content-addressed store, hash-verified

1762}
1763
1764int
1765inbound_sa_check(struct sa_ctx *sa_ctx, struct rte_mbuf *m, uint32_t sa_idx)
1766{
1767 struct ipsec_mbuf_metadata *priv;
1768 struct ipsec_sa *sa;
1769
1770 priv = get_priv(m);
1771 sa = priv->sa;
1772 if (sa != NULL)
1773 return (sa_ctx->sa[sa_idx].spi == sa->spi);
1774
1775 RTE_LOG(ERR, IPSEC, "SA not saved in private data\n");
1776 return 0;
1777}
1778
1779void
1780inbound_sa_lookup(struct sa_ctx *sa_ctx, struct rte_mbuf *pkts[],

Callers 1

inbound_sp_saFunction · 0.85

Calls 1

get_privFunction · 0.85

Tested by

no test coverage detected