]>
Commit | Line | Data |
---|---|---|
f0cbd3ec FB |
1 | /* |
2 | * Copyright (c) 1995 Danny Gasparovski. | |
5fafdf24 TS |
3 | * |
4 | * Please read the file COPYRIGHT for the | |
f0cbd3ec FB |
5 | * terms and conditions of the copyright. |
6 | */ | |
7 | ||
2a6a4076 MA |
8 | #ifndef MISC_H |
9 | #define MISC_H | |
f0cbd3ec | 10 | |
5d300fc9 | 11 | struct gfwd_list { |
3ed9f823 | 12 | void *ex_chardev; |
a13a4126 | 13 | struct in_addr ex_addr; /* Server address */ |
f0cbd3ec | 14 | int ex_fport; /* Port to telnet to */ |
c27f2478 | 15 | char *ex_exec; /* Command line of what to exec */ |
5d300fc9 | 16 | struct gfwd_list *ex_next; |
f0cbd3ec FB |
17 | }; |
18 | ||
f0cbd3ec FB |
19 | #define EMU_NONE 0x0 |
20 | ||
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 | |
f0cbd3ec FB |
29 | |
30 | #define EMU_NOCONNECT 0x10 /* Don't connect */ | |
31 | ||
f0cbd3ec | 32 | struct tos_t { |
b6dce92e SW |
33 | uint16_t lport; |
34 | uint16_t fport; | |
35 | uint8_t tos; | |
36 | uint8_t emu; | |
f0cbd3ec FB |
37 | }; |
38 | ||
39 | struct emu_t { | |
b6dce92e SW |
40 | uint16_t lport; |
41 | uint16_t fport; | |
42 | uint8_t tos; | |
43 | uint8_t emu; | |
44 | struct emu_t *next; | |
f0cbd3ec FB |
45 | }; |
46 | ||
67e3eee4 ST |
47 | struct slirp_quehead { |
48 | struct slirp_quehead *qh_link; | |
49 | struct slirp_quehead *qh_rlink; | |
50 | }; | |
51 | ||
6cb9c6d3 BS |
52 | void slirp_insque(void *, void *); |
53 | void slirp_remque(void *); | |
5d300fc9 | 54 | int add_exec(struct gfwd_list **, void *, const char *, struct in_addr, int); |
43bc7340 | 55 | int fork_exec(struct socket *so, const char *ex); |
f0cbd3ec FB |
56 | |
57 | #endif |