-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathw32ctca.h
35 lines (27 loc) · 1.59 KB
/
w32ctca.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* W32CTCA.H (c) Copyright "Fish" (David B. Trout), 2002-2014 */
/* CTCI-WIN (Channel to Channel link to Win32 TCP/IP stack) */
/* */
/* Released under "The Q Public License Version 1" */
/* (http://www.hercules-390.org/herclic.html) as modifications to */
/* Hercules. */
#ifndef _W32CTCA_H_
#define _W32CTCA_H_
#if defined(OPTION_W32_CTCI)
#include "tt32api.h" // (#define TUNTAP32_DLLNAME)
#define MAX_TT32_DLLNAMELEN (512)
#define DEF_TT32_DLLNAME TUNTAP32_DLLNAME // (from tt32api.h)
extern char g_tt32_dllname [MAX_TT32_DLLNAMELEN];
extern void tt32_init ();
extern int tt32_open ( char* pszGatewayDevice, int iFlags );
extern int tt32_read ( int fd, u_char* buffer, u_long size );
extern int tt32_write ( int fd, u_char* buffer, u_long size );
extern int tt32_beg_write_multi ( int fd, u_long bufsiz );
extern int tt32_end_write_multi ( int fd );
extern int tt32_close ( int fd );
extern int tt32_ioctl ( int fd, int iRequest, char* argp );
extern const char* tt32_get_default_iface ();
extern int tt32_build_herc_iface_mac ( BYTE* out_mac, const BYTE* in_ip );
extern int display_tt32_stats ( int fd );
extern void enable_tt32_debug_tracing ( int enable );
#endif // defined(OPTION_W32_CTCI)
#endif // _W32CTCA_H_