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

Function ipsec4_setspidx_ipaddr

freebsd/netipsec/ipsec.c:567–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567static void
568ipsec4_setspidx_ipaddr(const struct mbuf *m, struct secpolicyindex *spidx)
569{
570
571 ipsec4_setsockaddrs(m, &spidx->src, &spidx->dst);
572 spidx->prefs = sizeof(struct in_addr) << 3;
573 spidx->prefd = sizeof(struct in_addr) << 3;
574}
575
576static struct secpolicy *
577ipsec4_getpolicy(const struct mbuf *m, struct inpcb *inp, u_int dir,

Callers 1

ipsec4_getpolicyFunction · 0.85

Calls 1

ipsec4_setsockaddrsFunction · 0.85

Tested by

no test coverage detected