📄 pcap-remote_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>WinPcap: pcap-remote.h Source File</title><link href="style.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.1 --><div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul></div><h1>pcap-remote.h</h1><a href="pcap-remote_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span><a name="l00002"></a>00002 <span class="comment"> * Copyright (c) 2002 - 2003</span><a name="l00003"></a>00003 <span class="comment"> * NetGroup, Politecnico di Torino (Italy)</span><a name="l00004"></a>00004 <span class="comment"> * All rights reserved.</span><a name="l00005"></a>00005 <span class="comment"> * </span><a name="l00006"></a>00006 <span class="comment"> * Redistribution and use in source and binary forms, with or without </span><a name="l00007"></a>00007 <span class="comment"> * modification, are permitted provided that the following conditions </span><a name="l00008"></a>00008 <span class="comment"> * are met:</span><a name="l00009"></a>00009 <span class="comment"> * </span><a name="l00010"></a>00010 <span class="comment"> * 1. Redistributions of source code must retain the above copyright </span><a name="l00011"></a>00011 <span class="comment"> * notice, this list of conditions and the following disclaimer.</span><a name="l00012"></a>00012 <span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright </span><a name="l00013"></a>00013 <span class="comment"> * notice, this list of conditions and the following disclaimer in the </span><a name="l00014"></a>00014 <span class="comment"> * documentation and/or other materials provided with the distribution. </span><a name="l00015"></a>00015 <span class="comment"> * 3. Neither the name of the Politecnico di Torino nor the names of its </span><a name="l00016"></a>00016 <span class="comment"> * contributors may be used to endorse or promote products derived from </span><a name="l00017"></a>00017 <span class="comment"> * this software without specific prior written permission. </span><a name="l00018"></a>00018 <span class="comment"> * </span><a name="l00019"></a>00019 <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS </span><a name="l00020"></a>00020 <span class="comment"> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT </span><a name="l00021"></a>00021 <span class="comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR </span><a name="l00022"></a>00022 <span class="comment"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT </span><a name="l00023"></a>00023 <span class="comment"> * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, </span><a name="l00024"></a>00024 <span class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT </span><a name="l00025"></a>00025 <span class="comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, </span><a name="l00026"></a>00026 <span class="comment"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY </span><a name="l00027"></a>00027 <span class="comment"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT </span><a name="l00028"></a>00028 <span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE </span><a name="l00029"></a>00029 <span class="comment"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span><a name="l00030"></a>00030 <span class="comment"> * </span><a name="l00031"></a>00031 <span class="comment"> */</span><a name="l00032"></a>00032 <a name="l00033"></a>00033 <span class="preprocessor">#ifndef __PCAP_REMOTE_H__</span><a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define __PCAP_REMOTE_H__</span><a name="l00035"></a>00035 <span class="preprocessor"></span><a name="l00036"></a>00036 <a name="l00037"></a>00037 <span class="preprocessor">#include "pcap.h"</span><a name="l00038"></a>00038 <span class="preprocessor">#include "sockutils.h"</span> <span class="comment">// Needed for some structures (like SOCKET, sockaddr_in) which are used here</span><a name="l00039"></a>00039 <a name="l00040"></a>00040 <a name="l00073"></a>00073 <span class="comment">/*********************************************************</span><a name="l00074"></a>00074 <span class="comment"> * *</span><a name="l00075"></a>00075 <span class="comment"> * General definitions / typedefs for the RPCAP protocol *</span><a name="l00076"></a>00076 <span class="comment"> * *</span><a name="l00077"></a>00077 <span class="comment"> *********************************************************/</span><a name="l00078"></a>00078 <a name="l00079"></a>00079 <span class="comment">// All the following structures and typedef belongs to the Private Documentation</span><a name="l00084"></a><a class="code" href="group__remote__pri__struct.html#gdd48856fd036eb39b1374e8722b83970">00084</a> <span class="comment"></span><span class="preprocessor">#define RPCAP_DEFAULT_NETPORT "2002" </span><a name="l00086"></a><a class="code" href="group__remote__pri__struct.html#g3faff98b6c9e4560e58beb8ca5d62473">00086</a> <span class="preprocessor">#define RPCAP_DEFAULT_NETPORT_ACTIVE "2003"</span><a name="l00087"></a><a class="code" href="group__remote__pri__struct.html#g652ea27f0736f2ed16eff2f8232be733">00087</a> <span class="preprocessor"></span><span class="preprocessor">#define RPCAP_DEFAULT_NETADDR "" </span><a name="l00088"></a><a class="code" href="group__remote__pri__struct.html#gdd52d73598f0b006a4634f6f40c85e3e">00088</a> <span class="preprocessor">#define RPCAP_VERSION 0 </span><a name="l00089"></a><a class="code" href="group__remote__pri__struct.html#gd5f148b0c94a8c6162ee79c33463ac95">00089</a> <span class="preprocessor">#define RPCAP_TIMEOUT_INIT 90 </span><a name="l00090"></a><a class="code" href="group__remote__pri__struct.html#g1d5a54e68e71ec6de7e3d9d1b5dc35bc">00090</a> <span class="preprocessor">#define RPCAP_TIMEOUT_RUNTIME 180 </span><a name="l00091"></a><a class="code" href="group__remote__pri__struct.html#g8f32f1a7e4afc75d85adee7aa1136e2b">00091</a> <span class="preprocessor">#define RPCAP_ACTIVE_WAIT 30 </span><a name="l00092"></a><a class="code" href="group__remote__pri__struct.html#g5bac38979d12b0a8755d70981fb387af">00092</a> <span class="preprocessor">#define RPCAP_SUSPEND_WRONGAUTH 1 </span><a name="l00098"></a><a class="code" href="group__remote__pri__struct.html#gc094e3209a4b7fc379b034d3dc37acb0">00098</a> <span class="preprocessor">#define RPCAP_NETBUF_SIZE 64000</span><a name="l00099"></a>00099 <span class="preprocessor"></span><a name="l00100"></a>00100 <a name="l00108"></a><a class="code" href="group__remote__pri__struct.html#g9ca2e46ddec1744b0442e42fc77dbc36">00108</a> <span class="preprocessor">#define RPCAP_HOSTLIST_SEP " ,;\n\r"</span><a name="l00109"></a>00109 <span class="preprocessor"></span><a name="l00110"></a>00110 <a name="l00111"></a>00111 <a name="l00112"></a>00112 <a name="l00113"></a>00113 <span class="comment">// WARNING: These could need to be changed on other platforms</span><a name="l00114"></a><a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79">00114</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a>; <a name="l00115"></a><a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">00115</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>; <a name="l00116"></a><a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e">00116</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a>; <a name="l00117"></a><a class="code" href="group__remote__pri__struct.html#g56f1a81c92849566ae864511088eb7e8">00117</a> <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="group__remote__pri__struct.html#g56f1a81c92849566ae864511088eb7e8">int32</a>; <a name="l00118"></a>00118 <a name="l00119"></a>00119 <a name="l00120"></a>00120 <a name="l00121"></a>00121 <a name="l00132"></a><a class="code" href="structactivehosts.html">00132</a> <span class="keyword">struct </span><a class="code" href="structactivehosts.html">activehosts</a><a name="l00133"></a>00133 {<a name="l00134"></a><a class="code" href="structactivehosts.html#a80ddc7d4304067f1441e3562c9b2b08">00134</a> <span class="keyword">struct </span>sockaddr_storage host;<a name="l00135"></a><a class="code" href="structactivehosts.html#33939ceefa385f1e6c60f94f2474869d">00135</a> SOCKET <a class="code" href="structactivehosts.html#33939ceefa385f1e6c60f94f2474869d">sockctrl</a>;<a name="l00136"></a><a class="code" href="structactivehosts.html#34f7d4dc0ffb851aa4d9bf2e82ba915b">00136</a> <span class="keyword">struct </span><a class="code" href="structactivehosts.html">activehosts</a> *<a class="code" href="structactivehosts.html#34f7d4dc0ffb851aa4d9bf2e82ba915b">next</a>;<a name="l00137"></a>00137 };<a name="l00138"></a>00138 <a name="l00139"></a>00139
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -