Lines Matching defs:ifp
2352 u_int16_t rtag, struct ether_header *eh, struct ifnet *ifp)
2354 #pragma unused(eh, ifp)
7620 struct ifnet *ifp = NULL;
7667 ifp = ro->ro_rt->rt_ifp;
7685 ifp = r->rpool.cur->kif ?
7691 ifp = s->rt_kif ? s->rt_kif->pfik_ifp : NULL;
7694 if (ifp == NULL)
7697 if (oifp != ifp) {
7698 if (pf_test(PF_OUT, ifp, &m0, NULL, NULL) != PF_PASS)
7715 ~IF_HWASSIST_CSUM_FLAGS(ifp->if_hwassist);
7717 if (ifp->if_hwassist & CSUM_TCP_SUM16) {
7725 (ntohs(ip->ip_len) <= ifp->if_mtu)) {
7756 IF_HWASSIST_CSUM_FLAGS(ifp->if_hwassist);
7761 if (ntohs(ip->ip_len) <= ifp->if_mtu ||
7762 (ifp->if_hwassist & CSUM_FRAGMENT)) {
7766 error = ifnet_output(ifp, PF_INET, m0, ro->ro_rt, sintosa(dst));
7778 ifp->if_mtu);
7791 error = ip_fragment(m0, ifp, ifp->if_mtu, sw_csum);
7802 error = ifnet_output(ifp, PF_INET, m0, ro->ro_rt,
7835 struct ifnet *ifp = NULL;
7895 ifp = r->rpool.cur->kif ? r->rpool.cur->kif->pfik_ifp : NULL;
7900 ifp = s->rt_kif ? s->rt_kif->pfik_ifp : NULL;
7902 if (ifp == NULL)
7905 if (oifp != ifp) {
7906 if (pf_test6(PF_OUT, ifp, &m0, NULL, NULL) != PF_PASS)
7923 dst->sin6_addr.s6_addr16[1] = htons(ifp->if_index);
7924 if ((unsigned)m0->m_pkthdr.len <= ifp->if_mtu) {
7925 error = nd6_output(ifp, ifp, m0, dst, NULL, NULL);
7927 in6_ifstat_inc(ifp, ifs6_in_toobig);
7929 icmp6_error(m0, ICMP6_PACKET_TOO_BIG, 0, ifp->if_mtu);
8046 pf_test(int dir, struct ifnet *ifp, struct mbuf **m0,
8079 kif = (struct pfi_kif *)ifp->if_pf_kif;
8083 ("pf_test: kif == NULL, if_name %s\n", ifp->if_name));
8580 pf_test6(int dir, struct ifnet *ifp, struct mbuf **m0,
8614 kif = (struct pfi_kif *)ifp->if_pf_kif;
8618 ("pf_test6: kif == NULL, if_name %s\n", ifp->if_name));