zephyr/samples/net/sockets/net_mgmt
Alberto Escolar Piedras d0f554dd6a docs: networing: Replace references to native_posix w native_sim
Let's replace the references to native_posix with native_sim.

Background: during this release native_sim is replacing
native_posix as the main host test/development platform.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-11-15 10:03:17 +01:00
..
src samples: fix thread function signatures 2023-10-30 12:24:34 +01:00
CMakeLists.txt
prj.conf
README.rst docs: networing: Replace references to native_posix w native_sim 2023-11-15 10:03:17 +01:00
sample.yaml

.. zephyr:code-sample:: sockets-net-mgmt
   :name: Network management socket
   :relevant-api: bsd_sockets net_if

   Listen to network management events using a network management socket.

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:
:zephyr_file:`samples/net/sockets/net_mgmt`.

Requirements
************

- :ref:`networking_with_host`

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 :ref:`networking_with_qemu`.

Build net-mgmt socket sample application like this:

.. zephyr-app-commands::
   :zephyr-app: samples/net/sockets/net_mgmt
   :board: <board to use>
   :conf: <config file to use>
   :goals: build
   :compact:

Example building for the native_sim board:

.. zephyr-app-commands::
   :zephyr-app: samples/net/sockets/net_mgmt
   :host-os: unix
   :board: native_sim
   :conf: prj.conf
   :goals: run
   :compact: