627 lines
46 KiB
HTML
627 lines
46 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<title>WinPcap: pcap-remote.h File Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="style.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<!-- Generated by Doxygen 1.6.1 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="main.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</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 class="current"><a href="files.html"><span>Files</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>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>pcap-remote.h File Reference</h1><code>#include "<a class="el" href="funcs_2pcap_8h_source.html">pcap.h</a>"</code><br/>
|
|
<code>#include "sockutils.h"</code><br/>
|
|
|
|
<p><a href="pcap-remote_8h_source.html">Go to the source code of this file.</a></p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td colspan="2"><h2>Data Structures</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structactivehosts.html">activehosts</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Keeps a list of all the opened connections in the active mode. <a href="structactivehosts.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__header.html">rpcap_header</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Common header for all the RPCAP messages. <a href="structrpcap__header.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__findalldevs__if.html">rpcap_findalldevs_if</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Format of the message for the interface description (findalldevs command). <a href="structrpcap__findalldevs__if.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__findalldevs__ifaddr.html">rpcap_findalldevs_ifaddr</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Format of the message for the address listing (findalldevs command). <a href="structrpcap__findalldevs__ifaddr.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__openreply.html">rpcap_openreply</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Format of the message of the connection opening reply (open command). <a href="structrpcap__openreply.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__startcapreq.html">rpcap_startcapreq</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Format of the message that starts a remote capture (startcap command). <a href="structrpcap__startcapreq.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__startcapreply.html">rpcap_startcapreply</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Format of the reply message that devoted to start a remote capture (startcap reply command). <a href="structrpcap__startcapreply.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__pkthdr.html">rpcap_pkthdr</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Format of the header which encapsulates captured packets when transmitted on the network. <a href="structrpcap__pkthdr.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__filter.html">rpcap_filter</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">General header used for the <a class="el" href="group__wpcapfunc.html#gaf5f9cfe85dad0967ff607e5159b1ba61" title="Associate a filter to a capture.">pcap_setfilter()</a> command; keeps just the number of BPF instructions. <a href="structrpcap__filter.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__filterbpf__insn.html">rpcap_filterbpf_insn</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Structure that keeps a single BPF instuction; it is repeated 'ninsn' times according to the 'rpcap_filterbpf' header. <a href="structrpcap__filterbpf__insn.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__auth.html">rpcap_auth</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Structure that keeps the data required for the authentication on the remote host. <a href="structrpcap__auth.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__stats.html">rpcap_stats</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Structure that keeps the statistics about the number of packets captured, dropped, etc. <a href="structrpcap__stats.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpcap__sampling.html">rpcap_sampling</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Structure that is needed to set sampling parameters. <a href="structrpcap__sampling.html#_details">More...</a><br/></td></tr>
|
|
<tr><td colspan="2"><h2>Defines</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gadd48856fd036eb39b1374e8722b83970">RPCAP_DEFAULT_NETPORT</a> "2002"</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga3faff98b6c9e4560e58beb8ca5d62473">RPCAP_DEFAULT_NETPORT_ACTIVE</a> "2003"</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga652ea27f0736f2ed16eff2f8232be733">RPCAP_DEFAULT_NETADDR</a> ""</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gadd52d73598f0b006a4634f6f40c85e3e">RPCAP_VERSION</a> 0</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gad5f148b0c94a8c6162ee79c33463ac95">RPCAP_TIMEOUT_INIT</a> 90</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga1d5a54e68e71ec6de7e3d9d1b5dc35bc">RPCAP_TIMEOUT_RUNTIME</a> 180</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga8f32f1a7e4afc75d85adee7aa1136e2b">RPCAP_ACTIVE_WAIT</a> 30</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga5bac38979d12b0a8755d70981fb387af">RPCAP_SUSPEND_WRONGAUTH</a> 1</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gac094e3209a4b7fc379b034d3dc37acb0">RPCAP_NETBUF_SIZE</a> 64000</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Buffer used by socket functions to send-receive packets. In case you plan to have messages larger than this value, you have to increase it. <a href="group__remote__pri__struct.html#gac094e3209a4b7fc379b034d3dc37acb0"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga9ca2e46ddec1744b0442e42fc77dbc36">RPCAP_HOSTLIST_SEP</a> " ,;\n\r"</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Separators used for the host list. <a href="group__remote__pri__struct.html#ga9ca2e46ddec1744b0442e42fc77dbc36"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gae794b40128a8f48e8aab742c499e4c5c">RPCAP_MSG_ERROR</a> 1</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gac1cca8dabd5af5293a0e41515bc532a5">RPCAP_MSG_FINDALLIF_REQ</a> 2</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gac99b71c29a3177c663b099c417d1de91">RPCAP_MSG_OPEN_REQ</a> 3</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga082b424838496c8cc92dcadf6333b9e1">RPCAP_MSG_STARTCAP_REQ</a> 4</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga8c77cf6f710b92b3f87257e7d03d6677">RPCAP_MSG_UPDATEFILTER_REQ</a> 5</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gaaca8c569d09dd1c7b2a7cfebe2ed5017">RPCAP_MSG_CLOSE</a> 6</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gaaa605dc088c22dd9064a38d16a5199b9">RPCAP_MSG_PACKET</a> 7</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga967ed95127e15aae04df68d128b32dcd">RPCAP_MSG_AUTH_REQ</a> 8</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga29508e4fba57e33978c73997630b8159">RPCAP_MSG_STATS_REQ</a> 9</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gad6554d0a3e2e81d440a216e9ed207c99">RPCAP_MSG_ENDCAP_REQ</a> 10</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga2d8c7f1e4361c748ccc051c276f5eaa9">RPCAP_MSG_SETSAMPLING_REQ</a> 11</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gab60aca69282ead1088a4565d47bdc05e">RPCAP_MSG_FINDALLIF_REPLY</a> (128+RPCAP_MSG_FINDALLIF_REQ)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga753597c2ff993d12156d7922116b1835">RPCAP_MSG_OPEN_REPLY</a> (128+RPCAP_MSG_OPEN_REQ)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga22dcbe343e2103aef2e9856f93f40167">RPCAP_MSG_STARTCAP_REPLY</a> (128+RPCAP_MSG_STARTCAP_REQ)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gaeb2561c1c6c9b9c56f4ac14ab70f6c3a">RPCAP_MSG_UPDATEFILTER_REPLY</a> (128+RPCAP_MSG_UPDATEFILTER_REQ)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga558198e22dad94774670d4901069761b">RPCAP_MSG_AUTH_REPLY</a> (128+RPCAP_MSG_AUTH_REQ)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga3d52f2b6b3210dcb4f0db7bd8b46138e">RPCAP_MSG_STATS_REPLY</a> (128+RPCAP_MSG_STATS_REQ)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga2994f9df11cfc2b2dd0e9a9d9ac4f37b">RPCAP_MSG_ENDCAP_REPLY</a> (128+RPCAP_MSG_ENDCAP_REQ)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga59a57a83acc395c5e508dda7b8c33bad">RPCAP_MSG_SETSAMPLING_REPLY</a> (128+RPCAP_MSG_SETSAMPLING_REQ)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga3d0b7b3a3d97ebdd265ab800a004ae8c">RPCAP_STARTCAPREQ_FLAG_PROMISC</a> 1</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga3f87b7e89ed61dc2c9956234399058e8">RPCAP_STARTCAPREQ_FLAG_DGRAM</a> 2</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga0c5a71a9b6d5be2662c5a8872cf3032c">RPCAP_STARTCAPREQ_FLAG_SERVEROPEN</a> 4</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gac22aa6103fe1490ab908a26d5c4a7c8a">RPCAP_STARTCAPREQ_FLAG_INBOUND</a> 8</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga2b29630fe7963da543db242459c74832">RPCAP_STARTCAPREQ_FLAG_OUTBOUND</a> 16</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gac93bee6a0991d4334eacd6e451b54240">RPCAP_UPDATEFILTER_BPF</a> 1</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga281ffdbe28e312f9fe6bc22c4d14fd68">PCAP_ERR_NETW</a> 1</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga43cc461cdabd8d39ca2346f10c233a1b">PCAP_ERR_INITTIMEOUT</a> 2</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga5c8c6dd12f4fcdeaefd0f8d4a67b3075">PCAP_ERR_AUTH</a> 3</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gadfbdeb5279422bc65233eefeca885661">PCAP_ERR_FINDALLIF</a> 4</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga9f540070da23a5e61d0e27a61a300639">PCAP_ERR_NOREMOTEIF</a> 5</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga3bfdce6d89b764b103404a1ec08bc4f9">PCAP_ERR_OPEN</a> 6</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gae12279008dbc82da60f457ae639d9c98">PCAP_ERR_UPDATEFILTER</a> 7</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gaf2e8f37c8ecf045242e00d9d138d4130">PCAP_ERR_GETSTATS</a> 8</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga61631ebf63be764b06b1259fcded1b4d">PCAP_ERR_READEX</a> 9</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga77b7c5dbb7399e0f73c3105c181c0eba">PCAP_ERR_HOSTNOAUTH</a> 10</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga005853d9f448e2125b9c907cd68ae77a">PCAP_ERR_REMOTEACCEPT</a> 11</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga2342b31cd1b83713b43e29fc1b8bbe80">PCAP_ERR_STARTCAPTURE</a> 12</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga7237f6698352751c08de3b10ae711881">PCAP_ERR_ENDCAPTURE</a> 13</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga9a98b752c9427a52b1902b6a4aa9845a">PCAP_ERR_RUNTIMETIMEOUT</a> 14</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gad904f96dcd2dc7ead1f50e81d27a87ee">PCAP_ERR_SETSAMPLING</a> 15</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gaadf8ebdb03c2852d32084792c32f5014">PCAP_ERR_WRONGMSG</a> 16</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga27644e4198a710a3fb6763464b4cceb8">PCAP_ERR_WRONGVER</a> 17</td></tr>
|
|
<tr><td colspan="2"><h2>Typedefs</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">typedef unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides an 8-bits unsigned integer. <a href="group__remote__pri__struct.html#gadde6aaee8457bee49c2a92621fe22b79"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">typedef unsigned short </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides a 16-bits unsigned integer. <a href="group__remote__pri__struct.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">typedef unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides a 32-bits unsigned integer. <a href="group__remote__pri__struct.html#ga1134b580f8da4de94ca6b1de4d37975e"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">typedef int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__remote__pri__struct.html#ga56f1a81c92849566ae864511088eb7e8">int32</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides a 32-bits integer. <a href="group__remote__pri__struct.html#ga56f1a81c92849566ae864511088eb7e8"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2>Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#aa37a07d9cf44445b81602b14c622e28a">pcap_opensource_remote</a> (<a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p, struct <a class="el" href="structpcap__rmtauth.html">pcap_rmtauth</a> *auth)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#a0ad8f765bf454e69b98f97a3e2b002e7">pcap_startcapture_remote</a> (<a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *fp)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#a9592679e3e00af097835b4dfc5f2dbaa">pcap_read_nocb_remote</a> (<a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p, struct <a class="el" href="structpcap__pkthdr.html">pcap_pkthdr</a> **pkt_header, u_char **pkt_data)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#ab0db6e07bf653640fd14650aeffe5d5a">pcap_read_remote</a> (<a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p, int cnt, <a class="el" href="group__wpcapfunc.html#gabcba231c099919ecd9300d7160b19878">pcap_handler</a> callback, u_char *user)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#a27b8e02d428568edb810e6eca02f1c49">pcap_updatefilter_remote</a> (<a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *fp, struct bpf_program *prog)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#a3e12964f562dd76e1094d927cbe27b25">pcap_setfilter_remote</a> (<a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *fp, struct bpf_program *prog)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#a566a5e39d86edb314005ed4fed4d2b99">pcap_stats_remote</a> (<a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p, struct <a class="el" href="structpcap__stat.html">pcap_stat</a> *ps)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#ae70f189ef09ba80aa809365854f2875a">pcap_setsampling_remote</a> (<a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structpcap__stat.html">pcap_stat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#a6e9d9cdb69408ad2b1221c8f5dcc3c80">pcap_stats_ex_remote</a> (<a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#a26b01d5a63ab6498293ec372b32c4860">pcap_cleanup_remote</a> (<a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#a16e3637e641d12618e4bef76fa2fcf2e">rpcap_createhdr</a> (struct <a class="el" href="structrpcap__header.html">rpcap_header</a> *header, <a class="el" href="group__remote__pri__struct.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> type, <a class="el" href="group__remote__pri__struct.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> value, <a class="el" href="group__remote__pri__struct.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> length)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#a67250f8933f1b6c261e9bd4136c4f2af">rpcap_deseraddr</a> (struct sockaddr_storage *sockaddrin, struct sockaddr_storage **sockaddrout, char *errbuf)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#aac91069eff112ab360f3834fa58ff53d">rpcap_checkmsg</a> (char *errbuf, SOCKET sock, struct <a class="el" href="structrpcap__header.html">rpcap_header</a> *header, <a class="el" href="group__remote__pri__struct.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> first,...)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#a7e311277cf79afe58e6683f24cd14b65">rpcap_senderror</a> (SOCKET sock, char *error, unsigned short errcode, char *errbuf)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#a29144d786cbb343587611df6d4283886">rpcap_sendauth</a> (SOCKET sock, struct <a class="el" href="structpcap__rmtauth.html">pcap_rmtauth</a> *auth, char *errbuf)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#ae0fb2ae444215e729811d958fea0309e">rpcap_remoteact_getsock</a> (const char *<a class="el" href="wpcap__remote_8htm.html#a3c46d79c790748a5942fb43baa6b3073">host</a>, char *errbuf)</td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<p>This file keeps all the new definitions and typedefs that are exported to the user and that are needed for the RPCAP protocol.</p>
|
|
<dl class="warning"><dt><b>Warning:</b></dt><dd>All the RPCAP functions that are allowed to return a buffer containing the error description can return max PCAP_ERRBUF_SIZE characters. However there is no guarantees that the string will be zero-terminated. Best practice is to define the errbuf variable as a char of size 'PCAP_ERRBUF_SIZE+1' and to insert manually the termination char at the end of the buffer. This will guarantee that no buffer overflows occur even if we use the printf() to show the error on the screen.</dd>
|
|
<dd>
|
|
This file declares some typedefs that MUST be of a specific size. These definitions (i.e. typedefs) could need to be changed on other platforms than Intel IA32.</dd>
|
|
<dd>
|
|
This file defines some structures that are used to transfer data on the network. Be careful that you compiler MUST not insert padding into these structures for better alignment. These structures have been created in order to be correctly aligned to a 32 bits boundary, but be careful in any case. </dd></dl>
|
|
|
|
<p>Definition in file <a class="el" href="pcap-remote_8h_source.html">pcap-remote.h</a>.</p>
|
|
<hr/><h2>Function Documentation</h2>
|
|
<a class="anchor" id="a26b01d5a63ab6498293ec372b32c4860"></a><!-- doxytag: member="pcap-remote.h::pcap_cleanup_remote" ref="a26b01d5a63ab6498293ec372b32c4860" args="(pcap_t *p)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void pcap_cleanup_remote </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td>
|
|
<td class="paramname"> <em>p</em></td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa37a07d9cf44445b81602b14c622e28a"></a><!-- doxytag: member="pcap-remote.h::pcap_opensource_remote" ref="aa37a07d9cf44445b81602b14c622e28a" args="(pcap_t *p, struct pcap_rmtauth *auth)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pcap_opensource_remote </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td>
|
|
<td class="paramname"> <em>p</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">struct <a class="el" href="structpcap__rmtauth.html">pcap_rmtauth</a> * </td>
|
|
<td class="paramname"> <em>auth</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9592679e3e00af097835b4dfc5f2dbaa"></a><!-- doxytag: member="pcap-remote.h::pcap_read_nocb_remote" ref="a9592679e3e00af097835b4dfc5f2dbaa" args="(pcap_t *p, struct pcap_pkthdr **pkt_header, u_char **pkt_data)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pcap_read_nocb_remote </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td>
|
|
<td class="paramname"> <em>p</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">struct <a class="el" href="structpcap__pkthdr.html">pcap_pkthdr</a> ** </td>
|
|
<td class="paramname"> <em>pkt_header</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u_char ** </td>
|
|
<td class="paramname"> <em>pkt_data</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab0db6e07bf653640fd14650aeffe5d5a"></a><!-- doxytag: member="pcap-remote.h::pcap_read_remote" ref="ab0db6e07bf653640fd14650aeffe5d5a" args="(pcap_t *p, int cnt, pcap_handler callback, u_char *user)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pcap_read_remote </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td>
|
|
<td class="paramname"> <em>p</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>cnt</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="group__wpcapfunc.html#gabcba231c099919ecd9300d7160b19878">pcap_handler</a> </td>
|
|
<td class="paramname"> <em>callback</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u_char * </td>
|
|
<td class="paramname"> <em>user</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3e12964f562dd76e1094d927cbe27b25"></a><!-- doxytag: member="pcap-remote.h::pcap_setfilter_remote" ref="a3e12964f562dd76e1094d927cbe27b25" args="(pcap_t *fp, struct bpf_program *prog)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pcap_setfilter_remote </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td>
|
|
<td class="paramname"> <em>fp</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">struct bpf_program * </td>
|
|
<td class="paramname"> <em>prog</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae70f189ef09ba80aa809365854f2875a"></a><!-- doxytag: member="pcap-remote.h::pcap_setsampling_remote" ref="ae70f189ef09ba80aa809365854f2875a" args="(pcap_t *p)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pcap_setsampling_remote </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td>
|
|
<td class="paramname"> <em>p</em></td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0ad8f765bf454e69b98f97a3e2b002e7"></a><!-- doxytag: member="pcap-remote.h::pcap_startcapture_remote" ref="a0ad8f765bf454e69b98f97a3e2b002e7" args="(pcap_t *fp)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pcap_startcapture_remote </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td>
|
|
<td class="paramname"> <em>fp</em></td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6e9d9cdb69408ad2b1221c8f5dcc3c80"></a><!-- doxytag: member="pcap-remote.h::pcap_stats_ex_remote" ref="a6e9d9cdb69408ad2b1221c8f5dcc3c80" args="(pcap_t *p)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">struct <a class="el" href="structpcap__stat.html">pcap_stat</a>* pcap_stats_ex_remote </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td>
|
|
<td class="paramname"> <em>p</em></td>
|
|
<td> ) </td>
|
|
<td><code> [read]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a566a5e39d86edb314005ed4fed4d2b99"></a><!-- doxytag: member="pcap-remote.h::pcap_stats_remote" ref="a566a5e39d86edb314005ed4fed4d2b99" args="(pcap_t *p, struct pcap_stat *ps)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pcap_stats_remote </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td>
|
|
<td class="paramname"> <em>p</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">struct <a class="el" href="structpcap__stat.html">pcap_stat</a> * </td>
|
|
<td class="paramname"> <em>ps</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a27b8e02d428568edb810e6eca02f1c49"></a><!-- doxytag: member="pcap-remote.h::pcap_updatefilter_remote" ref="a27b8e02d428568edb810e6eca02f1c49" args="(pcap_t *fp, struct bpf_program *prog)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int pcap_updatefilter_remote </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group__wpcap__def.html#ga4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td>
|
|
<td class="paramname"> <em>fp</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">struct bpf_program * </td>
|
|
<td class="paramname"> <em>prog</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aac91069eff112ab360f3834fa58ff53d"></a><!-- doxytag: member="pcap-remote.h::rpcap_checkmsg" ref="aac91069eff112ab360f3834fa58ff53d" args="(char *errbuf, SOCKET sock, struct rpcap_header *header, uint8 first,...)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int rpcap_checkmsg </td>
|
|
<td>(</td>
|
|
<td class="paramtype">char * </td>
|
|
<td class="paramname"> <em>errbuf</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">SOCKET </td>
|
|
<td class="paramname"> <em>sock</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">struct <a class="el" href="structrpcap__header.html">rpcap_header</a> * </td>
|
|
<td class="paramname"> <em>header</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="group__remote__pri__struct.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> </td>
|
|
<td class="paramname"> <em>first</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"> </td>
|
|
<td class="paramname"> <em>...</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a16e3637e641d12618e4bef76fa2fcf2e"></a><!-- doxytag: member="pcap-remote.h::rpcap_createhdr" ref="a16e3637e641d12618e4bef76fa2fcf2e" args="(struct rpcap_header *header, uint8 type, uint16 value, uint32 length)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void rpcap_createhdr </td>
|
|
<td>(</td>
|
|
<td class="paramtype">struct <a class="el" href="structrpcap__header.html">rpcap_header</a> * </td>
|
|
<td class="paramname"> <em>header</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="group__remote__pri__struct.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> </td>
|
|
<td class="paramname"> <em>type</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="group__remote__pri__struct.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="group__remote__pri__struct.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> </td>
|
|
<td class="paramname"> <em>length</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a67250f8933f1b6c261e9bd4136c4f2af"></a><!-- doxytag: member="pcap-remote.h::rpcap_deseraddr" ref="a67250f8933f1b6c261e9bd4136c4f2af" args="(struct sockaddr_storage *sockaddrin, struct sockaddr_storage **sockaddrout, char *errbuf)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int rpcap_deseraddr </td>
|
|
<td>(</td>
|
|
<td class="paramtype">struct sockaddr_storage * </td>
|
|
<td class="paramname"> <em>sockaddrin</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">struct sockaddr_storage ** </td>
|
|
<td class="paramname"> <em>sockaddrout</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char * </td>
|
|
<td class="paramname"> <em>errbuf</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae0fb2ae444215e729811d958fea0309e"></a><!-- doxytag: member="pcap-remote.h::rpcap_remoteact_getsock" ref="ae0fb2ae444215e729811d958fea0309e" args="(const char *host, char *errbuf)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int rpcap_remoteact_getsock </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>host</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char * </td>
|
|
<td class="paramname"> <em>errbuf</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a29144d786cbb343587611df6d4283886"></a><!-- doxytag: member="pcap-remote.h::rpcap_sendauth" ref="a29144d786cbb343587611df6d4283886" args="(SOCKET sock, struct pcap_rmtauth *auth, char *errbuf)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int rpcap_sendauth </td>
|
|
<td>(</td>
|
|
<td class="paramtype">SOCKET </td>
|
|
<td class="paramname"> <em>sock</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">struct <a class="el" href="structpcap__rmtauth.html">pcap_rmtauth</a> * </td>
|
|
<td class="paramname"> <em>auth</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char * </td>
|
|
<td class="paramname"> <em>errbuf</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7e311277cf79afe58e6683f24cd14b65"></a><!-- doxytag: member="pcap-remote.h::rpcap_senderror" ref="a7e311277cf79afe58e6683f24cd14b65" args="(SOCKET sock, char *error, unsigned short errcode, char *errbuf)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int rpcap_senderror </td>
|
|
<td>(</td>
|
|
<td class="paramtype">SOCKET </td>
|
|
<td class="paramname"> <em>sock</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char * </td>
|
|
<td class="paramname"> <em>error</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned short </td>
|
|
<td class="paramname"> <em>errcode</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char * </td>
|
|
<td class="paramname"> <em>errbuf</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</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-2009
|
|
CACE Technologies. All rights reserved.</p>
|