Skip to content

Conversation

@zhhyu7
Copy link
Contributor

@zhhyu7 zhhyu7 commented Jan 14, 2026

Summary

standardize the implementation of ping6 to better comply with socket permissions on certain systems.

Impact

ping6

Testing

sim:matter with ping6
NuttX test log:

NuttShell (NSH) NuttX-12.12.0
MOTD: username=admin password=Administrator
nsh> ifconfig
eth0	Link encap:Ethernet HWaddr 42:e1:c4:3f:48:dd at RUNNING mtu 1500
	inet addr:10.0.1.2 DRaddr:10.0.1.1 Mask:255.255.255.0
	inet6 addr: fe80::40e1:c4ff:fe3f:48dd/64
	inet6 DRaddr: fe80::a096:6ff:fe65:382a

lo	Link encap:Local Loopback at RUNNING mtu 1518
	inet addr:127.0.0.1 DRaddr:127.0.0.1 Mask:255.0.0.0
	inet6 addr: ::1/128
	inet6 DRaddr: ::1

nsh> ping6 fe80::a096:6ff:fe65:382a
PING6 fe80::a096:6ff:fe65:382a: 56 bytes of data
56 bytes from fe80::a096:6ff:fe65:382a icmp_seq=0 time=0.0 ms
56 bytes from fe80::a096:6ff:fe65:382a icmp_seq=1 time=0.0 ms
56 bytes from fe80::a096:6ff:fe65:382a icmp_seq=2 time=0.0 ms
56 bytes from fe80::a096:6ff:fe65:382a icmp_seq=3 time=0.0 ms
56 bytes from fe80::a096:6ff:fe65:382a icmp_seq=4 time=0.0 ms
56 bytes from fe80::a096:6ff:fe65:382a icmp_seq=5 time=0.0 ms
56 bytes from fe80::a096:6ff:fe65:382a icmp_seq=6 time=0.0 ms
56 bytes from fe80::a096:6ff:fe65:382a icmp_seq=7 time=0.0 ms
56 bytes from fe80::a096:6ff:fe65:382a icmp_seq=8 time=0.0 ms
56 bytes from fe80::a096:6ff:fe65:382a icmp_seq=9 time=0.0 ms
10 packets transmitted, 10 received, 0% packet loss,time 10100 ms
rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms
nsh> 

@xiaoxiang781216
Copy link
Contributor

@zhhyu7 please fix:

arm-none-eabi-ld: /github/workspace/sources/nuttx/staging/libapps.a(icmpv6_ping.c.github.workspace.sources.apps.netutils.ping_1.o): in function `icmp6_ping':
icmpv6_ping.c:(.text.icmp6_ping+0xba): undefined reference to `setsockopt'

@zhhyu7
Copy link
Contributor Author

zhhyu7 commented Jan 15, 2026

@zhhyu7 please fix:

arm-none-eabi-ld: /github/workspace/sources/nuttx/staging/libapps.a(icmpv6_ping.c.github.workspace.sources.apps.netutils.ping_1.o): in function `icmp6_ping':
icmpv6_ping.c:(.text.icmp6_ping+0xba): undefined reference to `setsockopt'

I will retrigger CI after below PR merged.
apache/nuttx#17926

@xiaoxiang781216
Copy link
Contributor

let' add depend on

standardize the implementation of ping6 to better comply with socket
permissions on certain systems.

Signed-off-by: zhanghongyu <[email protected]>
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.

2 participants