zephyr/samples/net/dsa
Jukka Rissanen 99693bee5f net: socket: Change the protocol field for AF_PACKET sockets
In order to be compatible with Linux AF_PACKET socket calls, the
protocol field needs to be in network byte order.
So for example, if user wants to receive all packets, then the
protocol field needs to be set as "htons(ETH_P_ALL)".
See Linux manual page at
https://www.man7.org/linux/man-pages/man7/packet.7.html
for details.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-05-29 10:48:34 -07:00
..
boards dts: nxp: Convert ENET DT default to new binding. 2024-04-18 11:18:31 +02:00
src net: socket: Change the protocol field for AF_PACKET sockets 2024-05-29 10:48:34 -07:00
CMakeLists.txt samples and tests: Add REQUIRED to Zephyr find_package call 2023-03-02 09:58:27 +01:00
prj.conf drivers: nxp_enet: Deprecate ETH_MCUX 2024-04-18 11:18:31 +02:00
README.rst samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
sample.yaml net: Add more specific dependencies for specialized samples 2024-03-06 09:11:51 +01:00

.. zephyr:code-sample:: dsa
   :name: DSA (Distributed Switch Architecture)
   :relevant-api: DSA

   Test and debug Distributed Switch Architecture

Overview
********

Example on testing/debugging Distributed Switch Architecture

The source code for this sample application can be found at:
:zephyr_file:`samples/net/dsa`.

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

- :ref:`networking_with_host`

Building and Running
********************

Host machine with :ref:`ip_k66f` board from Segger.

Follow these steps to build the DSA sample application:

.. zephyr-app-commands::
   :zephyr-app: samples/net/dsa
   :board: <board to use>
   :conf: prj.conf
   :goals: build
   :compact: