netdev_tap.h

Low-level ethernet driver for native tap interfaces.

Definitions for netdev ethernet driver for host system’s TAP interfaces

struct netdev_tap netdev_tap_t

tap interface state

void netdev_tap_setup(netdev_tap.h::netdev_tap_t * dev, const netdev_tap_params_t * params)

Setup netdev_tap_t structure.

Parameters

dev:the preallocated netdev_tap device handle to setup
params:initialization parameters

struct netdev_tap

tap interface state

netdev.h::netdev_t netdev

netdev internal member

char tap_name()

host dev file name

int tap_fd

host file descriptor for the TAP

uint8_t addr()

The MAC address of the TAP.

uint8_t promiscous

Flag for promiscous mode.

struct netdev_tap_params_t

tap interface initialization parameters

char ** tap_name

Name of the host system’s tap inteface to bind to.