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

Function ipsec6_forward

freebsd/netipsec/ipsec_output.c:696–709  ·  view source on GitHub ↗

* IPSEC_FORWARD() method implementation for IPv6. * 0 - no IPsec handling needed * other values - mbuf consumed by IPsec. */

Source from the content-addressed store, hash-verified

694 * other values - mbuf consumed by IPsec.
695 */
696int
697ipsec6_forward(struct mbuf *m)
698{
699
700 /*
701 * Check if this packet has an active inbound SP and needs to be
702 * dropped instead of forwarded.
703 */
704 if (ipsec6_in_reject(m, NULL) != 0) {
705 m_freem(m);
706 return (EACCES);
707 }
708 return (ipsec6_common_output(m, NULL, 1));
709}
710#endif /* INET6 */
711
712int

Callers

nothing calls this directly

Calls 3

ipsec6_in_rejectFunction · 0.85
ipsec6_common_outputFunction · 0.85
m_freemFunction · 0.50

Tested by

no test coverage detected