blob: 0904dd985fbf7c38cd1a8ed22193dd26bd1033f8 (
plain) (
blame)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>anytun: anytun.cpp File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul></div>
<h1>anytun.cpp File Reference</h1><code>#include <iostream></code><br>
<code>#include <poll.h></code><br>
<code>#include "<a class="el" href="datatypes_8h-source.html">datatypes.h</a>"</code><br>
<code>#include "<a class="el" href="log_8h-source.html">log.h</a>"</code><br>
<code>#include "<a class="el" href="buffer_8h-source.html">buffer.h</a>"</code><br>
<code>#include "<a class="el" href="packet_8h-source.html">packet.h</a>"</code><br>
<code>#include "<a class="el" href="cypher_8h-source.html">cypher.h</a>"</code><br>
<code>#include "<a class="el" href="keyDerivation_8h-source.html">keyDerivation.h</a>"</code><br>
<code>#include "<a class="el" href="authAlgo_8h-source.html">authAlgo.h</a>"</code><br>
<code>#include "<a class="el" href="signalController_8h-source.html">signalController.h</a>"</code><br>
<code>#include "<a class="el" href="packetSource_8h-source.html">packetSource.h</a>"</code><br>
<code>#include "<a class="el" href="tunDevice_8h-source.html">tunDevice.h</a>"</code><br>
<code>#include "<a class="el" href="options_8h-source.html">options.h</a>"</code><br>
<code>#include "<a class="el" href="seqWindow_8h-source.html">seqWindow.h</a>"</code><br>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structParam.html">Param</a></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="anytun_8cpp.html#f591627e223468579b78887ef91cb0ac">PAYLOAD_TYPE_TAP</a> 0x6558</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="anytun_8cpp.html#21c6078872dcc3914076daa2c1ec841a">PAYLOAD_TYPE_TUN</a> 0x0800</td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="anytun_8cpp.html#0f2bdeb94d90f5229b9e904e592b24fd">sender</a> (void *p)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="anytun_8cpp.html#1a93139691e3d8cf8a996c973c5ca0ac">receiver</a> (void *p)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="anytun_8cpp.html#0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="f591627e223468579b78887ef91cb0ac"></a><!-- doxytag: member="anytun.cpp::PAYLOAD_TYPE_TAP" ref="f591627e223468579b78887ef91cb0ac" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define PAYLOAD_TYPE_TAP 0x6558 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="21c6078872dcc3914076daa2c1ec841a"></a><!-- doxytag: member="anytun.cpp::PAYLOAD_TYPE_TUN" ref="21c6078872dcc3914076daa2c1ec841a" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define PAYLOAD_TYPE_TUN 0x0800 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="0ddf1224851353fc92bfbff6f499fa97"></a><!-- doxytag: member="anytun.cpp::main" ref="0ddf1224851353fc92bfbff6f499fa97" args="(int argc, char *argv[])" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>argc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"> <em>argv</em>[]</td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="1a93139691e3d8cf8a996c973c5ca0ac"></a><!-- doxytag: member="anytun.cpp::receiver" ref="1a93139691e3d8cf8a996c973c5ca0ac" args="(void *p)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* receiver </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>p</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="0f2bdeb94d90f5229b9e904e592b24fd"></a><!-- doxytag: member="anytun.cpp::sender" ref="0f2bdeb94d90f5229b9e904e592b24fd" args="(void *p)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* sender </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>p</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Sun Oct 7 23:43:49 2007 for anytun by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>
|