You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I then run it on Linux 5.15.0-69-generic, it sends ICMP echo reply packets (as expected), as seen in tcpdump:
$ sudo tcpdump -nn -v -i wlp3s0 host 1.1.1.1
tcpdump: listening on wlp3s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
17:26:30.999548 IP (tos 0x0, ttl 64, id 25840, offset 0, flags [DF], proto ICMP (1), length 170)
${my_ip} > 1.1.1.1: ICMP echo request, id 25, seq 0, length 150
...
If I run it with app-elfloader: ../../run-app-elfloader/run_elfloader -r rootfs/ -k build/*_kvm-x86_64 -n icmp_test,
it doesn't send out ICMP packets, but UDP.
We can see this in the lwip debug output (proto=17 which is UDP, while ICMP would be 1):
I compile the following to send ICMP packets:
with:
gcc -static-pie -fPIC -Wall -o icmp_test icmp_test.c
../../run-app-elfloader/run_elfloader -r rootfs/ -k build/*_kvm-x86_64 -n icmp_test
,it doesn't send out ICMP packets, but UDP.
We can see this in the lwip debug output (proto=17 which is UDP, while ICMP would be 1):
I can't see any references to
IPPROTO_ICMP
in this repo (when built), so I guess that's why.The text was updated successfully, but these errors were encountered: