maint: Allow for EXAMPLES in texi2pod
[qemu/ar7.git] / slirp / misc.h
blob1df707c052d4d4ef7c8448d4a86d6f80b55f1fa4
1 /*
2 * Copyright (c) 1995 Danny Gasparovski.
4 * Please read the file COPYRIGHT for the
5 * terms and conditions of the copyright.
6 */
8 #ifndef MISC_H
9 #define MISC_H
11 struct gfwd_list {
12 void *ex_chardev;
13 struct in_addr ex_addr; /* Server address */
14 int ex_fport; /* Port to telnet to */
15 char *ex_exec; /* Command line of what to exec */
16 struct gfwd_list *ex_next;
19 #define EMU_NONE 0x0
21 /* TCP emulations */
22 #define EMU_CTL 0x1
23 #define EMU_FTP 0x2
24 #define EMU_KSH 0x3
25 #define EMU_IRC 0x4
26 #define EMU_REALAUDIO 0x5
27 #define EMU_RLOGIN 0x6
28 #define EMU_IDENT 0x7
30 #define EMU_NOCONNECT 0x10 /* Don't connect */
32 struct tos_t {
33 uint16_t lport;
34 uint16_t fport;
35 uint8_t tos;
36 uint8_t emu;
39 struct emu_t {
40 uint16_t lport;
41 uint16_t fport;
42 uint8_t tos;
43 uint8_t emu;
44 struct emu_t *next;
47 struct slirp_quehead {
48 struct slirp_quehead *qh_link;
49 struct slirp_quehead *qh_rlink;
52 void slirp_insque(void *, void *);
53 void slirp_remque(void *);
54 int add_exec(struct gfwd_list **, void *, const char *, struct in_addr, int);
55 int fork_exec(struct socket *so, const char *ex);
57 #endif