You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "zhhyu7 (via GitHub)" <gi...@apache.org> on 2026/01/14 12:21:27 UTC

[PR] icmpv6_ping.c: change socket type from SOCK_DGRAM to SOCK_RAW [nuttx-apps]

zhhyu7 opened a new pull request, #3322:
URL: https://github.com/apache/nuttx-apps/pull/3322

   ## 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> 
   ```
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] icmpv6_ping.c: change socket type from SOCK_DGRAM to SOCK_RAW [nuttx-apps]

Posted by "zhhyu7 (via GitHub)" <gi...@apache.org>.
zhhyu7 commented on PR #3322:
URL: https://github.com/apache/nuttx-apps/pull/3322#issuecomment-3753120344

   > @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.
   https://github.com/apache/nuttx-apps/pull/3322#issuecomment-3750780585


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] icmpv6_ping.c: change socket type from SOCK_DGRAM to SOCK_RAW [nuttx-apps]

Posted by "Donny9 (via GitHub)" <gi...@apache.org>.
Donny9 merged PR #3322:
URL: https://github.com/apache/nuttx-apps/pull/3322


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] icmpv6_ping.c: change socket type from SOCK_DGRAM to SOCK_RAW [nuttx-apps]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #3322:
URL: https://github.com/apache/nuttx-apps/pull/3322#issuecomment-3750780585

   @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'
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] icmpv6_ping.c: change socket type from SOCK_DGRAM to SOCK_RAW [nuttx-apps]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #3322:
URL: https://github.com/apache/nuttx-apps/pull/3322#issuecomment-3753185455

   let' add depend on


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org