root / slirp / misc.h @ 5bc89ef6
History | View | Annotate | Download (1.5 kB)
1 | f0cbd3ec | bellard | /*
|
---|---|---|---|
2 | f0cbd3ec | bellard | * Copyright (c) 1995 Danny Gasparovski.
|
3 | 5fafdf24 | ths | *
|
4 | 5fafdf24 | ths | * Please read the file COPYRIGHT for the
|
5 | f0cbd3ec | bellard | * terms and conditions of the copyright.
|
6 | f0cbd3ec | bellard | */
|
7 | f0cbd3ec | bellard | |
8 | f0cbd3ec | bellard | #ifndef _MISC_H_
|
9 | f0cbd3ec | bellard | #define _MISC_H_
|
10 | f0cbd3ec | bellard | |
11 | f0cbd3ec | bellard | struct ex_list {
|
12 | f0cbd3ec | bellard | int ex_pty; /* Do we want a pty? */ |
13 | a13a4126 | Jan Kiszka | struct in_addr ex_addr; /* Server address */ |
14 | f0cbd3ec | bellard | int ex_fport; /* Port to telnet to */ |
15 | 9634d903 | blueswir1 | const char *ex_exec; /* Command line of what to exec */ |
16 | f0cbd3ec | bellard | struct ex_list *ex_next;
|
17 | f0cbd3ec | bellard | }; |
18 | f0cbd3ec | bellard | |
19 | f0cbd3ec | bellard | #ifndef HAVE_STRDUP
|
20 | 6cb9c6d3 | Blue Swirl | char *strdup(const char *); |
21 | f0cbd3ec | bellard | #endif
|
22 | f0cbd3ec | bellard | |
23 | 6cb9c6d3 | Blue Swirl | void do_wait(int); |
24 | f0cbd3ec | bellard | |
25 | f0cbd3ec | bellard | #define EMU_NONE 0x0 |
26 | f0cbd3ec | bellard | |
27 | f0cbd3ec | bellard | /* TCP emulations */
|
28 | f0cbd3ec | bellard | #define EMU_CTL 0x1 |
29 | f0cbd3ec | bellard | #define EMU_FTP 0x2 |
30 | f0cbd3ec | bellard | #define EMU_KSH 0x3 |
31 | f0cbd3ec | bellard | #define EMU_IRC 0x4 |
32 | f0cbd3ec | bellard | #define EMU_REALAUDIO 0x5 |
33 | f0cbd3ec | bellard | #define EMU_RLOGIN 0x6 |
34 | f0cbd3ec | bellard | #define EMU_IDENT 0x7 |
35 | f0cbd3ec | bellard | #define EMU_RSH 0x8 |
36 | f0cbd3ec | bellard | |
37 | f0cbd3ec | bellard | #define EMU_NOCONNECT 0x10 /* Don't connect */ |
38 | f0cbd3ec | bellard | |
39 | f0cbd3ec | bellard | struct tos_t {
|
40 | f0cbd3ec | bellard | u_int16_t lport; |
41 | f0cbd3ec | bellard | u_int16_t fport; |
42 | f0cbd3ec | bellard | u_int8_t tos; |
43 | f0cbd3ec | bellard | u_int8_t emu; |
44 | f0cbd3ec | bellard | }; |
45 | f0cbd3ec | bellard | |
46 | f0cbd3ec | bellard | struct emu_t {
|
47 | f0cbd3ec | bellard | u_int16_t lport; |
48 | f0cbd3ec | bellard | u_int16_t fport; |
49 | f0cbd3ec | bellard | u_int8_t tos; |
50 | f0cbd3ec | bellard | u_int8_t emu; |
51 | f0cbd3ec | bellard | struct emu_t *next;
|
52 | f0cbd3ec | bellard | }; |
53 | f0cbd3ec | bellard | |
54 | f0cbd3ec | bellard | extern int x_port, x_server, x_display; |
55 | f0cbd3ec | bellard | |
56 | 6cb9c6d3 | Blue Swirl | int show_x(char *, struct socket *); |
57 | 6cb9c6d3 | Blue Swirl | void redir_x(u_int32_t, int, int, int); |
58 | 6cb9c6d3 | Blue Swirl | void slirp_insque(void *, void *); |
59 | 6cb9c6d3 | Blue Swirl | void slirp_remque(void *); |
60 | 6cb9c6d3 | Blue Swirl | int add_exec(struct ex_list **, int, char *, struct in_addr, int); |
61 | 6cb9c6d3 | Blue Swirl | int slirp_openpty(int *, int *); |
62 | 9634d903 | blueswir1 | int fork_exec(struct socket *so, const char *ex, int do_pty); |
63 | 6cb9c6d3 | Blue Swirl | void snooze_hup(int); |
64 | 6cb9c6d3 | Blue Swirl | void snooze(void); |
65 | 6cb9c6d3 | Blue Swirl | void relay(int); |
66 | 6cb9c6d3 | Blue Swirl | void add_emu(char *); |
67 | 6cb9c6d3 | Blue Swirl | void u_sleep(int); |
68 | 6cb9c6d3 | Blue Swirl | void fd_nonblock(int); |
69 | 6cb9c6d3 | Blue Swirl | void fd_block(int); |
70 | 6cb9c6d3 | Blue Swirl | int rsh_exec(struct socket *, struct socket *, char *, char *, char *); |
71 | f0cbd3ec | bellard | |
72 | f0cbd3ec | bellard | #endif |