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 extern u_int curtime, time_fasttimo, last_slowtimo, detach_time, detach_wait; 12 13 extern int (*lprint_print) _P((void *, const char *, va_list)); 14 extern char *lprint_ptr, *lprint_ptr2, **lprint_arg; 15 //extern SBuf lprint_sb; 16 17 #ifndef HAVE_STRDUP 18 char *strdup _P((const char *)); 19 #endif 20 21 void do_wait _P((int)); 22 23 #define EMU_NONE 0x0 24 25 /* TCP emulations */ 26 #define EMU_CTL 0x1 27 #define EMU_FTP 0x2 28 #define EMU_KSH 0x3 29 #define EMU_IRC 0x4 30 #define EMU_REALAUDIO 0x5 31 #define EMU_RLOGIN 0x6 32 #define EMU_IDENT 0x7 33 #define EMU_RSH 0x8 34 35 #define EMU_NOCONNECT 0x10 /* Don't connect */ 36 37 /* UDP emulations */ 38 #define EMU_TALK 0x1 39 #define EMU_NTALK 0x2 40 #define EMU_CUSEEME 0x3 41 42 struct tos_t { 43 u_int16_t lport; 44 u_int16_t fport; 45 u_int8_t tos; 46 u_int8_t emu; 47 }; 48 49 struct emu_t { 50 u_int16_t lport; 51 u_int16_t fport; 52 u_int8_t tos; 53 u_int8_t emu; 54 struct emu_t *next; 55 }; 56 57 extern struct emu_t *tcpemu; 58 59 void getouraddr _P((void)); 60 inline void slirp_insque _P((void *, void *)); 61 inline void slirp_remque _P((void *)); 62 void add_emu _P((char *)); 63 64 #endif 65