Clone this repo:
  1. 8399d50 Document endianness of slirp_add_hostfwd parameters by Samuel Thibault · 8 months ago master
  2. 129077f Avoid including <sys/param.h> on windows by Samuel Thibault · 10 months ago
  3. 44e7877 Document functions by Samuel Thibault · 11 months ago
  4. 2533bf2 Merge branch 'strip-ip-header-from-icmp-packet-in-macos' into 'master' by Samuel Thibault · 1 year ago
  5. 6fc8d28 icmp: Handle ICMP packets as IPPROTO_IP on BSD by Seiya Nuta · 1 year ago

libslirp

libslirp is a user-mode networking library used by virtual machines, containers or various tools.

Getting Started

Prerequisites

A C compiler, meson and glib2 development libraries.

(see also .gitlab-ci.yml DEPS variable for the list of dependencies on Fedora)

Building

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)

Testing

Unfortunately, there are no automated tests available.

You may run QEMU -net user linked with your development version.

Contributing

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.

Versioning

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.

License

See the COPYRIGHT file for details.