Lines Matching defs:netif
45 #include "netif/ethernet.h"
54 #include "netif/ppp/ppp_opts.h"
56 #include "netif/ppp/pppoe.h"
71 * Don't call directly, pass to netif_add() and call netif->input().
74 * @param netif the network interface on which the packet was received
81 ethernet_input(struct pbuf *p, struct netif *netif)
95 MIB2_STATS_NETIF_INC(netif, ifinerrors);
100 p->if_idx = netif_get_index(netif);
122 MIB2_STATS_NETIF_INC(netif, ifinerrors);
127 if (!LWIP_HOOK_VLAN_CHECK(netif, ethhdr, vlan)) {
143 netif = LWIP_ARP_FILTER_NETIF_FN(p, netif, lwip_htons(type));
174 if (!(netif->flags & NETIF_FLAG_ETHARP)) {
186 ip4_input(p, netif);
191 if (!(netif->flags & NETIF_FLAG_ETHARP)) {
205 etharp_input(p, netif);
211 pppoe_disc_input(netif, p);
215 pppoe_data_input(netif, p);
229 ip6_input(p, netif);
236 if (LWIP_HOOK_UNKNOWN_ETH_PROTOCOL(p, netif) == ERR_OK) {
242 MIB2_STATS_NETIF_INC(netif, ifinunknownprotos);
257 * Send an ethernet packet on the network using netif->linkoutput().
262 * @param netif the lwIP network interface on which to send the packet
270 ethernet_output(struct netif * netif, struct pbuf * p,
277 s32_t vlan_prio_vid = LWIP_HOOK_VLAN_SET(netif, p, src, dst, eth_type);
306 LWIP_ASSERT("netif->hwaddr_len must be 6 for ethernet_output!",
307 (netif->hwaddr_len == ETH_HWADDR_LEN));
312 return netif->linkoutput(netif, p);