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

Network management socket

Browse source code on GitHub

Overview

The net-mgmt-socket sample application for Zephyr implements a listener for network management events that the networking subsystem is sending.

The source code for this sample application can be found at: samples/net/sockets/net_mgmt.

Requirements

Building and Running

There are multiple ways to use this application. One of the most common usage scenario is to run echo-server application inside QEMU. This is described in Networking with QEMU.

Build net-mgmt socket sample application like this:

west build -b <board to use> samples/net/sockets/net_mgmt -- -DCONF_FILE=<config file to use>

Example building for the native_sim board:

west build -b native_sim samples/net/sockets/net_mgmt -- -DCONF_FILE=prj.conf
west build -t run

See also

BSD Sockets compatible API
Network Interface abstraction layer