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_STARTUP_SCRIPT

Host startup script

Type: string

Help

This option sets the name of the script that is run when the host TAP
network interface is created and setup script has been run.
The startup script could launch e.g., wireshark to capture
the network traffic for the freshly started network interface.
Note that the network interface name CONFIG_ETH_NATIVE_POSIX_DRV_NAME
is appended at the end of this startup script name.
Example script for starting wireshark is provided in
${ZEPHYR_BASE}/samples/net/eth_native_posix/net_start_wireshark.sh
file.

Direct dependencies

ETH_NATIVE_POSIX_STARTUP_AUTOMATIC && ETH_NATIVE_POSIX && NET_L2_ETHERNET

(Includes any dependencies from ifs and menus.)

Default

  • “”

Kconfig definition

At drivers/ethernet/Kconfig.native_posix:42

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

Menu path: (Top) → Device Drivers → Ethernet Drivers → Native Posix Ethernet driver → Start network interface automatically

config ETH_NATIVE_POSIX_STARTUP_SCRIPT
    string "Host startup script"
    default ""
    depends on ETH_NATIVE_POSIX_STARTUP_AUTOMATIC && ETH_NATIVE_POSIX && NET_L2_ETHERNET
    help
      This option sets the name of the script that is run when the host TAP
      network interface is created and setup script has been run.
      The startup script could launch e.g., wireshark to capture
      the network traffic for the freshly started network interface.
      Note that the network interface name CONFIG_ETH_NATIVE_POSIX_DRV_NAME
      is appended at the end of this startup script name.
      Example script for starting wireshark is provided in
      ${ZEPHYR_BASE}/samples/net/eth_native_posix/net_start_wireshark.sh
      file.

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