Go to the documentation of this file.
31 #ifndef _PCAP_DRIVER_H
32 #define _PCAP_DRIVER_H
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
void pcapDriverTask(NetInterface *interface)
PCAP receive task.
Structure describing a buffer that spans multiple chunks.
void pcapDriverTick(NetInterface *interface)
PCAP timer handler.
void pcapDriverEnableIrq(NetInterface *interface)
Enable interrupts.
const NicDriver pcapDriver
PCAP driver.
error_t pcapDriverInit(NetInterface *interface)
PCAP driver initialization.
Network interface controller abstraction layer.
void pcapDriverEventHandler(NetInterface *interface)
PCAP event handler.
error_t pcapDriverUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
void pcapDriverDisableIrq(NetInterface *interface)
Disable interrupts.
error_t pcapDriverSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.