* IPSEC_OUTPUT() method implementation for IPv6. * 0 - no IPsec handling needed * other values - mbuf consumed by IPsec. */
| 674 | * other values - mbuf consumed by IPsec. |
| 675 | */ |
| 676 | int |
| 677 | ipsec6_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. |
nothing calls this directly
no test coverage detected