CONFIG_ETH_NATIVE_POSIX_SETUP_SCRIPT

Host setup script

Type: string

Help

This option sets the name of the script that is run when the host TAP network interface is created. The script should setup IP addresses etc. for the host TAP network interface. The default script accepts following options: -i|–interface <network interface name>, default is zeth -f|–file <config file name>, default is net_setup_host.conf If needed, you can add these options to this script name option. Note that the driver will add -i option with the value of CONFIG_ETH_NATIVE_POSIX_DRV_NAME option to the end of the options list when calling the host setup script.

Direct dependencies

ETH_NATIVE_POSIX

(Includes any dependencies from if’s and menus.)

Defaults

  • “/home/nashif/Work/github/zephyr/samples/net/eth_native_posix/net_setup_host” if ETH_NATIVE_POSIX

Kconfig definition

At drivers/ethernet/Kconfig.native_posix:15

Included via Kconfig:10Kconfig.zephyr:29drivers/Kconfig:18drivers/ethernet/Kconfig:40

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

config ETH_NATIVE_POSIX_SETUP_SCRIPT
    string
    prompt "Host setup script" if ETH_NATIVE_POSIX
    default "/home/nashif/Work/github/zephyr/samples/net/eth_native_posix/net_setup_host" if ETH_NATIVE_POSIX
    depends on ETH_NATIVE_POSIX
    help
      This option sets the name of the script that is run when the host TAP
      network interface is created. The script should setup IP addresses
      etc. for the host TAP network interface.
      The default script accepts following options:
      -i|--interface <network interface name>, default is zeth
      -f|--file <config file name>, default is net_setup_host.conf
      If needed, you can add these options to this script name option.
      Note that the driver will add -i option with the value of
      CONFIG_ETH_NATIVE_POSIX_DRV_NAME option to the end of the options
      list when calling the host setup script.

(Definitions include propagated dependencies, including from if’s and menus.)