raiden00pl commented on PR #18140:
URL: https://github.com/apache/nuttx/pull/18140#issuecomment-3827937948
@linguini1 on `nucleo-h743zi/netnsh`.
without this change - obviously broken:
```
NuttShell (NSH) NuttX-10.4.0
nsh>
nsh>
nsh>
nsh>
nsh> help
help usage: help [-v] [<cmd>]
. cd exit ls pwd truncate
[ cp expr mkdir rm uname
? cmp false mkfatfs rmdir umount
addroute dirname fdinfo mkrd route unset
alias delroute free mount set uptime
unalias df help mv sleep usleep
arp dmesg hexdump nslookup source watch
basename echo ifconfig pidof test wget
break env kill printf time xd
cat exec pkill ps true wait
Builtin Apps:
dd netcat ping sh telnetd
iperf nsh renew tcpclient udpblaster
nsh> ls
/:
dev/
proc/
nsh> ifconfig
eth0 Link encap:Ethernet HWaddr 02:20:aa:46:87:32 at UP mtu 1486
inet addr:192.168.8.150 DRaddr:192.168.8.1 Mask:255.255.255.0
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
IPv4 TCP UDP ICMP
Received 0000 0000 0000 0000
Dropped 0000 0000 0000 0000
IPv4 VHL: 0000 Frg: 0000
Checksum 0000 0000 0000 ----
TCP ACK: 0000 SYN: 0000
RST: 0000 0000
Type 0000 ---- ---- 0000
Sent 0000 0000 0000 0000
Rexmit ---- 0000 ---- ----
nsh> ping 192.168.8.1
PING 192.168.8.1 56 bytes of data
ERROR: sendto failed at seqno 0: 101
ERROR: sendto failed at seqno 1: 101
ERROR: sendto failed at seqno 2: 101
ERROR: sendto failed at seqno 3: 101
ERROR: sendto failed at seqno 4: 101
ERROR: sendto failed at seqno 5: 101
ERROR: sendto failed at seqno 6: 101
ERROR: sendto failed at seqno 7: 101
ERROR: sendto failed at seqno 8: 101
ERROR: sendto failed at seqno 9: 101
10 packets transmitted, 0 received, 100% packet loss, time 10100 ms
nsh> telnetd [5:100]
```
with this change - ping works:
```
NuttShell (NSH) NuttX-10.4.0
nsh>
nsh>
nsh>
nsh>
nsh> ifconfig
eth0 Link encap:Ethernet HWaddr 02:20:aa:46:87:32 at RUNNING mtu 1486
inet addr:192.168.8.150 DRaddr:192.168.8.1 Mask:255.255.255.0
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
IPv4 TCP UDP ICMP
Received 0000 0000 0000 0000
Dropped 0000 0000 0000 0000
IPv4 VHL: 0000 Frg: 0000
Checksum 0000 0000 0000 ----
TCP ACK: 0000 SYN: 0000
RST: 0000 0000
Type 0000 ---- ---- 0000
Sent 0000 0000 0000 0000
Rexmit ---- 0000 ---- ----
nsh> ping 192.168.8.1
PING 192.168.8.1 56 bytes of data
56 bytes from 192.168.8.1: icmp_seq=0 time=10.0 ms
56 bytes from 192.168.8.1: icmp_seq=1 time=0.0 ms
56 bytes from 192.168.8.1: icmp_seq=2 time=0.0 ms
56 bytes from 192.168.8.1: icmp_seq=3 time=0.0 ms
56 bytes from 192.168.8.1: icmp_seq=4 time=0.0 ms
56 bytes from 192.168.8.1: icmp_seq=5 time=0.0 ms
56 bytes from 192.168.8.1: icmp_seq=6 time=0.0 ms
56 bytes from 192.168.8.1: icmp_seq=7 time=0.0 ms
56 bytes from 192.168.8.1: icmp_seq=8 time=0.0 ms
56 bytes from 192.168.8.1: 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/1.000/10.000/3.000 ms
nsh>
```
ping from host to target with this change:
```
[raiden00:~]$ ping 192.168.8.150
PING 192.168.8.150 (192.168.8.150) 56(84) bytes of data.
64 bytes from 192.168.8.150: icmp_seq=1 ttl=64 time=1.28 ms
64 bytes from 192.168.8.150: icmp_seq=2 ttl=64 time=0.656 ms
64 bytes from 192.168.8.150: icmp_seq=3 ttl=64 time=0.636 ms
64 bytes from 192.168.8.150: icmp_seq=4 ttl=64 time=0.629 ms
64 bytes from 192.168.8.150: icmp_seq=5 ttl=64 time=0.644 ms
64 bytes from 192.168.8.150: icmp_seq=6 ttl=64 time=0.682 ms
^C
--- 192.168.8.150 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5101ms
rtt min/avg/max/mdev = 0.629/0.753/1.275/0.233 ms
```
this is also proof that https://github.com/apache/nuttx/pull/18249/ is
correct
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]