Lines Matching defs:ifp
240 struct ifnet *ifp = NULL;
292 ifp = dn_tag->ifp;
477 ifp = ia->ia_ifp;
479 isbroadcast = in_broadcast(dst->sin_addr, ifp);
486 ifp = imo->imo_multicast_ifp;
493 ia != NULL && ia->ia_ifp != ifp;
602 ifp = ro->ro_rt->rt_ifp;
609 isbroadcast = in_broadcast(dst->sin_addr, ifp);
628 ifp = imo->imo_multicast_ifp;
642 if ((ifp->if_flags & IFF_MULTICAST) == 0) {
656 if (ia1->ia_ifp == ifp) {
668 ifnet_lock_shared(ifp);
669 IN_LOOKUP_MULTI(pkt_dst, ifp, inm);
670 ifnet_lock_done(ifp);
722 ip_mloopback(ifp, m, dst, hlen);
747 if (ip_mforward(ip, ifp, m, imo) != 0) {
763 if (ip->ip_ttl == 0 || ifp->if_flags & IFF_LOOPBACK) {
794 if ((ifp->if_flags & IFF_BROADCAST) == 0) {
803 if ((u_short)ip->ip_len > ifp->if_mtu) {
1015 ifp = ro->ro_rt->rt_ifp;
1070 if ((error = (*fr_checkp)(ip, hlen, ifp, 1, &m1)) || !m1) {
1085 args.oif = ifp;
1120 * pipe number, m, ifp, ro, dst because these are
1124 * XXX note: if the ifp or ro entry are deleted
1262 printf("ip_output: no loopback ifp for forwarding!!!\n");
1286 ifp = ro_fwd->ro_rt->rt_ifp;
1294 isbroadcast = in_broadcast(dst->sin_addr, ifp);
1323 if ((ifp->if_flags & IFF_LOOPBACK) == 0 &&
1341 & ~IF_HWASSIST_CSUM_FLAGS(ifp->if_hwassist);
1343 if ((ifp->if_hwassist & CSUM_TCP_SUM16) != 0) {
1350 && (ip->ip_len > 50) && (ip->ip_len <= ifp->if_mtu)) {
1376 IF_HWASSIST_CSUM_FLAGS(ifp->if_hwassist);
1385 if ((u_short)ip->ip_len <= ifp->if_mtu ||
1386 ifp->if_hwassist & CSUM_FRAGMENT) {
1414 error = ifnet_output(ifp, PF_INET, m, rte,
1430 error = ifnet_output(ifp, PF_INET, packetlist,
1460 && (ro->ro_rt->rt_rmx.rmx_mtu > ifp->if_mtu)) {
1461 ro->ro_rt->rt_rmx.rmx_mtu = ifp->if_mtu;
1467 len = (ifp->if_mtu - hlen) &~ 7;
1478 (ifp->if_hwassist & CSUM_IP_FRAGS) == 0) {
1591 error = ifnet_output(ifp, PF_INET, m, rte,
2072 ifnet_t ifp;
2081 if (ifnet_find_by_name(ifname, &ifp) != 0) {
2087 ifscope = ifp->if_index;
2093 ifnet_release(ifp);
2472 struct ifnet *ifp;
2483 ifp = ifindex2ifnet[ifindex];
2488 INADDR_TO_IFP(*a, ifp);
2490 return ifp;
2505 struct ifnet *ifp = NULL;
2560 ifp = ip_multicast_if(&addr, &ifindex);
2561 if (ifp == NULL || (ifp->if_flags & IFF_MULTICAST) == 0) {
2565 imo->imo_multicast_ifp = ifp;
2699 struct ifnet *ifp = NULL;
2720 ifp = ro.ro_rt->rt_ifp;
2730 if (ifp == NULL) {
2731 ifp = ip_multicast_if(&mreq->imr_interface, NULL);
2738 if (ifp == NULL || (ifp->if_flags & IFF_MULTICAST) == 0) {
2747 if (imo->imo_membership[i]->inm_ifp == ifp &&
2765 in_addmulti(&mreq->imr_multiaddr, ifp)) == NULL) {
2783 struct ifnet* ifp = NULL;
2796 ifp = NULL;
2798 ifp = ip_multicast_if(&mreq->imr_interface, NULL);
2799 if (ifp == NULL) {
2808 if ((ifp == NULL ||
2809 imo->imo_membership[i]->inm_ifp == ifp) &&
2925 ip_mloopback(ifp, m, dst, hlen)
2926 struct ifnet *ifp;
2973 * This is done this way because we have to embed the ifp of
2976 * embedded ifp and ignore all csum_flags if if_hwassist is 0.
2980 if (!sw_csum && IF_HWASSIST_CSUM_FLAGS(ifp->if_hwassist)) {
2999 * Stuff the 'real' ifp into the pkthdr, to be used in matching
3000 * in ip_input(); we need the loopback ifp/dl_tag passed as args
3005 copym->m_pkthdr.rcvif = ifp;