-
Notifications
You must be signed in to change notification settings - Fork 10
/
libvdeslirpcfg.3.html
137 lines (111 loc) · 2.97 KB
/
libvdeslirpcfg.3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
Content-type: text/html; charset=UTF-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of LIBVDESLIRPCFG</TITLE>
</HEAD><BODY>
<H1>LIBVDESLIRPCFG</H1>
Section: Library Functions Manual (3)<BR>Updated: December 2022<BR><A HREF="#index">Index</A>
<A HREF="/#/man/index">Return to Main Contents</A><HR>
<A NAME="lbAB"> </A>
<H2>NAME</H2>
<P>
vdeslirp_init, vdeslirp_setvprefix, vdeslirp_setvprefix6 - simple API
for slirp: configuration helpers
<A NAME="lbAC"> </A>
<H2>SYNOPSIS</H2>
<P>
#include *libvdeslirp.h*
<P>
#define VDE_INIT_DEFAULT 1
<P>
void vdeslirp_init(SlirpConfig *cfg, int
flags);
<P>
void vdeslirp_setvprefix(SlirpConfig *cfg, int
prefix);
<P>
void vdeslirp_setvprefix6(SlirpConfig *cfg, int
prefix6);
<P>
These functions are provided by libvdeslirp.
Link with -lvdeslirp.
<A NAME="lbAD"> </A>
<H2>DESCRIPTION</H2>
<P>
These functions are configuration helpers for <A HREF="/#/man/man3/libvdeslirp.3.html">libvdeslirp</A>(3).
The fields of the SlirpConfig has been described in the
<A HREF="/#/man/man3/libvdeslirp.3.html">libvdeslirp</A>(3) manpage.
<P>
vdeslirp_init clears the SlirpConfig configuration
structure cfg and sets the version number.
If flags is set to VDE_INIT_DEFAULT then it sets
default values to all the fields of cfg.
These default values are suitable for most applications.
<DL COMPACT>
<DT><DD>
<PRE>
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
</PRE>
</DL>
<P>
The functions vdeslirp_setvprefix and
vdeslirp_setvprefix6 define the netmasks and prefixes for IPv4
and IPv6.
These function are usually called after the redefinition of
vhost or vhost6.
vdeslirp_setvprefix redefines the network prefix of
vnetwork, vdhcp_start and vnameserver
while vdeslirp_setvprefix6 redefines the network prefix for
vprefix_addr6 and vnameserver6.
<A NAME="lbAE"> </A>
<H2>SEE ALSO</H2>
<P>
<A HREF="/#/man/man3/libvdeslirp.3.html">libvdeslirp</A>(3)
<A NAME="lbAF"> </A>
<H2>BUGS</H2>
<P>
Bug reports should be addressed to *<A HREF="mailto:info@virtualsquare.org">info@virtualsquare.org</A>*
<A NAME="lbAG"> </A>
<H2>AUTHOR</H2>
<P>
VirtualSquare.
Project leader: Renzo Davoli.
<P>
<HR>
<A NAME="index"> </A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">SEE ALSO</A><DD>
<DT><A HREF="#lbAF">BUGS</A><DD>
<DT><A HREF="#lbAG">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 15:22:07 GMT, November 27, 2023
</BODY>
</HTML>