Lines Matching refs:ifp
282 struct ifnet *ifp = NULL, *origifp = NULL;
356 ifp = dn_tag->dn_ifp;
357 if (ifp)
358 ifnet_reference(ifp);
918 if (ifp != NULL) {
919 ifnet_release(ifp);
920 ifp = NULL;
938 * in6_selectroute() might return an ifp with its reference held
942 &dst_sa, opt, im6o, ro, &ifp, &rt, 0, &ip6oa)) != 0) {
951 if (ifp != NULL)
952 in6_ifstat_inc(ifp, ifs6_out_discard);
953 /* ifp (if non-NULL) will be released at the end */
965 * then rt (for unicast) and ifp must be non-NULL valid values.
969 in6_ifstat_inc(ifp, ifs6_out_request);
991 if (ifp != NULL)
992 ifnet_reference(ifp); /* for origifp */
995 origifp = ifp;
1050 in6_ifstat_inc(ifp, ifs6_out_mcast);
1055 if ((ifp->if_flags & IFF_MULTICAST) == 0) {
1057 in6_ifstat_inc(ifp, ifs6_out_discard);
1062 IN6_LOOKUP_MULTI(&ip6->ip6_dst, ifp, in6m);
1075 ip6_mloopback(ifp, m, dst);
1101 if (ip6_mforward(ip6, ifp, m) != 0) {
1120 if (ip6->ip6_hlim == 0 || (ifp->if_flags & IFF_LOOPBACK) ||
1132 ifnet_reference(ifp); /* for caller */
1135 *ifpp = ifp;
1139 if ((error = ip6_getpmtu(ro_pmtu, ro, ifp, &finaldst, &mtu,
1182 if (ip6_fw_chk_ptr(&ip6, ifp, &port, &m)) {
1213 m->m_pkthdr.rcvif = ifp;
1235 args.fwa_oif = ifp;
1248 error = pf_af_hook(ifp, NULL, &m, AF_INET6, FALSE, &args);
1250 error = pf_af_hook(ifp, NULL, &m, AF_INET6, FALSE, NULL);
1303 ifmtu = IN6_LINKMTU(ifp);
1331 tso = (ifp->if_hwassist & IFNET_TSO_IPV6) &&
1334 (tlen <= mtu || tso || (ifp->if_hwassist & CSUM_FRAGMENT_IPV6)))) {
1347 ~IF_HWASSIST_CSUM_FLAGS(ifp->if_hwassist);
1355 error = nd6_output(ifp, origifp, m, dst, ro->ro_rt, adv);
1365 in6_ifstat_inc(ifp, ifs6_out_fragfail);
1370 in6_ifstat_inc(ifp, ifs6_out_fragfail);
1390 in6_ifstat_inc(ifp, ifs6_out_fragfail);
1475 in6_ifstat_inc(ifp, ifs6_out_fragcreat);
1478 in6_ifstat_inc(ifp, ifs6_out_fragok);
1503 error = nd6_output(ifp, origifp, m, dst, ro->ro_rt,
1535 if (ifp != NULL)
1536 ifnet_release(ifp);
1750 struct ifnet *ifp, struct in6_addr *dst, u_int32_t *mtup,
1775 ifp != NULL ? ifp->if_index : IFSCOPE_NONE);
1785 ifmtu = IN6_LINKMTU(ifp);
1820 if (ifp) {
1823 mtu = IN6_LINKMTU(ifp);
3168 struct ifnet *ifp = NULL;
3203 ifp = ifindex2ifnet[pktinfo->ipi6_ifindex];
3204 if (ifp == NULL) {
3513 struct ifnet *ifp,
3564 copym->m_pkthdr.rcvif = ifp;
3570 (void)if_simloop(ifp, copym, dst->sin6_family, NULL);