/* Polls the serial device and feeds the IP layer with incoming packets. */
void slipif_poll(struct netif *netif)
/* Polls the serial device and feeds the IP layer with incoming packets. */
void slipif_poll(struct netif *netif)
{
  u8_t c;
  struct slipif_priv *priv;
  LWIP_ASSERT("netif != NULL", (netif != NULL));
  LWIP_ASSERT("netif->state != NULL", (netif->state != NULL));
  priv = (struct slipif_priv *)netif->state;
  while (sio_tryread(priv->sd, &c, 1) > 0) {
    slipif_rxbyte_input(netif, c);
  }
}