📄 win32-extensions_8h-source.html
字号:
<a name="l00053"></a><a class="code" href="Win32-Extensions_8h.html#59f37277a1b82cbf46112f0e97485696">00053</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpcap__send__queue.html" title="A queue of raw packets that will be sent to the network with pcap_sendqueue_transmit()...">pcap_send_queue</a> <a class="code" href="structpcap__send__queue.html" title="A queue of raw packets that will be sent to the network with pcap_sendqueue_transmit()...">pcap_send_queue</a>;<a name="l00054"></a>00054 <a name="l00058"></a>00058 <span class="preprocessor">#if !defined(AIRPCAP_HANDLE__EAE405F5_0171_9592_B3C2_C19EC426AD34__DEFINED_)</span><a name="l00059"></a><a class="code" href="Win32-Extensions_8h.html#c635b6b5d4d6d9958cfb72d44550bd36">00059</a> <span class="preprocessor"></span><span class="preprocessor">#define AIRPCAP_HANDLE__EAE405F5_0171_9592_B3C2_C19EC426AD34__DEFINED_</span><a name="l00060"></a><a class="code" href="Win32-Extensions_8h.html#adfdcc0e37082d8f6b28a43ec9a0bccf">00060</a> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>_AirpcapHandle *<a class="code" href="Win32-Extensions_8h.html#adfdcc0e37082d8f6b28a43ec9a0bccf">PAirpcapHandle</a>;<a name="l00061"></a>00061 <span class="preprocessor">#endif</span><a name="l00062"></a>00062 <span class="preprocessor"></span><a name="l00063"></a><a class="code" href="Win32-Extensions_8h.html#8b0c82df581e67530cb69b0c737f6d13">00063</a> <span class="preprocessor">#define BPF_MEM_EX_IMM 0xc0</span><a name="l00064"></a><a class="code" href="Win32-Extensions_8h.html#e9464818b3ae1e14e27bf7dc2a7d0a55">00064</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_MEM_EX_IND 0xe0</span><a name="l00065"></a>00065 <span class="preprocessor"></span><a name="l00066"></a>00066 <span class="comment">/*used for ST*/</span><a name="l00067"></a><a class="code" href="Win32-Extensions_8h.html#5be0e4575ff0738e013bf0f3b76dc7be">00067</a> <span class="preprocessor">#define BPF_MEM_EX 0xc0</span><a name="l00068"></a><a class="code" href="Win32-Extensions_8h.html#d7d6cc253b9b7d72ff13f80370a52490">00068</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_TME 0x08</span><a name="l00069"></a>00069 <span class="preprocessor"></span><a name="l00070"></a><a class="code" href="Win32-Extensions_8h.html#5e77fbb97cf270c27c430722a1e6fa3b">00070</a> <span class="preprocessor">#define BPF_LOOKUP 0x90 </span><a name="l00071"></a><a class="code" href="Win32-Extensions_8h.html#7b833a1802fa10b0d550c6eb3e724d75">00071</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_EXECUTE 0xa0</span><a name="l00072"></a><a class="code" href="Win32-Extensions_8h.html#ab18fbabe4f6a84757afb8088827e82f">00072</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_INIT 0xb0</span><a name="l00073"></a><a class="code" href="Win32-Extensions_8h.html#52afa333263879b18b8ef1278e9d9c38">00073</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_VALIDATE 0xc0</span><a name="l00074"></a><a class="code" href="Win32-Extensions_8h.html#54a2fb014f7f0ff0dbec7b8c9c319322">00074</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_SET_ACTIVE 0xd0</span><a name="l00075"></a><a class="code" href="Win32-Extensions_8h.html#bb2e97aac5a34caa5ceb0d8495ca7d8c">00075</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_RESET 0xe0</span><a name="l00076"></a><a class="code" href="Win32-Extensions_8h.html#53c19e47ce08fe540a1e1323b1d5eb04">00076</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_SET_MEMORY 0x80</span><a name="l00077"></a><a class="code" href="Win32-Extensions_8h.html#e234c1f999720a0167b71235dd9efbd3">00077</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_GET_REGISTER_VALUE 0x70</span><a name="l00078"></a><a class="code" href="Win32-Extensions_8h.html#fcf6a0cd9b0e14f9456d643888ae958f">00078</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_SET_REGISTER_VALUE 0x60</span><a name="l00079"></a><a class="code" href="Win32-Extensions_8h.html#a2cac9008111e31a231a0183e2af0525">00079</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_SET_WORKING 0x50</span><a name="l00080"></a><a class="code" href="Win32-Extensions_8h.html#2beb870e2a5cd292a00b8bc243c0ab78">00080</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_SET_ACTIVE_READ 0x40</span><a name="l00081"></a><a class="code" href="Win32-Extensions_8h.html#60cf9b2aab2c973697939bdc85ff4f2d">00081</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_SET_AUTODELETION 0x30</span><a name="l00082"></a><a class="code" href="Win32-Extensions_8h.html#c6ebbf4ea8c29d48aa9ebe282544f467">00082</a> <span class="preprocessor"></span><span class="preprocessor">#define BPF_SEPARATION 0xff</span><a name="l00083"></a>00083 <span class="preprocessor"></span><a name="l00084"></a>00084 <span class="comment">/* Prototypes */</span><a name="l00085"></a>00085 <a class="code" href="structpcap__send__queue.html" title="A queue of raw packets that will be sent to the network with pcap_sendqueue_transmit()...">pcap_send_queue</a>* <a class="code" href="group__wpcapfunc.html#gb940e69631b7cc7f2232a69ea02b86d9" title="Allocate a send queue.">pcap_sendqueue_alloc</a>(u_int memsize);<a name="l00086"></a>00086 <a name="l00087"></a>00087 <span class="keywordtype">void</span> <a class="code" href="group__wpcapfunc.html#g72624f7a9932cc2124abf661001e0aa4" title="Destroy a send queue.">pcap_sendqueue_destroy</a>(<a class="code" href="structpcap__send__queue.html" title="A queue of raw packets that will be sent to the network with pcap_sendqueue_transmit()...">pcap_send_queue</a>* queue);<a name="l00088"></a>00088 <a name="l00089"></a>00089 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#g4c57ea320d71dbfe55c5665af9db1297" title="Add a packet to a send queue.">pcap_sendqueue_queue</a>(<a class="code" href="structpcap__send__queue.html" title="A queue of raw packets that will be sent to the network with pcap_sendqueue_transmit()...">pcap_send_queue</a>* queue, <span class="keyword">const</span> <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, <span class="keyword">const</span> u_char *pkt_data);<a name="l00090"></a>00090 <a name="l00091"></a>00091 u_int <a class="code" href="group__wpcapfunc.html#ga4d55eb047a1cccc0e28397ce04ee097" title="Send a queue of raw packets to the network.">pcap_sendqueue_transmit</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 class="code" href="structpcap__send__queue.html" title="A queue of raw packets that will be sent to the network with pcap_sendqueue_transmit()...">pcap_send_queue</a>* queue, <span class="keywordtype">int</span> sync);<a name="l00092"></a>00092 <a name="l00093"></a>00093 HANDLE <a class="code" href="group__wpcapfunc.html#g2c415e9192c7b18a81a02300ae6f2c02" title="Return the handle of the event associated with the interface p.">pcap_getevent</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="l00094"></a>00094 <a name="l00095"></a>00095 <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="group__wpcapfunc.html#g8050f7829956aabd243cc32b3cfabbd6" title="Return statistics on current capture.">pcap_stats_ex</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> *pcap_stat_size);<a name="l00096"></a>00096 <a name="l00097"></a>00097 <span class="keywordtype">int</span> <a class="code" href="Win32-Extensions_8h.html#9b68e06df888cb005ddb92117227e0a6">pcap_setuserbuffer</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> size);<a name="l00098"></a>00098 <a name="l00099"></a>00099 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#gedef54159d918b22a7de8e75b8a3ef4d" title="Save a capture to file.">pcap_live_dump</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> *filename, <span class="keywordtype">int</span> maxsize, <span class="keywordtype">int</span> maxpacks);<a name="l00100"></a>00100 <a name="l00101"></a>00101 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#gfe8a334f3a7ae2dc7f52e96523da39be" title="Return the status of the kernel dump process, i.e. tells if one of the limits defined...">pcap_live_dump_ended</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> sync);<a name="l00102"></a>00102 <a name="l00103"></a>00103 <span class="keywordtype">int</span> <a class="code" href="group__wpcapfunc.html#g40fd197f182c993599d6a76c8a614849" title="Returns if a given filter applies to an offline packet.">pcap_offline_filter</a>(<span class="keyword">struct</span> bpf_program *prog, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structpcap__pkthdr.html" title="Header of a packet in the dump file.">pcap_pkthdr</a> *header, <span class="keyword">const</span> u_char *pkt_data);<a name="l00104"></a>00104 <a name="l00105"></a>00105 <span class="keywordtype">int</span> <a class="code" href="Win32-Extensions_8h.html#6455abf1f09abfd5493e2e0e914aa612">pcap_start_oem</a>(<span class="keywordtype">char</span>* err_str, <span class="keywordtype">int</span> flags);<a name="l00106"></a>00106 <a name="l00107"></a>00107 PAirpcapHandle <a class="code" href="group__wpcapfunc.html#g4c8f8d1b9238c74faa156494a6b98670" title="Returns the AirPcap handler associated with an adapter. This handler can be used...">pcap_get_airpcap_handle</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="l00108"></a>00108 <a name="l00109"></a>00109 <span class="preprocessor">#ifdef __cplusplus</span><a name="l00110"></a>00110 <span class="preprocessor"></span>}<a name="l00111"></a>00111 <span class="preprocessor">#endif</span><a name="l00112"></a>00112 <span class="preprocessor"></span><a name="l00113"></a>00113 <span class="preprocessor">#endif //__WIN32_EXTENSIONS_H__</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 + -