38#ifndef PCAP_DRIVER_MAX_PACKET_SIZE
39 #define PCAP_DRIVER_MAX_PACKET_SIZE 1536
40#elif (PCAP_DRIVER_MAX_PACKET_SIZE < 1)
41 #error PCAP_DRIVER_MAX_PACKET_SIZE parameter is not valid
45#ifndef PCAP_DRIVER_QUEUE_SIZE
46 #define PCAP_DRIVER_QUEUE_SIZE 64
47#elif (PCAP_DRIVER_QUEUE_SIZE < 1)
48 #error PCAP_DRIVER_QUEUE_SIZE parameter is not valid
52#ifndef PCAP_DRIVER_TIMEOUT
53 #define PCAP_DRIVER_TIMEOUT 1
54#elif (PCAP_DRIVER_TIMEOUT < 1)
55 #error PCAP_DRIVER_TIMEOUT parameter is not valid
67error_t pcapDriverInit(NetInterface *interface);
69void pcapDriverTick(NetInterface *interface);
71void pcapDriverEnableIrq(NetInterface *interface);
72void pcapDriverDisableIrq(NetInterface *interface);
74void pcapDriverEventHandler(NetInterface *interface);
76error_t pcapDriverSendPacket(NetInterface *interface,
77 const NetBuffer *buffer,
size_t offset, NetTxAncillary *ancillary);
79error_t pcapDriverUpdateMacAddrFilter(NetInterface *interface);
81void pcapDriverTask(NetInterface *interface);
error_t
Error codes.
Definition error.h:43
Network interface controller abstraction layer.
Structure describing a buffer that spans multiple chunks.
Definition net_mem.h:89
NIC driver.
Definition nic.h:283