CONFIG_NET_SOCKETS_NET_MGMT_MAX_LISTENERS

Max number of sockets to listen

Type: int

Help

This sets the maximum number of net_mgmt sockets that can be set by the socket interface. So if you have two separate sockets that are used for listening events, you need to set this to two.

Direct dependencies

NET_SOCKETS_NET_MGMT && NET_SOCKETS && NETWORKING

(Includes any dependencies from ifs and menus.)

Default

  • 1

Kconfig definition

At subsys/net/lib/sockets/Kconfig:150

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:22subsys/net/Kconfig:82subsys/net/lib/Kconfig:28

Menu path: (Top) → Networking → Link layer and IP networking support → Network Libraries → BSD Sockets compatible API → Enable network management socket support [EXPERIMENTAL]

config NET_SOCKETS_NET_MGMT_MAX_LISTENERS
    int "Max number of sockets to listen"
    default 1
    depends on NET_SOCKETS_NET_MGMT && NET_SOCKETS && NETWORKING
    help
      This sets the maximum number of net_mgmt sockets that can
      be set by the socket interface. So if you have two separate
      sockets that are used for listening events, you need to set
      this to two.

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