Lines Matching defs:ifp
269 struct ifnet *ifp = NULL;
339 ifp = dn_tag->dn_ifp;
598 ifp = ia->ia_ifp;
600 isbroadcast = in_broadcast(dst->sin_addr, ifp);
602 imo != NULL && (ifp = imo->imo_multicast_ifp) != NULL) {
612 IFP_TO_IA(ifp, ia);
760 ifp = ro->ro_rt->rt_ifp;
771 isbroadcast = in_broadcast(dst->sin_addr, ifp);
800 ifp = imo->imo_multicast_ifp;
815 if ((ifp->if_flags & IFF_MULTICAST) == 0) {
830 if (ia1->ia_ifp == ifp) {
845 IN_LOOKUP_MULTI(&pkt_dst, ifp, inm);
859 ipf_pktopts.ippo_mcast_ifnet = ifp;
904 ip_mloopback(ifp, m, dst, hlen);
929 if (ip_mforward(ip, ifp, m, imo) != 0) {
949 if (ip->ip_ttl == 0 || ifp->if_flags & IFF_LOOPBACK) {
980 if ((ifp->if_flags & IFF_BROADCAST) == 0) {
989 if ((u_short)ip->ip_len > ifp->if_mtu) {
1008 args.fwa_oif = ifp;
1014 rc = pf_af_hook(ifp, mppn, &m, AF_INET, FALSE, &args);
1016 rc = pf_af_hook(ifp, mppn, &m, AF_INET, FALSE, NULL);
1185 struct ip *, ip, struct ifnet *, ifp,
1272 ifp = ro->ro_rt->rt_ifp;
1347 args.fwa_oif = ifp;
1382 * pipe number, m, ifp, ro, dst because these are
1386 * XXX note: if the ifp or ro entry are deleted
1537 printf("ip_output: no loopback ifp for forwarding!!!\n");
1565 ifp = ro_fwd->ro_rt->rt_ifp;
1575 isbroadcast = in_broadcast(dst->sin_addr, ifp);
1611 if ((ifp->if_flags & IFF_LOOPBACK) == 0 &&
1628 tso = (ifp->if_hwassist & IFNET_TSO_IPV4) && (m->m_pkthdr.csum_flags & CSUM_TSO_IPV4);
1631 & ~IF_HWASSIST_CSUM_FLAGS(ifp->if_hwassist);
1633 if ((ifp->if_hwassist & CSUM_TCP_SUM16) != 0) {
1640 && (ip->ip_len > 50) && (ip->ip_len <= ifp->if_mtu)) {
1665 IF_HWASSIST_CSUM_FLAGS(ifp->if_hwassist);
1674 if ((u_short)ip->ip_len <= ifp->if_mtu || tso ||
1675 ifp->if_hwassist & CSUM_FRAGMENT) {
1706 error = dlil_output(ifp, PF_INET, m, ro->ro_rt,
1723 error = dlil_output(ifp, PF_INET, packetlist,
1754 && (ro->ro_rt->rt_rmx.rmx_mtu > ifp->if_mtu)) {
1755 ro->ro_rt->rt_rmx.rmx_mtu = ifp->if_mtu;
1766 error = ip_fragment(m, ifp, ifp->if_mtu, sw_csum);
1795 error = dlil_output(ifp, PF_INET, m, ro->ro_rt,
1829 ip_fragment(struct mbuf *m, struct ifnet *ifp, unsigned long mtu, int sw_csum)
1854 (ifp->if_hwassist & CSUM_IP_FRAGS) == 0) {
2422 ifnet_t ifp;
2431 if (ifnet_find_by_name(ifname, &ifp) != 0) {
2437 ifscope = ifp->if_index;
2443 ifnet_release(ifp);
2989 ip_mloopback(ifp, m, dst, hlen)
2990 struct ifnet *ifp;
3041 * This is done this way because we have to embed the ifp of
3044 * embedded ifp and ignore all csum_flags if if_hwassist is 0.
3048 if (!sw_csum && IF_HWASSIST_CSUM_FLAGS(ifp->if_hwassist)) {
3075 * Stuff the 'real' ifp into the pkthdr, to be used in matching
3076 * in ip_input(); we need the loopback ifp/dl_tag passed as args
3081 copym->m_pkthdr.rcvif = ifp;