| 4521 | |
| 4522 | #ifdef INET6 |
| 4523 | static pfil_return_t |
| 4524 | pf_check6_in(struct mbuf **m, struct ifnet *ifp, int flags, |
| 4525 | void *ruleset __unused, struct inpcb *inp) |
| 4526 | { |
| 4527 | int chk; |
| 4528 | |
| 4529 | /* |
| 4530 | * In case of loopback traffic IPv6 uses the real interface in |
| 4531 | * order to support scoped addresses. In order to support stateful |
| 4532 | * filtering we have change this to lo0 as it is the case in IPv4. |
| 4533 | */ |
| 4534 | CURVNET_SET(ifp->if_vnet); |
| 4535 | chk = pf_test6(PF_IN, flags, (*m)->m_flags & M_LOOP ? V_loif : ifp, m, inp); |
| 4536 | CURVNET_RESTORE(); |
| 4537 | |
| 4538 | return (pf_check_return(chk, m)); |
| 4539 | } |
| 4540 | |
| 4541 | static pfil_return_t |
| 4542 | pf_check6_out(struct mbuf **m, struct ifnet *ifp, int flags, |
nothing calls this directly
no test coverage detected