MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pf_check6_in

Function pf_check6_in

freebsd/netpfil/pf/pf_ioctl.c:4523–4539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4521
4522#ifdef INET6
4523static pfil_return_t
4524pf_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
4541static pfil_return_t
4542pf_check6_out(struct mbuf **m, struct ifnet *ifp, int flags,

Callers

nothing calls this directly

Calls 2

pf_test6Function · 0.85
pf_check_returnFunction · 0.85

Tested by

no test coverage detected