Skip to content

Conversation

@zs39
Copy link
Contributor

@zs39 zs39 commented Dec 23, 2025

Summary

Supports sending and receiving data packets on specified interfaces.

Impact

Scenarios using netpkt examples

Testing

Use the command netpkt -i eth0 -t -v to check if it executes correctly.
The execution result is normal, as shown below.

nsh> netpkt -i eth0 -t -v
Testing write() (3 times)
transmitted 128 octets
F0 DE F1 02 43 01 00 E0  DE AD BE EF 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
transmitted 128 octets
F0 DE F1 02 43 01 00 E0  DE AD BE EF 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
transmitted 128 octets
F0 DE F1 02 43 01 00 E0  DE AD BE EF 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

Supports sending and receiving data packets on specified interfaces.

Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
@simbit18
Copy link
Contributor

@zs39
Can you please provide simple update to documentation too ?
https://nuttx.apache.org/docs/latest/applications/examples/netpkt/index.html

Copy link
Contributor

@acassis acassis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zs39 very nice! Please create a basic (initial) Documentation to netpkt, there is only an entry to it without anything useful: https://nuttx.apache.org/docs/latest/applications/examples/netpkt/index.html

@zs39
Copy link
Contributor Author

zs39 commented Dec 24, 2025

@zs39 very nice! Please create a basic (initial) Documentation to netpkt, there is only an entry to it without anything useful: https://nuttx.apache.org/docs/latest/applications/examples/netpkt/index.html

@acassis https://github.com/apache/nuttx/pull/17655/files
The document has been added here.

@zs39 zs39 requested a review from acassis December 24, 2025 03:50
@xiaoxiang781216 xiaoxiang781216 dismissed acassis’s stale review December 25, 2025 01:45

documentation already provided

@xiaoxiang781216 xiaoxiang781216 merged commit de87836 into apache:master Dec 25, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants