* IPSEC_FORWARD() method implementation for IPv4. * 0 - no IPsec handling needed * other values - mbuf consumed by IPsec. */
| 389 | * other values - mbuf consumed by IPsec. |
| 390 | */ |
| 391 | int |
| 392 | ipsec4_forward(struct mbuf *m) |
| 393 | { |
| 394 | |
| 395 | /* |
| 396 | * Check if this packet has an active inbound SP and needs to be |
| 397 | * dropped instead of forwarded. |
| 398 | */ |
| 399 | if (ipsec4_in_reject(m, NULL) != 0) { |
| 400 | m_freem(m); |
| 401 | return (EACCES); |
| 402 | } |
| 403 | return (ipsec4_common_output(m, NULL, 1)); |
| 404 | } |
| 405 | #endif |
| 406 | |
| 407 | #ifdef INET6 |
nothing calls this directly
no test coverage detected