Lines Matching refs:length
38 int length; member
359 int eth_send(void *packet, int length) in eth_send() argument
366 ret = eth_current->send(eth_current, packet, length); in eth_send()
369 pcap_post(packet, length, true); in eth_send()
383 static void eth_save_packet(void *packet, int length) in eth_save_packet() argument
391 if (PKTSIZE < length) in eth_save_packet()
394 for (i = 0; i < length; i++) in eth_save_packet()
397 eth_rcv_bufs[eth_rcv_last].length = length; in eth_save_packet()
401 int eth_receive(void *packet, int length) in eth_receive() argument
416 length = min(eth_rcv_bufs[eth_rcv_current].length, length); in eth_receive()
418 for (i = 0; i < length; i++) in eth_receive()
422 return length; in eth_receive()