The latest development version of this page may be more current than this released 2.7.5 version.

CONFIG_NET_MAX_ROUTERS

How many routers are supported

Type: int

Help

The value depends on your network needs.

Direct dependencies

!NET_RAW_MODE && NETWORKING

(Includes any dependencies from ifs and menus.)

Defaults

Kconfig definition

At subsys/net/ip/Kconfig:280

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:39subsys/net/Kconfig:89

Menu path: (Top) → Sub Systems and OS Services → Networking → Link layer and IP networking support → IP stack

config NET_MAX_ROUTERS
    int "How many routers are supported"
    range 1 254
    default 2 if NET_IPV4 && NET_IPV6
    default 1 if NET_IPV4 && !NET_IPV6
    default 1 if !NET_IPV4 && NET_IPV6
    depends on !NET_RAW_MODE && NETWORKING
    help
      The value depends on your network needs.

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