Low-level ethernet driver for native tap interfaces. More...
Low-level ethernet driver for native tap interfaces.
Definitions for netdev ethernet driver for host system's TAP interfaces
Definition in file netdev_tap.h.
#include <stdint.h>
#include <stdbool.h>
#include "net/netdev.h"
#include "net/ethernet/hdr.h"
#include "net/if.h"
Go to the source code of this file.
Data Structures | |
struct | netdev_tap |
tap interface state More... | |
struct | netdev_tap_params_t |
tap interface initialization parameters More... | |
typedef struct netdev_tap | netdev_tap_t |
tap interface state | |
void | netdev_tap_setup (netdev_tap_t *dev, const netdev_tap_params_t *params, int index) |
Setup netdev_tap_t structure. | |
void netdev_tap_setup | ( | netdev_tap_t * | dev, |
const netdev_tap_params_t * | params, | ||
int | index | ||
) |
Setup netdev_tap_t structure.
dev | the preallocated netdev_tap device handle to setup |
params | initialization parameters |
index | Index of params in a global parameter struct array. If initialized manually, pass a unique identifier instead. |