76#include "netif/ppp/pppoe.h"
94static void ethernetif_input(
struct netif *
netif);
123#if LWIP_IPV6 && LWIP_IPV6_MLD
129 if (
netif->mld_mac_filter != NULL) {
130 ip6_addr_t ip6_allnodes_ll;
131 ip6_addr_set_allnodes_linklocal(&ip6_allnodes_ll);
167 for (q = p; q != NULL; q = q->
next) {
174 signal that packet should be sent();
177 if (((u8_t*)p->
payload)[0] & 1) {
179 MIB2_STATS_NETIF_INC(
netif, ifoutnucastpkts);
182 MIB2_STATS_NETIF_INC(
netif, ifoutucastpkts);
190 LINK_STATS_INC(link.xmit);
229 for (q = p; q != NULL; q = q->
next) {
240 acknowledge that packet has been read();
243 if (((u8_t*)p->
payload)[0] & 1) {
245 MIB2_STATS_NETIF_INC(
netif, ifinnucastpkts);
248 MIB2_STATS_NETIF_INC(
netif, ifinucastpkts);
254 LINK_STATS_INC(link.recv);
257 LINK_STATS_INC(link.memerr);
258 LINK_STATS_INC(link.drop);
259 MIB2_STATS_NETIF_INC(
netif, ifindiscards);
277 struct ethernetif *ethernetif;
284 p = low_level_input(
netif);
311 struct ethernetif *ethernetif;
313 LWIP_ASSERT(
"netif != NULL", (
netif != NULL));
315 ethernetif =
mem_malloc(
sizeof(
struct ethernetif));
316 if (ethernetif == NULL) {
321#if LWIP_NETIF_HOSTNAME
323 netif->hostname =
"lwip";
331 MIB2_INIT_NETIF(
netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS);
340 netif->output = etharp_output;
342 netif->output_ip6 = ethip6_output;
349 low_level_init(
netif);
#define LWIP_DEBUGF(debug, message)
#define NETIF_FLAG_LINK_UP
#define NETIF_FLAG_ETHARP
#define NETIF_FLAG_BROADCAST
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
u8_t pbuf_free(struct pbuf *p)
void * mem_malloc(mem_size_t size)
u8_t pbuf_header(struct pbuf *p, s16_t header_size_increment)
u8_t hwaddr[NETIF_MAX_HWADDR_LEN]
netif_linkoutput_fn linkoutput