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
README.rst
prj.conf drivers: nxp_enet: Deprecate ETH_MCUX 2024-04-18 11:18:31 +02:00
sample.yaml

README.rst

.. 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: