slirp: permit guestfwd to vhost_addr/vnameserver_addr No reason not to, and sometimes it is convenient when dealing with less-than-configurable guests. Keep the existing DNS redirection protected by rejecting guestfwd on the virtual nameserver address port 53 while DNS support is enabled. DHCP/BOOTP and TFTP are not blocked here because guestfwd only handles TCP connections. The libslirp DHCP/BOOTP/TFTP services are UDP-only, so they do not conflict with guestfwd. Fixes #81 and suppressed #140. Co-authored-by: Ivan Shapovalov <intelfx@intelfx.name>
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.
To make slirp emit debugging prints, one can use for instance:
export G_MESSAGES_DEBUG=Slirp export SLIRP_DEBUG=call
SLIRP_DEBUG can contain a colons/spaces/commas-separated list of call, misc, error, tftp, verbose_call
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.