Lines Matching defs:eth_if
927 struct ifnet *eth_if;
931 if ((eth_if = if_get(sc->sc_eth_ifidx)) == NULL) {
936 if ((eth_if->if_flags & (IFF_UP|IFF_RUNNING))
938 if_put(eth_if);
957 m->m_pkthdr.ph_rtableid = eth_if->if_rdomain;
959 ret = eth_if->if_output(eth_if, m, &dst, NULL);
960 if_put(eth_if);
971 struct ifnet *eth_if;
983 struct ifnet *eth_if;
985 eth_if = if_unit(parms->eth_ifname);
986 if (eth_if == NULL || eth_if->if_type != IFT_ETHER) {
987 if_put(eth_if);
993 eth_if->if_mtu - PPPOE_OVERHEAD) {
994 sc->sc_sppp.pp_if.if_mtu = eth_if->if_mtu -
997 sc->sc_eth_ifidx = eth_if->if_index;
998 if_put(eth_if);
1035 if ((eth_if = if_get(sc->sc_eth_ifidx)) != NULL) {
1036 strlcpy(parms->eth_ifname, eth_if->if_xname,
1038 if_put(eth_if);
1093 eth_if = if_get(sc->sc_eth_ifidx);
1096 (eth_if == NULL ? PPPOE_MAXMTU :
1097 (eth_if->if_mtu - PPPOE_OVERHEAD))))
1102 if_put(eth_if);
1481 struct ifnet *eth_if;
1486 if ((eth_if = if_get(ifidx)) == NULL)
1491 if_put(eth_if);
1507 m0->m_pkthdr.ph_rtableid = eth_if->if_rdomain;
1509 ret = eth_if->if_output(eth_if, m0, &dst, NULL);
1510 if_put(eth_if);