1.. zephyr:code-sample:: sockets-net-mgmt 2 :name: Network management socket 3 :relevant-api: bsd_sockets net_if 4 5 Listen to network management events using a network management socket. 6 7Overview 8******** 9 10The net-mgmt-socket sample application for Zephyr implements a listener 11for network management events that the networking subsystem is sending. 12 13The source code for this sample application can be found at: 14:zephyr_file:`samples/net/sockets/net_mgmt`. 15 16Requirements 17************ 18 19- :ref:`networking_with_host` 20 21Building and Running 22******************** 23 24There are multiple ways to use this application. One of the most common 25usage scenario is to run echo-server application inside QEMU. This is 26described in :ref:`networking_with_qemu`. 27 28Build net-mgmt socket sample application like this: 29 30.. zephyr-app-commands:: 31 :zephyr-app: samples/net/sockets/net_mgmt 32 :board: <board to use> 33 :conf: <config file to use> 34 :goals: build 35 :compact: 36 37Example building for the native_posix board: 38 39.. zephyr-app-commands:: 40 :zephyr-app: samples/net/sockets/net_mgmt 41 :host-os: unix 42 :board: native_posix 43 :conf: prj.conf 44 :goals: run 45 :compact: 46