* IPSEC_FORWARD() method implementation for IPv6. * 0 - no IPsec handling needed * other values - mbuf consumed by IPsec. */
| 694 | * other values - mbuf consumed by IPsec. |
| 695 | */ |
| 696 | int |
| 697 | ipsec6_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 | |
| 712 | int |
nothing calls this directly
no test coverage detected