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

Function ipsec6_output

freebsd/netipsec/ipsec_output.c:676–689  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

674 * other values - mbuf consumed by IPsec.
675 */
676int
677ipsec6_output(struct mbuf *m, struct inpcb *inp)
678{
679
680 /*
681 * If the packet is resubmitted to ip_output (e.g. after
682 * AH, ESP, etc. processing), there will be a tag to bypass
683 * the lookup and related policy checking.
684 */
685 if (m_tag_find(m, PACKET_TAG_IPSEC_OUT_DONE, NULL) != NULL)
686 return (0);
687
688 return (ipsec6_common_output(m, inp, 0));
689}
690
691/*
692 * IPSEC_FORWARD() method implementation for IPv6.

Callers

nothing calls this directly

Calls 2

ipsec6_common_outputFunction · 0.85
m_tag_findFunction · 0.50

Tested by

no test coverage detected