commit | 6690d55626cc9dc4b90e614dece5918d281e9e1f | [log] [tgz] |
---|---|---|
author | Philippe Mathieu-Daudé <philmd@redhat.com> | Fri May 07 15:32:12 2021 +0200 |
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | Fri May 07 18:38:27 2021 +0400 |
tree | afd68c7add0e7ef3061edcf4d018c29aac58ec15 | |
parent | 4e6444e842695a6bfb00e15a8d0edfceb5c4628d [diff] |
Remove alloca() call in get_dns_addr_resolv_conf() The ALLOCA(3) man-page mentions its "use is discouraged". For now get_dns_addr_resolv_conf() is called with pointer to a in_addr/in6_addr structure, and its size. Declare a union of these structures on the stack, able to hold both of them. This allows us to remove the alloca() call, keeping the buffer on the stack. Add an assertion in the unlikely case another inet address is handled by this function. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210507133212.1952121-1-philmd@redhat.com>
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.