📄 pcap-remote_8h-source.html
字号:
<a name="l00202"></a>00202 <a name="l00203"></a>00203 <a name="l00205"></a><a class="code" href="structrpcap__startcapreply.html">00205</a> <span class="keyword">struct </span><a class="code" href="structrpcap__startcapreply.html" title="Format of the reply message that devoted to start a remote capture (startcap reply...">rpcap_startcapreply</a><a name="l00206"></a>00206 {<a name="l00207"></a><a class="code" href="structrpcap__startcapreply.html#115866b96012076ded74e527b0e082ea">00207</a> <a class="code" href="group__remote__pri__struct.html#g56f1a81c92849566ae864511088eb7e8" title="Provides a 32-bits integer.">int32</a> <a class="code" href="structrpcap__startcapreply.html#115866b96012076ded74e527b0e082ea" title="Size of the user buffer allocated by WinPcap; it can be different from the one we...">bufsize</a>; <a name="l00208"></a><a class="code" href="structrpcap__startcapreply.html#914e4f42058b208f03d04a65c902bff3">00208</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__startcapreply.html#914e4f42058b208f03d04a65c902bff3" title="Network port on which the server is waiting at (passive mode only).">portdata</a>; <a name="l00209"></a><a class="code" href="structrpcap__startcapreply.html#39840d82c8fedd34d8b6d25ae4e374c7">00209</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__startcapreply.html#39840d82c8fedd34d8b6d25ae4e374c7" title="Must be zero.">dummy</a>; <a name="l00210"></a>00210 };<a name="l00211"></a>00211 <a name="l00212"></a>00212 <a name="l00219"></a><a class="code" href="structrpcap__pkthdr.html">00219</a> <span class="keyword">struct </span><a class="code" href="structrpcap__pkthdr.html" title="Format of the header which encapsulates captured packets when transmitted on the...">rpcap_pkthdr</a><a name="l00220"></a>00220 {<a name="l00221"></a><a class="code" href="structrpcap__pkthdr.html#0878eda64803556abde60998d96cae36">00221</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__pkthdr.html#0878eda64803556abde60998d96cae36" title="&#39;struct timeval&#39; compatible, it represents the &#39;tv_sec&#39; field">timestamp_sec</a>; <a name="l00222"></a><a class="code" href="structrpcap__pkthdr.html#590071a7578068cca2e22ab465a8af68">00222</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__pkthdr.html#590071a7578068cca2e22ab465a8af68" title="&#39;struct timeval&#39; compatible, it represents the &#39;tv_usec&#39; field">timestamp_usec</a>; <a name="l00223"></a><a class="code" href="structrpcap__pkthdr.html#7219d531cfc6ceb3447db730ffd11794">00223</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__pkthdr.html#7219d531cfc6ceb3447db730ffd11794" title="Length of portion present in the capture.">caplen</a>; <a name="l00224"></a><a class="code" href="structrpcap__pkthdr.html#63941c3a03dc9736f3234bb756d9a305">00224</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__pkthdr.html#63941c3a03dc9736f3234bb756d9a305" title="Real length this packet (off wire).">len</a>; <a name="l00225"></a><a class="code" href="structrpcap__pkthdr.html#18dee93b2d48c10546eb5637ba48405d">00225</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__pkthdr.html#18dee93b2d48c10546eb5637ba48405d" title="Ordinal number of the packet (i.e. the first one captured has &#39;1&#39;, the second...">npkt</a>; <a name="l00226"></a>00226 };<a name="l00227"></a>00227 <a name="l00228"></a>00228 <a name="l00230"></a><a class="code" href="structrpcap__filter.html">00230</a> <span class="keyword">struct </span><a class="code" href="structrpcap__filter.html" title="General header used for the pcap_setfilter() command; keeps just the number of BPF...">rpcap_filter</a><a name="l00231"></a>00231 {<a name="l00232"></a><a class="code" href="structrpcap__filter.html#1d9d57b94681191242914430f33b34f0">00232</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__filter.html#1d9d57b94681191242914430f33b34f0" title="type of the filter transferred (BPF instructions, ...)">filtertype</a>; <a name="l00233"></a><a class="code" href="structrpcap__filter.html#39840d82c8fedd34d8b6d25ae4e374c7">00233</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__filter.html#39840d82c8fedd34d8b6d25ae4e374c7" title="Must be zero.">dummy</a>; <a name="l00234"></a><a class="code" href="structrpcap__filter.html#fa9a77743030f7cbceae9cffa2f8b311">00234</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__filter.html#fa9a77743030f7cbceae9cffa2f8b311" title="Number of items contained into the filter (e.g. BPF instructions for BPF filters)...">nitems</a>; <a name="l00235"></a>00235 };<a name="l00236"></a>00236 <a name="l00237"></a>00237 <a name="l00239"></a><a class="code" href="structrpcap__filterbpf__insn.html">00239</a> <span class="keyword">struct </span><a class="code" href="structrpcap__filterbpf__insn.html" title="Structure that keeps a single BPF instuction; it is repeated &#39;ninsn&#39; times...">rpcap_filterbpf_insn</a><a name="l00240"></a>00240 {<a name="l00241"></a><a class="code" href="structrpcap__filterbpf__insn.html#17ec1b1641303c1995e0ca66ae938603">00241</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__filterbpf__insn.html#17ec1b1641303c1995e0ca66ae938603" title="opcode of the instuction">code</a>; <a name="l00242"></a><a class="code" href="structrpcap__filterbpf__insn.html#d4d266bd45e28984c672e886adb82907">00242</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__filterbpf__insn.html#d4d266bd45e28984c672e886adb82907" title="relative offset to jump to in case of &#39;true&#39;">jt</a>; <a name="l00243"></a><a class="code" href="structrpcap__filterbpf__insn.html#b2a6ab7330382a0e09a46b17ecbd1f9a">00243</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__filterbpf__insn.html#b2a6ab7330382a0e09a46b17ecbd1f9a" title="relative offset to jump to in case of &#39;false&#39;">jf</a>; <a name="l00244"></a><a class="code" href="structrpcap__filterbpf__insn.html#df462c7c841cf6945d8552684393efcf">00244</a> <a class="code" href="group__remote__pri__struct.html#g56f1a81c92849566ae864511088eb7e8" title="Provides a 32-bits integer.">int32</a> <a class="code" href="structrpcap__filterbpf__insn.html#df462c7c841cf6945d8552684393efcf" title="instruction-dependent value">k</a>; <a name="l00245"></a>00245 };<a name="l00246"></a>00246 <a name="l00247"></a>00247 <a name="l00249"></a><a class="code" href="structrpcap__auth.html">00249</a> <span class="keyword">struct </span><a class="code" href="structrpcap__auth.html" title="Structure that keeps the data required for the authentication on the remote host...">rpcap_auth</a><a name="l00250"></a>00250 {<a name="l00251"></a><a class="code" href="structrpcap__auth.html#f9b2e23a8f32ca09cfeb7d828436fb01">00251</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__auth.html#f9b2e23a8f32ca09cfeb7d828436fb01" title="Authentication type.">type</a>; <a name="l00252"></a><a class="code" href="structrpcap__auth.html#39840d82c8fedd34d8b6d25ae4e374c7">00252</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__auth.html#39840d82c8fedd34d8b6d25ae4e374c7" title="Must be zero.">dummy</a>; <a name="l00253"></a><a class="code" href="structrpcap__auth.html#893c04f91ad73ad97125a7b451ad9f79">00253</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__auth.html#893c04f91ad73ad97125a7b451ad9f79" title="Length of the first authentication item (e.g. username).">slen1</a>; <a name="l00254"></a><a class="code" href="structrpcap__auth.html#a8114dce6bebe43b9a350a9716128cd1">00254</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__auth.html#a8114dce6bebe43b9a350a9716128cd1" title="Length of the second authentication item (e.g. password).">slen2</a>; <a name="l00255"></a>00255 };<a name="l00256"></a>00256 <a name="l00257"></a>00257 <a name="l00259"></a><a class="code" href="structrpcap__stats.html">00259</a> <span class="keyword">struct </span><a class="code" href="structrpcap__stats.html" title="Structure that keeps the statistics about the number of packets captured, dropped...">rpcap_stats</a><a name="l00260"></a>00260 {<a name="l00261"></a><a class="code" href="structrpcap__stats.html#1d0c9184d7f075a1237db76400b1b503">00261</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__stats.html#1d0c9184d7f075a1237db76400b1b503" title="Packets received by the kernel filter (i.e. pcap_stats.ps_recv).">ifrecv</a>; <a name="l00262"></a><a class="code" href="structrpcap__stats.html#1be6b9fbf42a7f74578974c611903f7d">00262</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__stats.html#1be6b9fbf42a7f74578974c611903f7d" title="Packets dropped by the network interface (e.g. not enough buffers) (i.e. pcap_stats...">ifdrop</a>; <a name="l00263"></a><a class="code" href="structrpcap__stats.html#498da3bcc201f4f77714798c5c6b03b5">00263</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__stats.html#498da3bcc201f4f77714798c5c6b03b5" title="Packets dropped by the kernel filter (i.e. pcap_stats.ps_drop).">krnldrop</a>; <a name="l00264"></a><a class="code" href="structrpcap__stats.html#42ea5a69add0a420c6cb2b8961482a76">00264</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__stats.html#42ea5a69add0a420c6cb2b8961482a76" title="Packets captured by the RPCAP daemon and sent on the network.">svrcapt</a>; <a name="l00265"></a>00265 };<a name="l00266"></a>00266 <a name="l00267"></a>00267 <a name="l00269"></a><a class="code" href="structrpcap__sampling.html">00269</a> <span class="keyword">struct </span><a class="code" href="structrpcap__sampling.html" title="Structure that is needed to set sampling parameters.">rpcap_sampling</a><a name="l00270"></a>00270 {<a name="l00271"></a><a class="code" href="structrpcap__sampling.html#a4da76ff1a3e6459e06e4d39af6bfef2">00271</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__sampling.html#a4da76ff1a3e6459e06e4d39af6bfef2" title="Sampling method.">method</a>; <a name="l00272"></a><a class="code" href="structrpcap__sampling.html#c5a9635addc2e517659182ae5b8a6fe6">00272</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__sampling.html#c5a9635addc2e517659182ae5b8a6fe6" title="Must be zero.">dummy1</a>; <a name="l00273"></a><a class="code" href="structrpcap__sampling.html#055fd5d9ca450d213ec8d0be4328251a">00273</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__sampling.html#055fd5d9ca450d213ec8d0be4328251a" title="Must be zero.">dummy2</a>; <a name="l00274"></a><a class="code" href="structrpcap__sampling.html#825a6aa3f85d5b289f6e1a3b3a2beb83">00274</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__sampling.html#825a6aa3f85d5b289f6e1a3b3a2beb83" title="Parameter related to the sampling method.">value</a>; <a name="l00275"></a>00275 };<a name="l00276"></a>00276 <a name="l00277"></a>00277 <a name="l00278"></a>00278 <a name="l00279"></a>00279 <span class="comment">// Messages field coding</span><a name="l00280"></a><a class="code" href="group__remote__pri__struct.html#ge794b40128a8f48e8aab742c499e4c5c">00280</a> <span class="preprocessor">#define RPCAP_MSG_ERROR 1 </span><a name="l00281"></a><a class="code" href="group__remote__pri__struct.html#gc1cca8dabd5af5293a0e41515bc532a5">00281</a> <span class="preprocessor">#define RPCAP_MSG_FINDALLIF_REQ 2 </span><a name="l00282"></a><a class="code" href="group__remote__pri__struct.html#gc99b71c29a3177c663b099c417d1de91">00282</a> <span class="preprocessor">#define RPCAP_MSG_OPEN_REQ 3 </span><a name="l00283"></a><a class="code" href="group__remote__pri__struct.html#g082b424838496c8cc92dcadf6333b9e1">00283</a> <span class="preprocessor">#define RPCAP_MSG_STARTCAP_REQ 4 </span><a name="l00284"></a><a class="code" href="group__remote__pri__struct.html#g8c77cf6f710b92b3f87257e7d03d6677">00284</a> <span class="preprocessor">#define RPCAP_MSG_UPDATEFILTER_REQ 5 </span><a name="l00285"></a><a class="code" href="group__remote__pri__struct.html#gaca8c569d09dd1c7b2a7cfebe2ed5017">00285</a> <span class="preprocessor">#define RPCAP_MSG_CLOSE 6 </span><a name="l00286"></a><a class="code" href="group__remote__pri__struct.html#gaa605dc088c22dd9064a38d16a5199b9">00286</a> <span class="preprocessor">#define RPCAP_MSG_PACKET 7 </span><a name="l00287"></a><a class="code" href="group__remote__pri__struct.html#g967ed95127e15aae04df68d128b32dcd">00287</a> <span class="preprocessor">#define RPCAP_MSG_AUTH_REQ 8 </span><a name="l00288"></a><a class="code" href="group__remote__pri__struct.html#g29508e4fba57e33978c73997630b8159">00288</a> <span class="preprocessor">#define RPCAP_MSG_STATS_REQ 9 </span>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -