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

📄 funcs_2pcap_8h-source.html

📁 Winpcap是一个强大的网络开发库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<a name="l00358"></a>00358 <a name="l00378"></a>00378 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#g8325b202dad14a00609db8372722ae4e" title="Compile a packet filter without the need of opening an adapter. This function converts...">pcap_compile_nopcap</a>(<span class="keywordtype">int</span> snaplen_arg, <span class="keywordtype">int</span> linktype_arg, <span class="keyword">struct</span> bpf_program *program, <span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> optimize, <a class="code" href="group__wpcap__def.html#g37fdbc8313e90fb2041203a2e40cd482" title="32-bit unsigned integer">bpf_u_int32</a> mask);<a name="l00379"></a>00379 <a name="l00380"></a>00380 <a name="l00391"></a>00391 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#gf5f9cfe85dad0967ff607e5159b1ba61" title="Associate a filter to a capture.">pcap_setfilter</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> bpf_program *fp);<a name="l00392"></a>00392 <a name="l00393"></a>00393 <a name="l00404"></a>00404 <span class="keywordtype">void</span> <a class="code" href="group__wpcapfunc.html#g9e0a5aad1a5dc79d85f1edfcebe0ac13" title="Free a filter.">pcap_freecode</a>(<span class="keyword">struct</span> bpf_program *fp);<a name="l00405"></a>00405 <a name="l00485"></a>00485 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#g64c019f851f7da6892d51cca15f12ace" title="Return the link layer of an adapter.">pcap_datalink</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="l00486"></a>00486 <a name="l00496"></a>00496 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#g64e482360b0ed7d65fce1db23d56b921" title="list datalinks">pcap_list_datalinks</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> **dlt_buf);<a name="l00497"></a>00497 <a name="l00500"></a>00500 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#g9588b99ac118cf827873d9e941eb6c77" title="Set the current data link type of the pcap descriptor to the type specified by dlt...">pcap_set_datalink</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> dlt);<a name="l00501"></a>00501 <a name="l00506"></a>00506 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#g440b2f0757acd4804588933324909207" title="Translates a data link type name, which is a DLT_ name with the DLT_ removed, to...">pcap_datalink_name_to_val</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);<a name="l00507"></a>00507 <a name="l00511"></a>00511 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__wpcapfunc.html#gd45c16d494577f1886704af8f31ed442" title="Translates a data link type value to the corresponding data link type name. NULL...">pcap_datalink_val_to_name</a>(<span class="keywordtype">int</span> dlt);<a name="l00512"></a>00512 <a name="l00516"></a>00516 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__wpcapfunc.html#g3f142cd0694b49357e4a73371db71411" title="Translates a data link type value to a short description of that data link type....">pcap_datalink_val_to_description</a>(<span class="keywordtype">int</span> dlt);<a name="l00517"></a>00517 <a name="l00518"></a>00518 <a name="l00526"></a>00526 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#ge5c6e9768e89a6b82f9d720f37e6ab97" title="Return the dimension of the packet portion (in bytes) that is delivered to the application...">pcap_snapshot</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="l00527"></a>00527 <a name="l00528"></a>00528 <a name="l00532"></a>00532 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#gba4941e09e5e03ba39841de4b1d5d6a4" title="returns true if the current savefile uses a different byte order than the current...">pcap_is_swapped</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="l00533"></a>00533 <a name="l00534"></a>00534 <a name="l00539"></a>00539 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#g39dfb05149b443cc25b8febc455ca753" title="return the major version number of the pcap library used to write the savefile.">pcap_major_version</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="l00540"></a>00540 <a name="l00541"></a>00541 <a name="l00546"></a>00546 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#gc7a9dd9cd040ee500221cf35dfb49248" title="return the minor version number of the pcap library used to write the savefile.">pcap_minor_version</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="l00547"></a>00547 <a name="l00562"></a>00562 FILE *<a class="code" href="group__wpcapfunc.html#g4c9f5690b99fb2af1f8904403f7da06b" title="Return the standard stream of an offline capture.">pcap_file</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="l00563"></a>00563 <a name="l00578"></a>00578 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#gbbd74d8c3ce1bcbccc76129ac38f4549" title="Return statistics on current capture.">pcap_stats</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="l00579"></a>00579 <a name="l00584"></a>00584 <span class="keywordtype">void</span> <a class="code" href="group__wpcapfunc.html#gc3b6784c6c2623b93b22f6f219bd470e" title="print the text of the last pcap library error on stderr, prefixed by prefix.">pcap_perror</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">char</span> *prefix);<a name="l00585"></a>00585 <a name="l00586"></a>00586 <a name="l00596"></a>00596 <span class="keywordtype">char</span> *<a class="code" href="group__wpcapfunc.html#g81305cb154e4497e95bbb9b708631a3a" title="return the error text pertaining to the last pcap library error.">pcap_geterr</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="l00597"></a>00597 <a name="l00598"></a>00598 <a name="l00604"></a>00604 <span class="keywordtype">char</span> *<a class="code" href="group__wpcapfunc.html#gfac2067e8f66f5a5a87f19f5e2b5ad4f" title="Provided in case strerror() isn&amp;#39;t available.">pcap_strerror</a>(<span class="keywordtype">int</span> error);<a name="l00605"></a>00605 <a name="l00610"></a>00610 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__wpcapfunc.html#g2d92cec9ff55906b5b6fb883e4bd72f4" title="Returns a pointer to a string giving information about the version of the libpcap...">pcap_lib_version</a>(<span class="keywordtype">void</span>);<a name="l00611"></a>00611 <a name="l00617"></a>00617 <span class="keywordtype">void</span> <a class="code" href="group__wpcapfunc.html#ga45a5e1a4ba9925bb3586dcbeec78560" title="close the files associated with p and deallocates resources.">pcap_close</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="l00618"></a>00618 <a name="l00620"></a>00620 FILE *<a class="code" href="group__wpcapfunc.html#g8dac02f297422ff2ab5983d1e30c58b6" title="return the standard I/O stream of the &amp;#39;savefile&amp;#39; opened by pcap_dump_open()...">pcap_dump_file</a>(<a class="code" href="group__wpcap__def.html#gb8c7858aa3a7e3158d9d58cb113a2ae8" title="libpcap savefile descriptor.">pcap_dumper_t</a> *p);<a name="l00621"></a>00621 <a name="l00626"></a>00626 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#g90404ae3dcffcd3bbe78f8b187a88984" title="Flushes the output buffer to the ``savefile,&amp;#39;&amp;#39; so that any packets written...">pcap_dump_flush</a>(<a class="code" href="group__wpcap__def.html#gb8c7858aa3a7e3158d9d58cb113a2ae8" title="libpcap savefile descriptor.">pcap_dumper_t</a> *p);<a name="l00627"></a>00627 <a name="l00632"></a>00632 <span class="keywordtype">void</span> <a class="code" href="group__wpcapfunc.html#g3897795c1e9fb10571092febae964ef0" title="Closes a savefile.">pcap_dump_close</a>(<a class="code" href="group__wpcap__def.html#gb8c7858aa3a7e3158d9d58cb113a2ae8" title="libpcap savefile descriptor.">pcap_dumper_t</a> *p);<a name="l00633"></a>00633 <a name="l00634"></a>00634 <span class="comment">//\}</span><a name="l00635"></a>00635 <span class="comment">// End of Unix-compatible functions</span><a name="l00636"></a>00636 <a name="l00637"></a>00637 <a name="l00638"></a>00638 <a name="l00639"></a>00639 <a name="l00640"></a>00640 <a name="l00641"></a>00641 <a name="l00642"></a>00642 <a name="l00649"></a>00649 <span class="comment">//\{ </span><a name="l00650"></a>00650 

⌨️ 快捷键说明

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