aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorSeiya Nuta <nuta@seiya.me>2023-06-19 11:30:50 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-06-19 11:30:50 +0000
commit6fc8d28368b8de624c7d1e7e42db29bb4dceed96 (patch)
tree2209a9e1338f055e1b1097ae82d2258afe4f56bc /.gitignore
parent26be815b86e8d49add8c9a8b320239b9594ff03d (diff)
downloadslirp-6fc8d28368b8de624c7d1e7e42db29bb4dceed96.zip
slirp-6fc8d28368b8de624c7d1e7e42db29bb4dceed96.tar.gz
slirp-6fc8d28368b8de624c7d1e7e42db29bb4dceed96.tar.bz2
icmp: Handle ICMP packets as IPPROTO_IP on BSD
In macOS, as already commented in this source file as well, packets from SOCK_DGRAM + IPPROTO_ICMP sockets include IP header while Linux doesn't not prepend the header. Due to the discrepancy, in macOS, we need to handle received ICMP packets as if they are IP packets so that its IPv4 header gets stripped. As pointed out in review comments, it appears CONFIG_BSD is no longer propagated from QEMU. This patch fixes the issue by detecting BSD (including macOS) by ourselves.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions