📄 pcap-remote_8h.html
字号:
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides a 32-bits integer. <a href="group__remote__pri__struct.html#g56f1a81c92849566ae864511088eb7e8"></a><br></td></tr><tr><td colspan="2"><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#6fe8659afb509c5c871ac9a3c8aa5938">pcap_opensource_remote</a> (const char *source, struct <a class="el" href="structpcap__rmtauth.html">pcap_rmtauth</a> *auth, char *errbuf)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#0ad8f765bf454e69b98f97a3e2b002e7">pcap_startcapture_remote</a> (<a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *fp)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#9592679e3e00af097835b4dfc5f2dbaa">pcap_read_nocb_remote</a> (<a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">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" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#b0db6e07bf653640fd14650aeffe5d5a">pcap_read_remote</a> (<a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p, int cnt, <a class="el" href="group__wpcapfunc.html#gc429cf4f27205111259ff7b02a82eeab">pcap_handler</a> callback, u_char *user)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#27b8e02d428568edb810e6eca02f1c49">pcap_updatefilter_remote</a> (<a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *fp, struct bpf_program *prog)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#3e12964f562dd76e1094d927cbe27b25">pcap_setfilter_remote</a> (<a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *fp, struct bpf_program *prog)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#566a5e39d86edb314005ed4fed4d2b99">pcap_stats_remote</a> (<a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p, struct <a class="el" href="structpcap__stat.html">pcap_stat</a> *ps)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#e70f189ef09ba80aa809365854f2875a">pcap_setsampling_remote</a> (<a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structpcap__stat.html">pcap_stat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#6e9d9cdb69408ad2b1221c8f5dcc3c80">pcap_stats_ex_remote</a> (<a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#8dff348dc7f0a333aa79ca5943a18e2a">pcap_close_remote</a> (<a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> *p)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#16e3637e641d12618e4bef76fa2fcf2e">rpcap_createhdr</a> (struct <a class="el" href="structrpcap__header.html">rpcap_header</a> *header, <a class="el" href="group__remote__pri__struct.html#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> type, <a class="el" href="group__remote__pri__struct.html#g05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> value, <a class="el" href="group__remote__pri__struct.html#g1134b580f8da4de94ca6b1de4d37975e">uint32</a> length)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#67250f8933f1b6c261e9bd4136c4f2af">rpcap_deseraddr</a> (struct sockaddr_storage *sockaddrin, struct sockaddr_storage **sockaddrout, char *errbuf)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#ac91069eff112ab360f3834fa58ff53d">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#gdde6aaee8457bee49c2a92621fe22b79">uint8</a> first,...)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#7e311277cf79afe58e6683f24cd14b65">rpcap_senderror</a> (SOCKET sock, char *error, unsigned short errcode, char *errbuf)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#29144d786cbb343587611df6d4283886">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" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="pcap-remote_8h.html#e0fb2ae444215e729811d958fea0309e">rpcap_remoteact_getsock</a> (const char *<a class="el" href="wpcap__remote_8htm.html#3c46d79c790748a5942fb43baa6b3073">host</a>, char *errbuf)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>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" compact><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.<p>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.<p>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>.<hr><h2>Function Documentation</h2><a class="anchor" name="8dff348dc7f0a333aa79ca5943a18e2a"></a><!-- doxytag: member="pcap-remote.h::pcap_close_remote" ref="8dff348dc7f0a333aa79ca5943a18e2a" args="(pcap_t *p)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void pcap_close_remote </td> <td>(</td> <td class="paramtype"><a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td> <td class="paramname"> <em>p</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p></div></div><p><a class="anchor" name="6fe8659afb509c5c871ac9a3c8aa5938"></a><!-- doxytag: member="pcap-remote.h::pcap_opensource_remote" ref="6fe8659afb509c5c871ac9a3c8aa5938" args="(const char *source, struct pcap_rmtauth *auth, char *errbuf)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__wpcap__def.html#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a>* pcap_opensource_remote </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>source</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 width="100%"></td> </tr> </table></div><div class="memdoc"><p></div></div><p><a class="anchor" name="9592679e3e00af097835b4dfc5f2dbaa"></a><!-- doxytag: member="pcap-remote.h::pcap_read_nocb_remote" ref="9592679e3e00af097835b4dfc5f2dbaa" 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#g4711d025f83503ce692efa5e45ec60a7">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 width="100%"></td> </tr> </table></div><div class="memdoc"><p></div></div><p><a class="anchor" name="b0db6e07bf653640fd14650aeffe5d5a"></a><!-- doxytag: member="pcap-remote.h::pcap_read_remote" ref="b0db6e07bf653640fd14650aeffe5d5a" 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#g4711d025f83503ce692efa5e45ec60a7">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#gc429cf4f27205111259ff7b02a82eeab">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 width="100%"></td> </tr> </table></div><div class="memdoc"><p></div></div><p><a class="anchor" name="3e12964f562dd76e1094d927cbe27b25"></a><!-- doxytag: member="pcap-remote.h::pcap_setfilter_remote" ref="3e12964f562dd76e1094d927cbe27b25" 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#g4711d025f83503ce692efa5e45ec60a7">pcap_t</a> * </td> <td class="paramname"> <em>fp</em>, </td> </tr> <tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -