This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_ETH_NATIVE_POSIX_DEV_NAME

Host ethernet TUN/TAP device name

Type: string

Help

This option sets the TUN/TAP device name in your host system.

Direct dependencies

ETH_NATIVE_POSIX && NET_L2_ETHERNET

(Includes any dependencies from ifs and menus.)

Default

  • “/dev/net/tun”

Kconfig definition

At drivers/ethernet/Kconfig.native_posix:88

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:20drivers/ethernet/Kconfig:54

Menu path: (Top) → Device Drivers → Ethernet Drivers → Native Posix Ethernet driver

config ETH_NATIVE_POSIX_DEV_NAME
    string "Host ethernet TUN/TAP device name"
    default "/dev/net/tun"
    depends on ETH_NATIVE_POSIX && NET_L2_ETHERNET
    help
      This option sets the TUN/TAP device name in your host system.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)