void netif_rx(unsigned char* data, int len)
{
  if (the_interface != NULL) {
    netfront_input(the_interface, data, len);
    wake_up(&netfront_queue);
  }
  /* By returning, we ack the packet and relinquish the RX ring slot */
}
Beispiel #2
0
static int lwip_netif_rx(unsigned char* data, unsigned int len,
		void *private_data) {
	static int stat_recv = 0;
	stat_recv++;
	if (the_interface != NULL) {
		DEBUG("Sending packet to tcpip layer :%d\n", len);
		netfront_input(the_interface, data + 10, len);
	}
	DEBUG("%d bytes incoming at %x  stat_recv:%d\n", len, data, stat_recv);
	return 1;
}
Beispiel #3
0
void netif_rx(unsigned char* data, int len)
{
  //uint64_t nsec = monotonic_clock();
  if (the_interface != NULL) {
      netfront_input(the_interface, data, len);
      wake_up(&netfront_queue);
  }
  //printk("netif_rx\n----%ld-----\n", nsec); //farewellkou
  //printk("----%ld-----\n", nsec); //farewellkou
  /* By returning, we ack the packet and relinquish the RX ring slot */
}