📄 pcap-remote_8h-source.html
字号:
<a name="l00101"></a>00101 <a name="l00109"></a><a class="code" href="group__remote__pri__struct.html#g9ca2e46ddec1744b0442e42fc77dbc36">00109</a> <span class="preprocessor">#define RPCAP_HOSTLIST_SEP " ,;\n\r"</span><a name="l00110"></a>00110 <span class="preprocessor"></span><a name="l00111"></a>00111 <a name="l00112"></a>00112 <a name="l00113"></a>00113 <a name="l00114"></a>00114 <span class="comment">// WARNING: These could need to be changed on other platforms</span><a name="l00115"></a><a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79">00115</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79" title="Provides an 8-bits unsigned integer.">uint8</a>; <a name="l00116"></a><a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">00116</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e" title="Provides a 16-bits unsigned integer.">uint16</a>; <a name="l00117"></a><a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e">00117</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e" title="Provides a 32-bits unsigned integer.">uint32</a>; <a name="l00118"></a><a class="code" href="group__remote__pri__struct.html#g56f1a81c92849566ae864511088eb7e8">00118</a> <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="group__remote__pri__struct.html#g56f1a81c92849566ae864511088eb7e8" title="Provides a 32-bits integer.">int32</a>; <a name="l00119"></a>00119 <a name="l00120"></a>00120 <a name="l00121"></a>00121 <a name="l00122"></a>00122 <a name="l00133"></a><a class="code" href="structactivehosts.html">00133</a> <span class="keyword">struct </span><a class="code" href="structactivehosts.html" title="Keeps a list of all the opened connections in the active mode.">activehosts</a><a name="l00134"></a>00134 {<a name="l00135"></a><a class="code" href="structactivehosts.html#a80ddc7d4304067f1441e3562c9b2b08">00135</a> <span class="keyword">struct </span>sockaddr_storage <a class="code" href="structactivehosts.html#a80ddc7d4304067f1441e3562c9b2b08">host</a>;<a name="l00136"></a><a class="code" href="structactivehosts.html#33939ceefa385f1e6c60f94f2474869d">00136</a> SOCKET <a class="code" href="structactivehosts.html#33939ceefa385f1e6c60f94f2474869d">sockctrl</a>;<a name="l00137"></a><a class="code" href="structactivehosts.html#34f7d4dc0ffb851aa4d9bf2e82ba915b">00137</a> <span class="keyword">struct </span><a class="code" href="structactivehosts.html" title="Keeps a list of all the opened connections in the active mode.">activehosts</a> *<a class="code" href="structactivehosts.html#34f7d4dc0ffb851aa4d9bf2e82ba915b">next</a>;<a name="l00138"></a>00138 };<a name="l00139"></a>00139 <a name="l00140"></a>00140 <a name="l00141"></a>00141 <span class="comment">/*********************************************************</span><a name="l00142"></a>00142 <span class="comment"> * *</span><a name="l00143"></a>00143 <span class="comment"> * Protocol messages formats *</span><a name="l00144"></a>00144 <span class="comment"> * *</span><a name="l00145"></a>00145 <span class="comment"> *********************************************************/</span><a name="l00146"></a>00146 <span class="comment">// WARNING Take care you compiler does not insert padding for better alignments into these structs</span><a name="l00147"></a>00147 <a name="l00148"></a>00148 <a name="l00150"></a><a class="code" href="structrpcap__header.html">00150</a> <span class="keyword">struct </span><a class="code" href="structrpcap__header.html" title="Common header for all the RPCAP messages.">rpcap_header</a><a name="l00151"></a>00151 {<a name="l00152"></a><a class="code" href="structrpcap__header.html#d284ddbfb04b14b9f8341f4dea79076e">00152</a> <a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79" title="Provides an 8-bits unsigned integer.">uint8</a> <a class="code" href="structrpcap__header.html#d284ddbfb04b14b9f8341f4dea79076e" title="RPCAP version number.">ver</a>; <a name="l00153"></a><a class="code" href="structrpcap__header.html#0d5276797b2358f6093607c68006bde8">00153</a> <a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79" title="Provides an 8-bits unsigned integer.">uint8</a> <a class="code" href="structrpcap__header.html#0d5276797b2358f6093607c68006bde8" title="RPCAP message type (error, findalldevs, ...).">type</a>; <a name="l00154"></a><a class="code" href="structrpcap__header.html#4dd7e7f197e82dc6db279eed0a5dc820">00154</a> <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e" title="Provides a 16-bits unsigned integer.">uint16</a> <a class="code" href="structrpcap__header.html#4dd7e7f197e82dc6db279eed0a5dc820" title="Message-dependent value (not always used).">value</a>; <a name="l00155"></a><a class="code" href="structrpcap__header.html#9f51ae02e66e202ec26632a2bce78942">00155</a> <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e" title="Provides a 32-bits unsigned integer.">uint32</a> <a class="code" href="structrpcap__header.html#9f51ae02e66e202ec26632a2bce78942" title="Length of the payload of this RPCAP message.">plen</a>; <a name="l00156"></a>00156 };<a name="l00157"></a>00157 <a name="l00158"></a>00158 <a name="l00160"></a><a class="code" href="structrpcap__findalldevs__if.html">00160</a> <span class="keyword">struct </span><a class="code" href="structrpcap__findalldevs__if.html" title="Format of the message for the interface description (findalldevs command).">rpcap_findalldevs_if</a><a name="l00161"></a>00161 {<a name="l00162"></a><a class="code" href="structrpcap__findalldevs__if.html#b42bca1875d25b6ce19de3ff5309a0bf">00162</a> <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e" title="Provides a 16-bits unsigned integer.">uint16</a> <a class="code" href="structrpcap__findalldevs__if.html#b42bca1875d25b6ce19de3ff5309a0bf" title="Length of the interface name.">namelen</a>; <a name="l00163"></a><a class="code" href="structrpcap__findalldevs__if.html#9fe649a115732c913d126218054a9941">00163</a> <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e" title="Provides a 16-bits unsigned integer.">uint16</a> <a class="code" href="structrpcap__findalldevs__if.html#9fe649a115732c913d126218054a9941" title="Length of the interface description.">desclen</a>; <a name="l00164"></a><a class="code" href="structrpcap__findalldevs__if.html#81a27ce50e78368b0d0de1e8767fd32d">00164</a> <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e" title="Provides a 32-bits unsigned integer.">uint32</a> <a class="code" href="structrpcap__findalldevs__if.html#81a27ce50e78368b0d0de1e8767fd32d" title="Interface flags.">flags</a>; <a name="l00165"></a><a class="code" href="structrpcap__findalldevs__if.html#f6e199ccfaf5ab811cc064e09f3153c3">00165</a> <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e" title="Provides a 16-bits unsigned integer.">uint16</a> <a class="code" href="structrpcap__findalldevs__if.html#f6e199ccfaf5ab811cc064e09f3153c3" title="Number of addresses.">naddr</a>; <a name="l00166"></a><a class="code" href="structrpcap__findalldevs__if.html#39840d82c8fedd34d8b6d25ae4e374c7">00166</a> <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e" title="Provides a 16-bits unsigned integer.">uint16</a> <a class="code" href="structrpcap__findalldevs__if.html#39840d82c8fedd34d8b6d25ae4e374c7" title="Must be zero.">dummy</a>; <a name="l00167"></a>00167 };<a name="l00168"></a>00168 <a name="l00169"></a>00169 <a name="l00171"></a><a class="code" href="structrpcap__findalldevs__ifaddr.html">00171</a> <span class="keyword">struct </span><a class="code" href="structrpcap__findalldevs__ifaddr.html" title="Format of the message for the address listing (findalldevs command).">rpcap_findalldevs_ifaddr</a><a name="l00172"></a>00172 {<a name="l00173"></a><a class="code" href="structrpcap__findalldevs__ifaddr.html#7fe4b3f87e7a49d2520a0d26563bb921">00173</a> <span class="keyword">struct </span>sockaddr_storage <a class="code" href="structrpcap__findalldevs__ifaddr.html#7fe4b3f87e7a49d2520a0d26563bb921" title="Network address.">addr</a>; <a name="l00174"></a><a class="code" href="structrpcap__findalldevs__ifaddr.html#e65e589cf67e45f6c5b5bd05a068b1dd">00174</a> <span class="keyword">struct </span>sockaddr_storage <a class="code" href="structrpcap__findalldevs__ifaddr.html#e65e589cf67e45f6c5b5bd05a068b1dd" title="Netmask for that address.">netmask</a>; <a name="l00175"></a><a class="code" href="structrpcap__findalldevs__ifaddr.html#2689aec0100832e17df8795f1acfdef0">00175</a> <span class="keyword">struct </span>sockaddr_storage <a class="code" href="structrpcap__findalldevs__ifaddr.html#2689aec0100832e17df8795f1acfdef0" title="Broadcast address for that address.">broadaddr</a>; <a name="l00176"></a><a class="code" href="structrpcap__findalldevs__ifaddr.html#907e6142b6f02d26357a18525f2a32c1">00176</a> <span class="keyword">struct </span>sockaddr_storage <a class="code" href="structrpcap__findalldevs__ifaddr.html#907e6142b6f02d26357a18525f2a32c1" title="P2P destination address for that address.">dstaddr</a>; <a name="l00177"></a>00177 };<a name="l00178"></a>00178 <a name="l00179"></a>00179 <a name="l00180"></a>00180 <a name="l00186"></a><a class="code" href="structrpcap__openreply.html">00186</a> <span class="keyword">struct </span><a class="code" href="structrpcap__openreply.html" title="Format of the message of the connection opening reply (open command).">rpcap_openreply</a><a name="l00187"></a>00187 {<a name="l00188"></a><a class="code" href="structrpcap__openreply.html#114fd2309d7d5811a05db20605112955">00188</a> <a class="code" href="group__remote__pri__struct.html#g56f1a81c92849566ae864511088eb7e8" title="Provides a 32-bits integer.">int32</a> <a class="code" href="structrpcap__openreply.html#114fd2309d7d5811a05db20605112955" title="Link type.">linktype</a>; <a name="l00189"></a><a class="code" href="structrpcap__openreply.html#3d91df4637112c85432c1f3c59b2c5ae">00189</a> <a class="code" href="group__remote__pri__struct.html#g56f1a81c92849566ae864511088eb7e8" title="Provides a 32-bits integer.">int32</a> <a class="code" href="structrpcap__openreply.html#3d91df4637112c85432c1f3c59b2c5ae" title="Timezone offset.">tzoff</a>; <a name="l00190"></a>00190 };<a name="l00191"></a>00191 <a name="l00192"></a>00192 <a name="l00193"></a>00193 <a name="l00195"></a><a class="code" href="structrpcap__startcapreq.html">00195</a> <span class="keyword">struct </span><a class="code" href="structrpcap__startcapreq.html" title="Format of the message that starts a remote capture (startcap command).">rpcap_startcapreq</a><a name="l00196"></a>00196 {<a name="l00197"></a><a class="code" href="structrpcap__startcapreq.html#ebbb13cc569d948514d286df698443d2">00197</a> <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e" title="Provides a 32-bits unsigned integer.">uint32</a> <a class="code" href="structrpcap__startcapreq.html#ebbb13cc569d948514d286df698443d2" title="Length of the snapshot (number of bytes to capture for each packet).">snaplen</a>; <a name="l00198"></a><a class="code" href="structrpcap__startcapreq.html#189e41efb9a00f52c242e0287e341543">00198</a> <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e" title="Provides a 32-bits unsigned integer.">uint32</a> <a class="code" href="structrpcap__startcapreq.html#189e41efb9a00f52c242e0287e341543" title="Read timeout in milliseconds.">read_timeout</a>; <a name="l00199"></a><a class="code" href="structrpcap__startcapreq.html#e15f0808741c35cb9a8d231105d8beea">00199</a> <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e" title="Provides a 16-bits unsigned integer.">uint16</a> <a class="code" href="structrpcap__startcapreq.html#e15f0808741c35cb9a8d231105d8beea" title="Flags (see RPCAP_STARTCAPREQ_FLAG_xxx).">flags</a>; <a name="l00200"></a><a class="code" href="structrpcap__startcapreq.html#914e4f42058b208f03d04a65c902bff3">00200</a> <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e" title="Provides a 16-bits unsigned integer.">uint16</a> <a class="code" href="structrpcap__startcapreq.html#914e4f42058b208f03d04a65c902bff3" title="Network port on which the client is waiting at (if &#39;serveropen&#39;).">portdata</a>; <a name="l00201"></a>00201 };
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -