-
Notifications
You must be signed in to change notification settings - Fork 3
/
netpipe.h
56 lines (45 loc) · 846 Bytes
/
netpipe.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef __NETPIPE_H__
#define __NETPIPE_H__
#include "compat-header.h"
typedef enum _EOptionType {
otUnknown,
otSourceHost,
otSourcePort,
otTargetHost,
otTargetPort,
otIPv4Only,
otIPv6Only,
otLogError,
otLogWarning,
otLogInfo,
otLogPacket,
otOneConnection,
otKeepAlive,
otHelp,
otVersion,
otLogPacketData,
otAuthSource,
otAuthTarget,
otLogFile,
otReceiveDomain,
otSendDomain,
#ifndef _WIN32
otUnixSource,
otUnixDest,
#endif
} EOptionType, *PEOptionType;
typedef struct _COMMAND_LINE_OPTION {
EOptionType Type;
int Specified;
int ArgumentCount;
size_t NameCount;
char *Names[2];
char *ArgumentType;
char *Description;
} COMMAND_LINE_OPTION, *PCOMMAND_LINE_OPTION;
#ifdef _WIN32
extern COMMAND_LINE_OPTION _cmdOptions[21];
#endif
int NetPipeMain(int argc, char *argv[]);
void NetPipeTerminate(void);
#endif