|
Data Structures | |
struct | dumpdev_stats |
Functions | |
err_t | dumpdev_init (struct netif *) |
err_t | dumpdev_output (struct netif *, struct pbuf *, struct ip_addr *) |
err_t | dumpdev_netlink_output (struct netif *netif, struct pbuf *p) |
void | dumpdev_input (struct netif *) |
void | dumpdev_service (struct netif *) |
|
Initialize the dump network device This function must be called prior to any other operation with this device. It sets the device name, MAC address, initializes statistics and performs general configuration of the "dumpdev" device.
|
|
This function is used to transfer a received packet in newly allocated pbuf-memory and pass it to upper protocol layers. Note: this is the place where the dumped packets are injected and passed to higher protocol layers. It simulates the reception of a packet over the physical connection.
If there is no INBOUND packet in the input queue, inject a sample ESP packet to check the stacks behavior |
|
This function simulates the low-level network interface Note: This function does currently nothing but return ERR_OK
|
|
This function is used to send a packet out of the network device. Before dumping the frame (which is equivalent to sending data over the wire in a real Ethernet driver), the MAC address must be resolved using the ARP module. After the MAC address has been found, the packet will be "sent" (dumped). Note: this is the place where an automated check of outbound data can be added.
|
|
This function must be called at regular intervals (i.g. 20 times per second). It will allow the dump device driver to perform pending operations, such as emptying the transmit buffer or feeding newly received data into the TCP/IP stack.
|