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

Function ipsec6_setspidx_ipaddr

freebsd/netipsec/ipsec.c:736–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736static void
737ipsec6_setspidx_ipaddr(const struct mbuf *m, struct secpolicyindex *spidx)
738{
739
740 ipsec6_setsockaddrs(m, &spidx->src, &spidx->dst);
741 spidx->prefs = sizeof(struct in6_addr) << 3;
742 spidx->prefd = sizeof(struct in6_addr) << 3;
743}
744
745static struct secpolicy *
746ipsec6_getpolicy(const struct mbuf *m, struct inpcb *inp, u_int dir,

Callers 1

ipsec6_getpolicyFunction · 0.85

Calls 1

ipsec6_setsockaddrsFunction · 0.85

Tested by

no test coverage detected