Lines Matching refs:ifp
172 struct ifnet *ifp, *origifp;
637 * ifp must point it.
651 /* XXX in6_ifstat_inc(ifp, ifs6_out_discard); */
655 ifp = ro->ro_rt->rt_ifp;
662 in6_ifstat_inc(ifp, ifs6_out_request);
673 if (!(ifp->if_flags & IFF_LOOPBACK)
674 && ifp->if_index != opt->ip6po_pktinfo->ipi6_ifindex) {
676 in6_ifstat_inc(ifp, ifs6_out_discard);
693 ifp = NULL;
697 ifp = im6o->im6o_multicast_ifp;
707 ifp = ifindex2ifnet[opt->ip6po_pktinfo->ipi6_ifindex];
718 if (ifp && (ifp->if_flags & IFF_LOOPBACK) == 0) {
721 /* XXX correct ifp? */
722 in6_ifstat_inc(ifp, ifs6_out_discard);
725 ifp = lo_ifp;
739 if (ifp == NULL) {
749 /* XXX in6_ifstat_inc(ifp, ifs6_out_discard) */
753 ifp = ro->ro_rt->rt_ifp;
759 in6_ifstat_inc(ifp, ifs6_out_request);
760 in6_ifstat_inc(ifp, ifs6_out_mcast);
765 if ((ifp->if_flags & IFF_MULTICAST) == 0) {
767 in6_ifstat_inc(ifp, ifs6_out_discard);
771 ifnet_lock_shared(ifp);
772 IN6_LOOKUP_MULTI(ip6->ip6_dst, ifp, in6m);
773 ifnet_lock_done(ifp);
781 ip6_mloopback(ifp, m, dst);
796 if (ip6_mforward(ip6, ifp, m) != 0) {
810 if (ip6->ip6_hlim == 0 || (ifp->if_flags & IFF_LOOPBACK)) {
821 *ifpp = ifp;
846 u_int32_t ifmtu = IN6_LINKMTU(ifp);
866 mtu = IN6_LINKMTU(ifp);
876 if ((ifp->if_flags & IFF_LOOPBACK) != 0) {
909 origifp = ifp;
912 origifp = ifp;
929 if (ip6_fw_chk_ptr(&ip6, ifp, &port, &m)) {
960 m->m_pkthdr.rcvif = ifp;
991 || ifp->if_flags & IFF_FRAGMENTABLE
1007 error = nd6_output(ifp, origifp, m, dst, ro->ro_rt, 1);
1015 in6_ifstat_inc(ifp, ifs6_out_fragfail);
1019 in6_ifstat_inc(ifp, ifs6_out_fragfail);
1039 in6_ifstat_inc(ifp, ifs6_out_fragfail);
1115 in6_ifstat_inc(ifp, ifs6_out_fragcreat);
1118 in6_ifstat_inc(ifp, ifs6_out_fragok);
1143 error = nd6_output(ifp, origifp, m, dst, ro->ro_rt, 1);
1985 struct ifnet *ifp;
2037 ifp = ifindex2ifnet[ifindex];
2038 if (ifp == NULL || (ifp->if_flags & IFF_MULTICAST) == 0) {
2042 im6o->im6o_multicast_ifp = ifp;
2043 imo->imo_multicast_ifp = ifp;
2127 ifp = ifindex2ifnet[mreq->ipv6mr_interface];
2131 if (ifa->ia_ifp == ifp) {
2164 ifp = lo_ifp;
2177 ifp = ro.ro_rt->rt_ifp;
2182 ifp = ifindex2ifnet[mreq->ipv6mr_interface];
2188 if (ifp == NULL || (ifp->if_flags & IFF_MULTICAST) == 0) {
2206 if (imm->i6mm_maddr->in6m_ifp == ifp &&
2226 in6_addmulti(&mreq->ipv6mr_multiaddr, ifp, &error, 1)) == NULL) {
2254 ifp = ifindex2ifnet[mreq->ipv6mr_interface];
2267 if (ifp != NULL) {
2272 if (ifa->ia_ifp == ifp) {
2300 if ((ifp == NULL ||
2301 imm->i6mm_maddr->in6m_ifp == ifp) &&
2648 struct ifnet *ifp,
2697 copym->m_pkthdr.rcvif = ifp;
2704 (void)if_simloop(ifp, copym, dst->sin6_family, NULL);