99693bee5f
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> |
||
---|---|---|
.. | ||
boards | ||
src | ||
CMakeLists.txt | ||
prj.conf | ||
README.rst | ||
sample.yaml |
.. 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: