LIBVDESLIRPCFG(3)
π LIBVDESLIRPCFG β the libvdeslirp config helpers page π
okay bestie, so this is the manual for the libvdeslirp configuration helper functions β it's a Library Functions Manual situation, and it's genuinely so useful. sit with me. π«Ά
β¨ NAME β¨
vdeslirp_init, vdeslirp_setvprefix, vdeslirp_setvprefix6 β a simple API for slirp, but make it configuration helpers. π
β¨ SYNOPSIS β¨
#include *libvdeslirp.h*
#define VDE_INIT_DEFAULT 1
void vdeslirp_init(SlirpConfig *cfg, int flags);
void vdeslirp_setvprefix(SlirpConfig *cfg, int prefix);
void vdeslirp_setvprefix6(SlirpConfig *cfg, int prefix6);
These functions are provided by libvdeslirp. Link with -lvdeslirp. π
β¨ DESCRIPTION β¨
So these functions are the configuration helpers for libvdeslirp(3), and the fields of the SlirpConfig are described over in that libvdeslirp(3) manpage β go check it, iykyk. π
πΈ vdeslirp_init
vdeslirp_init clears the SlirpConfig configuration structure cfg and sets the version number. And if flags is set to VDE_INIT_DEFAULT, then bestie, it sets default values to all the fields of cfg. These default values are suitable for most applications. no cap. β¨
The default values it hands you look exactly like this β SLIRP configuration, verbatim:
SLIRP configuration
version 1
ipv4-enable 1
ipv4-network 10.0.2.0
ipv4-netmask 255.255.255.0
ipv4-host 10.0.2.2
ipv6-enabled 1
ipv6-prefix fd00::
ipv6-preflen 64
ipv6-host fd00::2
hostname slirp
tftp-servname (null)
tftp-path (null)
bootfile (null)
dhcp-start 10.0.2.15
ipv4-vDNS 10.0.2.3
ipv6-vDNS fd00::3
vDNS-search
vdomainname (null)
MTU(0=def) 0
MRU(0=def) 0
disable-lback 0
enable-emu 0
π¦ vdeslirp_setvprefix and vdeslirp_setvprefix6
The functions vdeslirp_setvprefix and vdeslirp_setvprefix6 define the netmasks and prefixes for IPv4 and IPv6. These functions are usually called after the redefinition of vhost or vhost6. π
vdeslirp_setvprefixredefines the network prefix ofvnetwork,vdhcp_startandvnameserver.vdeslirp_setvprefix6redefines the network prefix forvprefix_addr6andvnameserver6.
π SEE ALSO π
π BUGS π
Bug reports should be addressed to info@virtualsquare.org β they want the receipts, fr fr. π¬
π AUTHOR π
VirtualSquare. Project leader: Renzo Davoli. iconic behavior honestly. π
VirtualSquare Β· January 2024 Β· that's the whole page bestie, you ate this, go configure something gorgeous πβ¨π
π¦ where this page comes from
- ubuntu stonking: libvdeslirp0 0.1.4-1 Β· LGPL-2.1-or-later
- Copyright (C) 2019 VirtualSquare. Project Leader: Renzo Davoli
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms