]> Git Repo - qemu.git/blob - slirp/misc.h
lm32-softmmu.mak: express dependencies with Kconfig
[qemu.git] / slirp / misc.h
1 /*
2  * Copyright (c) 1995 Danny Gasparovski.
3  *
4  * Please read the file COPYRIGHT for the
5  * terms and conditions of the copyright.
6  */
7
8 #ifndef MISC_H
9 #define MISC_H
10
11 #include "libslirp.h"
12
13 struct gfwd_list {
14         SlirpWriteCb write_cb;
15         void *opaque;
16         struct in_addr ex_addr;         /* Server address */
17         int ex_fport;                   /* Port to telnet to */
18         char *ex_exec;                  /* Command line of what to exec */
19         struct gfwd_list *ex_next;
20 };
21
22 #define EMU_NONE 0x0
23
24 /* TCP emulations */
25 #define EMU_CTL 0x1
26 #define EMU_FTP 0x2
27 #define EMU_KSH 0x3
28 #define EMU_IRC 0x4
29 #define EMU_REALAUDIO 0x5
30 #define EMU_RLOGIN 0x6
31 #define EMU_IDENT 0x7
32
33 #define EMU_NOCONNECT 0x10      /* Don't connect */
34
35 struct tos_t {
36     uint16_t lport;
37     uint16_t fport;
38     uint8_t tos;
39     uint8_t emu;
40 };
41
42 struct emu_t {
43     uint16_t lport;
44     uint16_t fport;
45     uint8_t tos;
46     uint8_t emu;
47     struct emu_t *next;
48 };
49
50 struct slirp_quehead {
51     struct slirp_quehead *qh_link;
52     struct slirp_quehead *qh_rlink;
53 };
54
55 void slirp_insque(void *, void *);
56 void slirp_remque(void *);
57 int fork_exec(struct socket *so, const char *ex);
58
59 struct gfwd_list *
60 add_guestfwd(struct gfwd_list **ex_ptr,
61              SlirpWriteCb write_cb, void *opaque,
62              struct in_addr addr, int port);
63
64 struct gfwd_list *
65 add_exec(struct gfwd_list **ex_ptr, const char *cmdline,
66          struct in_addr addr, int port);
67
68 #endif
This page took 0.027663 seconds and 4 git commands to generate.