libslirp

General purpose TCP-IP emulator library for user-mode networking

brewmacoslinux
Try with needOr install directly
Source

About

General purpose TCP-IP emulator

Commands

libslirp

Examples

Use libslirp as a library in QEMU for user-mode network emulation$ qemu-system-x86_64 -net user -hda disk.img
Integrate libslirp in custom applications for network stack emulation$ pkg-config --cflags --libs libslirp
Link against libslirp in C/C++ projects for TCP-IP emulation$ gcc -o app app.c $(pkg-config --cflags --libs libslirp)