* Check IPv6 packet against inbound security policy. * This function is called from tcp6_input(), udp6_input(), * rip6_input() and sctp_input(). */
| 799 | * rip6_input() and sctp_input(). |
| 800 | */ |
| 801 | int |
| 802 | ipsec6_in_reject(const struct mbuf *m, struct inpcb *inp) |
| 803 | { |
| 804 | struct secpolicy *sp; |
| 805 | int result; |
| 806 | |
| 807 | sp = ipsec6_getpolicy(m, inp, IPSEC_DIR_INBOUND, 0); |
| 808 | result = ipsec_in_reject(sp, inp, m); |
| 809 | key_freesp(&sp); |
| 810 | if (result) |
| 811 | IPSEC6STAT_INC(ips_in_polvio); |
| 812 | return (result); |
| 813 | } |
| 814 | |
| 815 | /* |
| 816 | * IPSEC_CAP() method implementation for IPv6. |
no test coverage detected