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 <Zephyr>/drivers/ethernet/Kconfig.native_posix:42

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:42<Zephyr>/drivers/Kconfig:20<Zephyr>/drivers/ethernet/Kconfig:55

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.)