Statistics
| Branch: | Revision:

root / net / slirp.h @ 3329f07b

History | View | Annotate | Download (1.8 kB)

1 68ac40d2 Mark McLoughlin
/*
2 68ac40d2 Mark McLoughlin
 * QEMU System Emulator
3 68ac40d2 Mark McLoughlin
 *
4 68ac40d2 Mark McLoughlin
 * Copyright (c) 2003-2008 Fabrice Bellard
5 68ac40d2 Mark McLoughlin
 *
6 68ac40d2 Mark McLoughlin
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 68ac40d2 Mark McLoughlin
 * of this software and associated documentation files (the "Software"), to deal
8 68ac40d2 Mark McLoughlin
 * in the Software without restriction, including without limitation the rights
9 68ac40d2 Mark McLoughlin
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 68ac40d2 Mark McLoughlin
 * copies of the Software, and to permit persons to whom the Software is
11 68ac40d2 Mark McLoughlin
 * furnished to do so, subject to the following conditions:
12 68ac40d2 Mark McLoughlin
 *
13 68ac40d2 Mark McLoughlin
 * The above copyright notice and this permission notice shall be included in
14 68ac40d2 Mark McLoughlin
 * all copies or substantial portions of the Software.
15 68ac40d2 Mark McLoughlin
 *
16 68ac40d2 Mark McLoughlin
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 68ac40d2 Mark McLoughlin
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 68ac40d2 Mark McLoughlin
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 68ac40d2 Mark McLoughlin
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 68ac40d2 Mark McLoughlin
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 68ac40d2 Mark McLoughlin
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 68ac40d2 Mark McLoughlin
 * THE SOFTWARE.
23 68ac40d2 Mark McLoughlin
 */
24 68ac40d2 Mark McLoughlin
#ifndef QEMU_NET_SLIRP_H
25 68ac40d2 Mark McLoughlin
#define QEMU_NET_SLIRP_H
26 68ac40d2 Mark McLoughlin
27 68ac40d2 Mark McLoughlin
#include "qemu-common.h"
28 68ac40d2 Mark McLoughlin
#include "qdict.h"
29 68ac40d2 Mark McLoughlin
#include "qemu-option.h"
30 68ac40d2 Mark McLoughlin
31 68ac40d2 Mark McLoughlin
#ifdef CONFIG_SLIRP
32 68ac40d2 Mark McLoughlin
33 68ac40d2 Mark McLoughlin
int net_init_slirp(QemuOpts *opts,
34 68ac40d2 Mark McLoughlin
                   Monitor *mon,
35 68ac40d2 Mark McLoughlin
                   const char *name,
36 68ac40d2 Mark McLoughlin
                   VLANState *vlan);
37 68ac40d2 Mark McLoughlin
38 68ac40d2 Mark McLoughlin
void net_slirp_hostfwd_add(Monitor *mon, const QDict *qdict);
39 68ac40d2 Mark McLoughlin
void net_slirp_hostfwd_remove(Monitor *mon, const QDict *qdict);
40 68ac40d2 Mark McLoughlin
41 68ac40d2 Mark McLoughlin
int net_slirp_redir(const char *redir_str);
42 68ac40d2 Mark McLoughlin
43 68ac40d2 Mark McLoughlin
int net_slirp_parse_legacy(QemuOptsList *opts_list, const char *optarg, int *ret);
44 68ac40d2 Mark McLoughlin
45 68ac40d2 Mark McLoughlin
int net_slirp_smb(const char *exported_dir);
46 68ac40d2 Mark McLoughlin
47 68ac40d2 Mark McLoughlin
void do_info_usernet(Monitor *mon);
48 68ac40d2 Mark McLoughlin
49 68ac40d2 Mark McLoughlin
#endif
50 68ac40d2 Mark McLoughlin
51 68ac40d2 Mark McLoughlin
#endif /* QEMU_NET_SLIRP_H */