samples/net/sockets/packet/README.html · samples/net/sockets/packet/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Networking · Ethernet

Packet socket

Network stack이 L2·L3 header를 수정하지 않는 raw packet 송수신을 Wireshark로 관찰합니다.

Official pathsamples/net/sockets/packet/README.html
Source filesamples/net/sockets/packet/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

수신 length 출력, 5초 주기 전송과 QEMU·native_sim 실행 조건을 보존합니다.

Socket

Raw packet

Link

Ethernet

Interval

5 seconds

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 112E3093309EEF77708F48570C6EE828EE40E3ED0B932C7EB58B1F2FA538BECB
.. zephyr:code-sample:: packet-socket
   :name: Packet socket
   :relevant-api: bsd_sockets ethernet

   Use raw packet sockets over Ethernet.

Overview
********

This sample is a simple packet socket application showing usage
of packet sockets over Ethernet. The sample prints every packet
received, and sends a dummy packet every 5 seconds.
The Zephyr network subsystem does not touch any of the headers
(L2, L3, etc.).

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

When the application is run, it opens a packet socket and prints
the length of the packet it receives. After that it sends a dummy
packet every 5 seconds. You can use Wireshark to observe these
sent and received packets.

See the `net-tools`_ project for more details.

This sample can be built and executed on QEMU or native_sim board as
described in :ref:`networking_with_host`.

.. _`net-tools`: https://github.com/zephyrproject-rtos/net-tools

Part 3

한국어 전문 번역

개요

이 sample은 Ethernet 위에서 packet socket을 사용하는 방법을 보여 주는 간단한 packet socket application입니다.

Sample은 수신한 모든 packet을 출력하고 5초마다 dummy packet을 전송합니다. Zephyr network subsystem은 L2, L3 등을 포함한 어떤 header도 수정하지 않습니다.

빌드 및 실행

Application을 실행하면 packet socket을 열고 수신한 packet의 length를 출력합니다. 그 다음 5초마다 dummy packet을 보냅니다. Wireshark로 송수신 packet을 관찰할 수 있습니다.

자세한 내용은 net-tools project를 참고하십시오.

이 sample은 Host system과 networking에서 설명하는 방식으로 QEMU 또는 native_sim board용으로 build하고 실행할 수 있습니다.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.