commit | 6fc8d28368b8de624c7d1e7e42db29bb4dceed96 | [log] [tgz] |
---|---|---|
author | Seiya Nuta <nuta@seiya.me> | Mon Jun 19 11:30:50 2023 +0000 |
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | Mon Jun 19 11:30:50 2023 +0000 |
tree | 2209a9e1338f055e1b1097ae82d2258afe4f56bc | |
parent | 26be815b86e8d49add8c9a8b320239b9594ff03d [diff] |
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.
libslirp is a user-mode networking library used by virtual machines, containers or various tools.
A C compiler, meson and glib2 development libraries.
(see also .gitlab-ci.yml DEPS variable for the list of dependencies on Fedora)
You may build and install the shared library with meson:
meson build ninja -C build install
And configure QEMU with --enable-slirp=system to link against it.
(QEMU may build with the submodule static library using --enable-slirp=git)
Unfortunately, there are no automated tests available.
You may run QEMU -net user
linked with your development version.
Feel free to open issues on the project issues page.
You may clone the gitlab project and create a merge request.
Contributing with gitlab allows gitlab workflow, tracking issues, running CI etc.
Alternatively, you may send patches to slirp@lists.freedesktop.org mailing list.
We intend to use libtool's versioning for the shared libraries and use SemVer for project versions.
For the versions available, see the tags on this repository.
See the COPYRIGHT file for details.