⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pcap-remote_8h-source.html

📁 winpcap文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<a name="l00260"></a><a class="code" href="structrpcap__stats.html#1d0c9184d7f075a1237db76400b1b503">00260</a>     <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a> <a class="code" href="structrpcap__stats.html#1d0c9184d7f075a1237db76400b1b503">ifrecv</a>;      <a name="l00261"></a><a class="code" href="structrpcap__stats.html#1be6b9fbf42a7f74578974c611903f7d">00261</a>     <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a> <a class="code" href="structrpcap__stats.html#1be6b9fbf42a7f74578974c611903f7d">ifdrop</a>;      <a name="l00262"></a><a class="code" href="structrpcap__stats.html#498da3bcc201f4f77714798c5c6b03b5">00262</a>     <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a> <a class="code" href="structrpcap__stats.html#498da3bcc201f4f77714798c5c6b03b5">krnldrop</a>;    <a name="l00263"></a><a class="code" href="structrpcap__stats.html#42ea5a69add0a420c6cb2b8961482a76">00263</a>     <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a> <a class="code" href="structrpcap__stats.html#42ea5a69add0a420c6cb2b8961482a76">svrcapt</a>;     <a name="l00264"></a>00264 };<a name="l00265"></a>00265 <a name="l00266"></a>00266 <a name="l00268"></a><a class="code" href="structrpcap__sampling.html">00268</a> <span class="keyword">struct </span><a class="code" href="structrpcap__sampling.html">rpcap_sampling</a><a name="l00269"></a>00269 {<a name="l00270"></a><a class="code" href="structrpcap__sampling.html#a4da76ff1a3e6459e06e4d39af6bfef2">00270</a>     <a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> <a class="code" href="structrpcap__sampling.html#a4da76ff1a3e6459e06e4d39af6bfef2">method</a>;       <a name="l00271"></a><a class="code" href="structrpcap__sampling.html#c5a9635addc2e517659182ae5b8a6fe6">00271</a>     <a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> <a class="code" href="structrpcap__sampling.html#c5a9635addc2e517659182ae5b8a6fe6">dummy1</a>;       <a name="l00272"></a><a class="code" href="structrpcap__sampling.html#055fd5d9ca450d213ec8d0be4328251a">00272</a>     <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> <a class="code" href="structrpcap__sampling.html#055fd5d9ca450d213ec8d0be4328251a">dummy2</a>;      <a name="l00273"></a><a class="code" href="structrpcap__sampling.html#825a6aa3f85d5b289f6e1a3b3a2beb83">00273</a>     <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a> <a class="code" href="structrpcap__sampling.html#825a6aa3f85d5b289f6e1a3b3a2beb83">value</a>;       <a name="l00274"></a>00274 };<a name="l00275"></a>00275 <a name="l00276"></a>00276 <a name="l00277"></a>00277 <a name="l00278"></a>00278 <span class="comment">// Messages field coding</span><a name="l00279"></a><a class="code" href="group__remote__pri__struct.html#ge794b40128a8f48e8aab742c499e4c5c">00279</a> <span class="preprocessor">#define RPCAP_MSG_ERROR 1               </span><a name="l00280"></a><a class="code" href="group__remote__pri__struct.html#gc1cca8dabd5af5293a0e41515bc532a5">00280</a> <span class="preprocessor">#define RPCAP_MSG_FINDALLIF_REQ 2       </span><a name="l00281"></a><a class="code" href="group__remote__pri__struct.html#gc99b71c29a3177c663b099c417d1de91">00281</a> <span class="preprocessor">#define RPCAP_MSG_OPEN_REQ 3            </span><a name="l00282"></a><a class="code" href="group__remote__pri__struct.html#g082b424838496c8cc92dcadf6333b9e1">00282</a> <span class="preprocessor">#define RPCAP_MSG_STARTCAP_REQ 4        </span><a name="l00283"></a><a class="code" href="group__remote__pri__struct.html#g8c77cf6f710b92b3f87257e7d03d6677">00283</a> <span class="preprocessor">#define RPCAP_MSG_UPDATEFILTER_REQ 5    </span><a name="l00284"></a><a class="code" href="group__remote__pri__struct.html#gaca8c569d09dd1c7b2a7cfebe2ed5017">00284</a> <span class="preprocessor">#define RPCAP_MSG_CLOSE 6               </span><a name="l00285"></a><a class="code" href="group__remote__pri__struct.html#gaa605dc088c22dd9064a38d16a5199b9">00285</a> <span class="preprocessor">#define RPCAP_MSG_PACKET 7              </span><a name="l00286"></a><a class="code" href="group__remote__pri__struct.html#g967ed95127e15aae04df68d128b32dcd">00286</a> <span class="preprocessor">#define RPCAP_MSG_AUTH_REQ 8            </span><a name="l00287"></a><a class="code" href="group__remote__pri__struct.html#g29508e4fba57e33978c73997630b8159">00287</a> <span class="preprocessor">#define RPCAP_MSG_STATS_REQ 9           </span><a name="l00288"></a><a class="code" href="group__remote__pri__struct.html#gd6554d0a3e2e81d440a216e9ed207c99">00288</a> <span class="preprocessor">#define RPCAP_MSG_ENDCAP_REQ 10         </span><a name="l00289"></a><a class="code" href="group__remote__pri__struct.html#g2d8c7f1e4361c748ccc051c276f5eaa9">00289</a> <span class="preprocessor">#define RPCAP_MSG_SETSAMPLING_REQ 11    </span><a name="l00291"></a><a class="code" href="group__remote__pri__struct.html#gb60aca69282ead1088a4565d47bdc05e">00291</a> <span class="preprocessor">#define RPCAP_MSG_FINDALLIF_REPLY   (128+RPCAP_MSG_FINDALLIF_REQ)       </span><a name="l00292"></a><a class="code" href="group__remote__pri__struct.html#g753597c2ff993d12156d7922116b1835">00292</a> <span class="preprocessor">#define RPCAP_MSG_OPEN_REPLY        (128+RPCAP_MSG_OPEN_REQ)            </span><a name="l00293"></a><a class="code" href="group__remote__pri__struct.html#g22dcbe343e2103aef2e9856f93f40167">00293</a> <span class="preprocessor">#define RPCAP_MSG_STARTCAP_REPLY    (128+RPCAP_MSG_STARTCAP_REQ)        </span><a name="l00294"></a><a class="code" href="group__remote__pri__struct.html#geb2561c1c6c9b9c56f4ac14ab70f6c3a">00294</a> <span class="preprocessor">#define RPCAP_MSG_UPDATEFILTER_REPLY (128+RPCAP_MSG_UPDATEFILTER_REQ)   </span><a name="l00295"></a><a class="code" href="group__remote__pri__struct.html#g558198e22dad94774670d4901069761b">00295</a> <span class="preprocessor">#define RPCAP_MSG_AUTH_REPLY        (128+RPCAP_MSG_AUTH_REQ)            </span><a name="l00296"></a><a class="code" href="group__remote__pri__struct.html#g3d52f2b6b3210dcb4f0db7bd8b46138e">00296</a> <span class="preprocessor">#define RPCAP_MSG_STATS_REPLY       (128+RPCAP_MSG_STATS_REQ)           </span><a name="l00297"></a><a class="code" href="group__remote__pri__struct.html#g2994f9df11cfc2b2dd0e9a9d9ac4f37b">00297</a> <span class="preprocessor">#define RPCAP_MSG_ENDCAP_REPLY      (128+RPCAP_MSG_ENDCAP_REQ)          </span><a name="l00298"></a><a class="code" href="group__remote__pri__struct.html#g59a57a83acc395c5e508dda7b8c33bad">00298</a> <span class="preprocessor">#define RPCAP_MSG_SETSAMPLING_REPLY (128+RPCAP_MSG_SETSAMPLING_REQ)     </span><a name="l00300"></a><a class="code" href="group__remote__pri__struct.html#g3d0b7b3a3d97ebdd265ab800a004ae8c">00300</a> <span class="preprocessor">#define RPCAP_STARTCAPREQ_FLAG_PROMISC 1    </span><a name="l00301"></a><a class="code" href="group__remote__pri__struct.html#g3f87b7e89ed61dc2c9956234399058e8">00301</a> <span class="preprocessor">#define RPCAP_STARTCAPREQ_FLAG_DGRAM 2      </span><a name="l00302"></a><a class="code" href="group__remote__pri__struct.html#g0c5a71a9b6d5be2662c5a8872cf3032c">00302</a> <span class="preprocessor">#define RPCAP_STARTCAPREQ_FLAG_SERVEROPEN 4 </span><a name="l00303"></a><a class="code" href="group__remote__pri__struct.html#gc22aa6103fe1490ab908a26d5c4a7c8a">00303</a> <span class="preprocessor">#define RPCAP_STARTCAPREQ_FLAG_INBOUND 8    </span><a name="l00304"></a><a class="code" href="group__remote__pri__struct.html#g2b29630fe7963da543db242459c74832">00304</a> <span class="preprocessor">#define RPCAP_STARTCAPREQ_FLAG_OUTBOUND 16  </span><a name="l00306"></a><a class="code" href="group__remote__pri__struct.html#gc93bee6a0991d4334eacd6e451b54240">00306</a> <span class="preprocessor">#define RPCAP_UPDATEFILTER_BPF 1            </span><a name="l00309"></a>00309 <span class="preprocessor">// Network error codes</span><a name="l00310"></a><a class="code" href="group__remote__pri__struct.html#g281ffdbe28e312f9fe6bc22c4d14fd68">00310</a> <span class="preprocessor"></span><span class="preprocessor">#define PCAP_ERR_NETW 1                 </span><a name="l00311"></a><a class="code" href="group__remote__pri__struct.html#g43cc461cdabd8d39ca2346f10c233a1b">00311</a> <span class="preprocessor">#define PCAP_ERR_INITTIMEOUT 2          </span><a name="l00312"></a><a class="code" href="group__remote__pri__struct.html#g5c8c6dd12f4fcdeaefd0f8d4a67b3075">00312</a> <span class="preprocessor">#define PCAP_ERR_AUTH 3                 </span><a name="l00313"></a><a class="code" href="group__remote__pri__struct.html#gdfbdeb5279422bc65233eefeca885661">00313</a> <span class="preprocessor">#define PCAP_ERR_FINDALLIF 4            </span><a name="l00314"></a><a class="code" href="group__remote__pri__struct.html#g9f540070da23a5e61d0e27a61a300639">00314</a> <span class="preprocessor">#define PCAP_ERR_NOREMOTEIF 5           </span><a name="l00315"></a><a class="code" href="group__remote__pri__struct.html#g3bfdce6d89b764b103404a1ec08bc4f9">00315</a> <span class="preprocessor">#define PCAP_ERR_OPEN 6                 </span><a name="l00316"></a><a class="code" href="group__remote__pri__struct.html#ge12279008dbc82da60f457ae639d9c98">00316</a> <span class="preprocessor">#define PCAP_ERR_UPDATEFILTER 7         </span><a name="l00317"></a><a class="code" href="group__remote__pri__struct.html#gf2e8f37c8ecf045242e00d9d138d4130">00317</a> <span class="preprocessor">#define PCAP_ERR_GETSTATS 8             </span><a name="l00318"></a><a class="code" href="group__remote__pri__struct.html#g61631ebf63be764b06b1259fcded1b4d">00318</a> <span class="preprocessor">#define PCAP_ERR_READEX 9               </span><a name="l00319"></a><a class="code" href="group__remote__pri__struct.html#g77b7c5dbb7399e0f73c3105c181c0eba">00319</a> <span class="preprocessor">#define PCAP_ERR_HOSTNOAUTH 10          </span><a name="l00320"></a><a class="code" href="group__remote__pri__struct.html#g005853d9f448e2125b9c907cd68ae77a">00320</a> <span class="preprocessor">#define PCAP_ERR_REMOTEACCEPT 11        </span><a name="l00321"></a><a class="code" href="group__remote__pri__struct.html#g2342b31cd1b83713b43e29fc1b8bbe80">00321</a> <span class="preprocessor">#define PCAP_ERR_STARTCAPTURE 12        </span><a name="l00322"></a><a class="code" href="group__remote__pri__struct.html#g7237f6698352751c08de3b10ae711881">00322</a> <span class="preprocessor">#define PCAP_ERR_ENDCAPTURE 13          </span><a name="l00323"></a><a class="code" href="group__remote__pri__struct.html#g9a98b752c9427a52b1902b6a4aa9845a">00323</a> <span class="preprocessor">#define PCAP_ERR_RUNTIMETIMEOUT 14      </span><a name="l00324"></a><a class="code" href="group__remote__pri__struct.html#gd904f96dcd2dc7ead1f50e81d27a87ee">00324</a> <span class="preprocessor">#define PCAP_ERR_SETSAMPLING 15         </span><a name="l00325"></a><a class="code" href="group__remote__pri__struct.html#gadf8ebdb03c2852d32084792c32f5014">00325</a> <span class="preprocessor">#define PCAP_ERR_WRONGMSG 16            </span><a name="l00326"></a><a class="code" href="group__remote__pri__struct.html#g27644e4198a710a3fb6763464b4cceb8">00326</a> <span class="preprocessor">#define PCAP_ERR_WRONGVER 17             // end of private documentation</span><a name="l00330"></a>00330 <span class="preprocessor"></span><a name="l00331"></a>00331 <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 <span class="comment">/*********************************************************</span><a name="l00337"></a>00337 <span class="comment"> *                                                       *</span><a name="l00338"></a>00338 <span class="comment"> * Exported funtion prototypes                           *</span><a name="l00339"></a>00339 <span class="comment"> *                                                       *</span><a name="l00340"></a>00340 <span class="comment"> *********************************************************/</span><a name="l00341"></a>00341 <a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *<a class="code" href="pcap-remote_8h.html#6fe8659afb509c5c871ac9a3c8aa5938">pcap_opensource_remote</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *source, <span class="keyword">struct</span> <a class="code" href="structpcap__rmtauth.html">pcap_rmtauth</a> *auth, <span class="keywordtype">char</span> *errbuf);<a name="l00342"></a>00342 <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">pcap_t</a> *fp);<a name="l00343"></a>00343 <a name="l00344"></a>00344 <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">pcap_t</a> *p, <span class="keyword">struct</span> <a class="code" href="structpcap__pkthdr.html">pcap_pkthdr</a> **pkt_header, u_char **pkt_data);<a name="l00345"></a>00345 <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">pcap_t</a> *p, <span class="keywordtype">int</span> cnt, <a class="code" href="group__wpcapfunc.html#gc429cf4f27205111259ff7b02a82eeab">pcap_handler</a> callback, u_char *user);<a name="l00346"></a>00346 <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">pcap_t</a> *fp, <span class="keyword">struct</span> bpf_program *prog);<a name="l00347"></a>00347 <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">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#566a5e39d86edb314005ed4fed4d2b99">pcap_stats_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p, <span class="keyword">struct</span> <a class="code" href="structpcap__stat.html">pcap_stat</a> *ps);<a name="l00349"></a>00349 <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">pcap_t</a> *p);<a name="l00350"></a>00350 <span class="keyword">struct </span><a class="code" href="structpcap__stat.html">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">pcap_t</a> *p);<a name="l00351"></a>00351 <span class="keywordtype">void</span> <a class="code" href="pcap-remote_8h.html#8dff348dc7f0a333aa79ca5943a18e2a">pcap_close_remote</a>(<a class="code" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p);<a name="l00352"></a>00352 <a name="l00353"></a>00353 <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">rpcap_header</a> *header, <a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> type, <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> value, <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a> length);<a name="l00354"></a>00354 <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="l00355"></a>00355 <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">rpcap_header</a> *header, <a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> first, ...);<a name="l00356"></a>00356 <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="l00357"></a>00357 <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">pcap_rmtauth</a> *auth, <span class="keywordtype">char</span> *errbuf);<a name="l00358"></a>00358 <a name="l00359"></a>00359 <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="l00360"></a>00360 <a name="l00361"></a>00361 <span class="preprocessor">#endif</span><a name="l00362"></a>00362 <span class="preprocessor"></span></pre></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-2007 CACE Technologies. All rights reserved.</p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -