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

Function ipsec4_output

freebsd/netipsec/ipsec_output.c:371–384  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

369 * other values - mbuf consumed by IPsec.
370 */
371int
372ipsec4_output(struct mbuf *m, struct inpcb *inp)
373{
374
375 /*
376 * If the packet is resubmitted to ip_output (e.g. after
377 * AH, ESP, etc. processing), there will be a tag to bypass
378 * the lookup and related policy checking.
379 */
380 if (m_tag_find(m, PACKET_TAG_IPSEC_OUT_DONE, NULL) != NULL)
381 return (0);
382
383 return (ipsec4_common_output(m, inp, 0));
384}
385
386/*
387 * IPSEC_FORWARD() method implementation for IPv4.

Callers

nothing calls this directly

Calls 2

ipsec4_common_outputFunction · 0.85
m_tag_findFunction · 0.50

Tested by

no test coverage detected