Lines Matching refs:mp
4727 pf_af_hook(struct ifnet *ifp, struct mbuf **mppn, struct mbuf **mp,
4744 VERIFY(*mppn == *mp);
4745 if ((nextpkt = (*mp)->m_nextpkt) != NULL)
4746 (*mp)->m_nextpkt = NULL;
4751 error = pf_inet_hook(ifp, mp, input, fwa);
4757 error = pf_inet6_hook(ifp, mp, input, fwa);
4765 if (*mp != NULL && nextpkt != NULL) {
4766 struct mbuf *m = *mp;
4773 if (*mp != NULL)
4774 *mppn = *mp;
4792 pf_inet_hook(struct ifnet *ifp, struct mbuf **mp, int input,
4795 struct mbuf *m = *mp;
4823 if (pf_test(input ? PF_IN : PF_OUT, ifp, mp, NULL, fwa) != PF_PASS) {
4824 if (*mp != NULL) {
4825 m_freem(*mp);
4826 *mp = NULL;
4834 if (*mp != NULL) {
4835 ip = mtod(*mp, struct ip *);
4847 pf_inet6_hook(struct ifnet *ifp, struct mbuf **mp, int input,
4859 if (!input && (*mp)->m_pkthdr.rcvif == NULL) {
4861 const int flags = (*mp)->m_pkthdr.csum_flags &
4865 in6_delayed_cksum(*mp, sizeof(struct ip6_hdr));
4866 (*mp)->m_pkthdr.csum_flags &= ~mask;
4870 if (pf_test6(input ? PF_IN : PF_OUT, ifp, mp, NULL, fwa) != PF_PASS) {
4871 if (*mp != NULL) {
4872 m_freem(*mp);
4873 *mp = NULL;