* IPSEC_OUTPUT() method implementation for IPv4. * 0 - no IPsec handling needed * other values - mbuf consumed by IPsec. */
| 369 | * other values - mbuf consumed by IPsec. |
| 370 | */ |
| 371 | int |
| 372 | ipsec4_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. |
nothing calls this directly
no test coverage detected