1 ////////////////////////////////////////////////////////////////////////////////////
2 //    w32ctca.h    CTCI-W32 (Channel to Channel link to Win32 TCP/IP stack)
3 ////////////////////////////////////////////////////////////////////////////////////
4 // (c) Copyright "Fish" (David B. Trout), 2002-2009. Released under the Q Public License
5 // (http://www.hercules-390.org/herclic.html) as modifications to Hercules.
6 ////////////////////////////////////////////////////////////////////////////////////
7 
8 #ifndef _W32CTCA_H_
9 #define _W32CTCA_H_
10 
11 #if defined(OPTION_W32_CTCI)
12 
13 #include "tt32api.h"                            // (#define TUNTAP32_DLLNAME)
14 
15 #define MAX_TT32_DLLNAMELEN  (512)
16 #define DEF_TT32_DLLNAME     TUNTAP32_DLLNAME   // (from tt32api.h)
17 
18 #ifndef   MODULESDIR
19   #define MODULESDIR         "."                // (i.e. "Current Directory")
20 #endif
21 
22 extern char   g_tt32_dllname   [MAX_TT32_DLLNAMELEN];
23 
24 extern void tt32_init
25 (
26 );
27 
28 extern int          tt32_open                 ( char* pszGatewayDevice, int iFlags );
29 extern int          tt32_read                 ( int fd, u_char* buffer, u_long size );
30 extern int          tt32_write                ( int fd, u_char* buffer, u_long size );
31 extern int          tt32_close                ( int fd );
32 extern int          tt32_ioctl                ( int fd, int iRequest, char* argp );
33 extern const char*  tt32_get_default_iface    ();
34 
35 extern int  display_tt32_stats ( int fd );
36 extern void enable_tt32_debug_tracing( int enable );
37 
38 // (boolean helper function)
39 extern int tt32_build_herc_iface_mac ( BYTE* out_mac, const BYTE* in_ip );
40 
41 #endif // defined(OPTION_W32_CTCI)
42 
43 #endif // _W32CTCA_H_
44