14 if(!queue_try_put(&
queue,
p)) {
28 int unicast = ((
p->payload[0] & 0x01) == 0);
46 printf(
"netif status changed %s\n", ip4addr_ntoa(netif_ip4_addr(
netif)));
53 netif->output = etharp_output;
54 netif->output_ip6 = ethip6_output;
75 netif_create_ip6_linklocal_address(&
netif, 1);
86 if(link_state_changed()) {
104 int unicast = ((
p->payload[0] & 0x01) == 0);
117 sys_check_timeouts();
static void netif_status_callback(struct netif *netif)
static err_t netif_output(struct netif *netif, struct pbuf *p)
#define MIB2_STATS_NETIF_ADD(n, x, val)
#define MIB2_STATS_NETIF_INC(n, x)
#define MIB2_INIT_NETIF(netif, type, speed)
err_t netif_input(struct pbuf *p, struct netif *inp)
#define SMEMCPY(dst, src, len)
#define NETIF_FLAG_ETHERNET
#define NETIF_FLAG_ETHARP
#define NETIF_FLAG_BROADCAST
void netif_set_link_down(struct netif *netif)
struct netif * netif_add(struct netif *netif, void *state, netif_init_fn init, netif_input_fn input)
void netif_set_default(struct netif *netif)
void netif_set_link_up(struct netif *netif)
void netif_set_up(struct netif *netif)
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
u8_t pbuf_free(struct pbuf *p)
u16_t pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len)
#define LINK_STATS_INC(x)
u8_t hwaddr[NETIF_MAX_HWADDR_LEN]
netif_linkoutput_fn linkoutput