📄 pcap-remote_8h-source.html
字号:
<a name="l00289"></a><a class="code" href="group__remote__pri__struct.html#gd6554d0a3e2e81d440a216e9ed207c99">00289</a> <span class="preprocessor">#define RPCAP_MSG_ENDCAP_REQ 10 </span><a name="l00290"></a><a class="code" href="group__remote__pri__struct.html#g2d8c7f1e4361c748ccc051c276f5eaa9">00290</a> <span class="preprocessor">#define RPCAP_MSG_SETSAMPLING_REQ 11 </span><a name="l00292"></a><a class="code" href="group__remote__pri__struct.html#gb60aca69282ead1088a4565d47bdc05e">00292</a> <span class="preprocessor">#define RPCAP_MSG_FINDALLIF_REPLY (128+RPCAP_MSG_FINDALLIF_REQ) </span><a name="l00293"></a><a class="code" href="group__remote__pri__struct.html#g753597c2ff993d12156d7922116b1835">00293</a> <span class="preprocessor">#define RPCAP_MSG_OPEN_REPLY (128+RPCAP_MSG_OPEN_REQ) </span><a name="l00294"></a><a class="code" href="group__remote__pri__struct.html#g22dcbe343e2103aef2e9856f93f40167">00294</a> <span class="preprocessor">#define RPCAP_MSG_STARTCAP_REPLY (128+RPCAP_MSG_STARTCAP_REQ) </span><a name="l00295"></a><a class="code" href="group__remote__pri__struct.html#geb2561c1c6c9b9c56f4ac14ab70f6c3a">00295</a> <span class="preprocessor">#define RPCAP_MSG_UPDATEFILTER_REPLY (128+RPCAP_MSG_UPDATEFILTER_REQ) </span><a name="l00296"></a><a class="code" href="group__remote__pri__struct.html#g558198e22dad94774670d4901069761b">00296</a> <span class="preprocessor">#define RPCAP_MSG_AUTH_REPLY (128+RPCAP_MSG_AUTH_REQ) </span><a name="l00297"></a><a class="code" href="group__remote__pri__struct.html#g3d52f2b6b3210dcb4f0db7bd8b46138e">00297</a> <span class="preprocessor">#define RPCAP_MSG_STATS_REPLY (128+RPCAP_MSG_STATS_REQ) </span><a name="l00298"></a><a class="code" href="group__remote__pri__struct.html#g2994f9df11cfc2b2dd0e9a9d9ac4f37b">00298</a> <span class="preprocessor">#define RPCAP_MSG_ENDCAP_REPLY (128+RPCAP_MSG_ENDCAP_REQ) </span><a name="l00299"></a><a class="code" href="group__remote__pri__struct.html#g59a57a83acc395c5e508dda7b8c33bad">00299</a> <span class="preprocessor">#define RPCAP_MSG_SETSAMPLING_REPLY (128+RPCAP_MSG_SETSAMPLING_REQ) </span><a name="l00301"></a><a class="code" href="group__remote__pri__struct.html#g3d0b7b3a3d97ebdd265ab800a004ae8c">00301</a> <span class="preprocessor">#define RPCAP_STARTCAPREQ_FLAG_PROMISC 1 </span><a name="l00302"></a><a class="code" href="group__remote__pri__struct.html#g3f87b7e89ed61dc2c9956234399058e8">00302</a> <span class="preprocessor">#define RPCAP_STARTCAPREQ_FLAG_DGRAM 2 </span><a name="l00303"></a><a class="code" href="group__remote__pri__struct.html#g0c5a71a9b6d5be2662c5a8872cf3032c">00303</a> <span class="preprocessor">#define RPCAP_STARTCAPREQ_FLAG_SERVEROPEN 4 </span><a name="l00304"></a><a class="code" href="group__remote__pri__struct.html#gc22aa6103fe1490ab908a26d5c4a7c8a">00304</a> <span class="preprocessor">#define RPCAP_STARTCAPREQ_FLAG_INBOUND 8 </span><a name="l00305"></a><a class="code" href="group__remote__pri__struct.html#g2b29630fe7963da543db242459c74832">00305</a> <span class="preprocessor">#define RPCAP_STARTCAPREQ_FLAG_OUTBOUND 16 </span><a name="l00307"></a><a class="code" href="group__remote__pri__struct.html#gc93bee6a0991d4334eacd6e451b54240">00307</a> <span class="preprocessor">#define RPCAP_UPDATEFILTER_BPF 1 </span><a name="l00310"></a>00310 <span class="preprocessor">// Network error codes</span><a name="l00311"></a><a class="code" href="group__remote__pri__struct.html#g281ffdbe28e312f9fe6bc22c4d14fd68">00311</a> <span class="preprocessor"></span><span class="preprocessor">#define PCAP_ERR_NETW 1 </span><a name="l00312"></a><a class="code" href="group__remote__pri__struct.html#g43cc461cdabd8d39ca2346f10c233a1b">00312</a> <span class="preprocessor">#define PCAP_ERR_INITTIMEOUT 2 </span><a name="l00313"></a><a class="code" href="group__remote__pri__struct.html#g5c8c6dd12f4fcdeaefd0f8d4a67b3075">00313</a> <span class="preprocessor">#define PCAP_ERR_AUTH 3 </span><a name="l00314"></a><a class="code" href="group__remote__pri__struct.html#gdfbdeb5279422bc65233eefeca885661">00314</a> <span class="preprocessor">#define PCAP_ERR_FINDALLIF 4 </span><a name="l00315"></a><a class="code" href="group__remote__pri__struct.html#g9f540070da23a5e61d0e27a61a300639">00315</a> <span class="preprocessor">#define PCAP_ERR_NOREMOTEIF 5 </span><a name="l00316"></a><a class="code" href="group__remote__pri__struct.html#g3bfdce6d89b764b103404a1ec08bc4f9">00316</a> <span class="preprocessor">#define PCAP_ERR_OPEN 6 </span><a name="l00317"></a><a class="code" href="group__remote__pri__struct.html#ge12279008dbc82da60f457ae639d9c98">00317</a> <span class="preprocessor">#define PCAP_ERR_UPDATEFILTER 7 </span><a name="l00318"></a><a class="code" href="group__remote__pri__struct.html#gf2e8f37c8ecf045242e00d9d138d4130">00318</a> <span class="preprocessor">#define PCAP_ERR_GETSTATS 8 </span><a name="l00319"></a><a class="code" href="group__remote__pri__struct.html#g61631ebf63be764b06b1259fcded1b4d">00319</a> <span class="preprocessor">#define PCAP_ERR_READEX 9 </span><a name="l00320"></a><a class="code" href="group__remote__pri__struct.html#g77b7c5dbb7399e0f73c3105c181c0eba">00320</a> <span class="preprocessor">#define PCAP_ERR_HOSTNOAUTH 10 </span><a name="l00321"></a><a class="code" href="group__remote__pri__struct.html#g005853d9f448e2125b9c907cd68ae77a">00321</a> <span class="preprocessor">#define PCAP_ERR_REMOTEACCEPT 11 </span><a name="l00322"></a><a class="code" href="group__remote__pri__struct.html#g2342b31cd1b83713b43e29fc1b8bbe80">00322</a> <span class="preprocessor">#define PCAP_ERR_STARTCAPTURE 12 </span><a name="l00323"></a><a class="code" href="group__remote__pri__struct.html#g7237f6698352751c08de3b10ae711881">00323</a> <span class="preprocessor">#define PCAP_ERR_ENDCAPTURE 13 </span><a name="l00324"></a><a class="code" href="group__remote__pri__struct.html#g9a98b752c9427a52b1902b6a4aa9845a">00324</a> <span class="preprocessor">#define PCAP_ERR_RUNTIMETIMEOUT 14 </span><a name="l00325"></a><a class="code" href="group__remote__pri__struct.html#gd904f96dcd2dc7ead1f50e81d27a87ee">00325</a> <span class="preprocessor">#define PCAP_ERR_SETSAMPLING 15 </span><a name="l00326"></a><a class="code" href="group__remote__pri__struct.html#gadf8ebdb03c2852d32084792c32f5014">00326</a> <span class="preprocessor">#define PCAP_ERR_WRONGMSG 16 </span><a name="l00327"></a><a class="code" href="group__remote__pri__struct.html#g27644e4198a710a3fb6763464b4cceb8">00327</a> <span class="preprocessor">#define PCAP_ERR_WRONGVER 17 // end of private documentation</span><a name="l00331"></a>00331 <span class="preprocessor"></span><a name="l00332"></a>00332 <a name="l00333"></a>00333 <a name="l00334"></a>00334 <a name="l00335"></a>00335 <a name="l00336"></a>00336 <a name="l00337"></a>00337 <span class="comment">/*********************************************************</span><a name="l00338"></a>00338 <span class="comment"> * *</span><a name="l00339"></a>00339 <span class="comment"> * Exported funtion prototypes *</span><a name="l00340"></a>00340 <span class="comment"> * *</span><a name="l00341"></a>00341 <span class="comment"> *********************************************************/</span><a name="l00342"></a>00342 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#a37a07d9cf44445b81602b14c622e28a">pcap_opensource_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7" title="Descriptor of an open capture instance. This structure is opaque to the user, that...">pcap_t</a> *p, <span class="keyword">struct</span> <a class="code" href="structpcap__rmtauth.html" title="This structure keeps the information needed to autheticate the user on a remote machine...">pcap_rmtauth</a> *auth);<a name="l00343"></a>00343 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#0ad8f765bf454e69b98f97a3e2b002e7">pcap_startcapture_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7" title="Descriptor of an open capture instance. This structure is opaque to the user, that...">pcap_t</a> *fp);<a name="l00344"></a>00344 <a name="l00345"></a>00345 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#9592679e3e00af097835b4dfc5f2dbaa">pcap_read_nocb_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7" title="Descriptor of an open capture instance. This structure is opaque to the user, that...">pcap_t</a> *p, <span class="keyword">struct</span> <a class="code" href="structpcap__pkthdr.html" title="Header of a packet in the dump file.">pcap_pkthdr</a> **pkt_header, u_char **pkt_data);<a name="l00346"></a>00346 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#b0db6e07bf653640fd14650aeffe5d5a">pcap_read_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7" title="Descriptor of an open capture instance. This structure is opaque to the user, that...">pcap_t</a> *p, <span class="keywordtype">int</span> cnt, <a class="code" href="group__wpcapfunc.html#gbcba231c099919ecd9300d7160b19878" title="Prototype of the callback function that receives the packets.">pcap_handler</a> callback, u_char *user);<a name="l00347"></a>00347 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#27b8e02d428568edb810e6eca02f1c49">pcap_updatefilter_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7" title="Descriptor of an open capture instance. This structure is opaque to the user, that...">pcap_t</a> *fp, <span class="keyword">struct</span> bpf_program *prog);<a name="l00348"></a>00348 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#3e12964f562dd76e1094d927cbe27b25">pcap_setfilter_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7" title="Descriptor of an open capture instance. This structure is opaque to the user, that...">pcap_t</a> *fp, <span class="keyword">struct</span> bpf_program *prog);<a name="l00349"></a>00349 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#566a5e39d86edb314005ed4fed4d2b99">pcap_stats_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7" title="Descriptor of an open capture instance. This structure is opaque to the user, that...">pcap_t</a> *p, <span class="keyword">struct</span> <a class="code" href="structpcap__stat.html" title="Structure that keeps statistical values on an interface.">pcap_stat</a> *ps);<a name="l00350"></a>00350 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#e70f189ef09ba80aa809365854f2875a">pcap_setsampling_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7" title="Descriptor of an open capture instance. This structure is opaque to the user, that...">pcap_t</a> *p);<a name="l00351"></a>00351 <span class="keyword">struct </span><a class="code" href="structpcap__stat.html" title="Structure that keeps statistical values on an interface.">pcap_stat</a> *<a class="code" href="pcap-remote_8h.html#6e9d9cdb69408ad2b1221c8f5dcc3c80">pcap_stats_ex_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7" title="Descriptor of an open capture instance. This structure is opaque to the user, that...">pcap_t</a> *p);<a name="l00352"></a>00352 <span class="keywordtype">void</span> <a class="code" href="pcap-remote_8h.html#26b01d5a63ab6498293ec372b32c4860">pcap_cleanup_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7" title="Descriptor of an open capture instance. This structure is opaque to the user, that...">pcap_t</a> *p);<a name="l00353"></a>00353 <a name="l00354"></a>00354 <span class="keywordtype">void</span> <a class="code" href="pcap-remote_8h.html#16e3637e641d12618e4bef76fa2fcf2e">rpcap_createhdr</a>(<span class="keyword">struct</span> <a class="code" href="structrpcap__header.html" title="Common header for all the RPCAP messages.">rpcap_header</a> *header, <a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79" title="Provides an 8-bits unsigned integer.">uint8</a> type, <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e" title="Provides a 16-bits unsigned integer.">uint16</a> value, <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e" title="Provides a 32-bits unsigned integer.">uint32</a> length);<a name="l00355"></a>00355 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#67250f8933f1b6c261e9bd4136c4f2af">rpcap_deseraddr</a>(<span class="keyword">struct</span> sockaddr_storage *sockaddrin, <span class="keyword">struct</span> sockaddr_storage **sockaddrout, <span class="keywordtype">char</span> *errbuf);<a name="l00356"></a>00356 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#ac91069eff112ab360f3834fa58ff53d">rpcap_checkmsg</a>(<span class="keywordtype">char</span> *errbuf, SOCKET sock, <span class="keyword">struct</span> <a class="code" href="structrpcap__header.html" title="Common header for all the RPCAP messages.">rpcap_header</a> *header, <a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79" title="Provides an 8-bits unsigned integer.">uint8</a> first, ...);<a name="l00357"></a>00357 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#7e311277cf79afe58e6683f24cd14b65">rpcap_senderror</a>(SOCKET sock, <span class="keywordtype">char</span> *error, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> errcode, <span class="keywordtype">char</span> *errbuf);<a name="l00358"></a>00358 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#29144d786cbb343587611df6d4283886">rpcap_sendauth</a>(SOCKET sock, <span class="keyword">struct</span> <a class="code" href="structpcap__rmtauth.html" title="This structure keeps the information needed to autheticate the user on a remote machine...">pcap_rmtauth</a> *auth, <span class="keywordtype">char</span> *errbuf);<a name="l00359"></a>00359 <a name="l00360"></a>00360 <span class="keywordtype">int</span> <a class="code" href="pcap-remote_8h.html#e0fb2ae444215e729811d958fea0309e">rpcap_remoteact_getsock</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="wpcap__remote_8htm.html#3c46d79c790748a5942fb43baa6b3073">host</a>, <span class="keywordtype">char</span> *errbuf);<a name="l00361"></a>00361 <a name="l00362"></a>00362 <span class="preprocessor">#endif</span><a name="l00363"></a>00363 <span class="preprocessor"></span></pre></div></div><hr><p align="right"><img border="0" src="winpcap_small.gif" align="absbottom" width="91" height="27">documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2008CACE Technologies. All rights reserved.</p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -