qt/ledset/WpdPack_4_1_2/docs/html/structPacketHeader.html

93 lines
4.7 KiB
HTML
Raw Normal View History

2022-08-25 18:43:03 +08:00
<!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: PacketHeader Struct 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&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
<li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>PacketHeader Struct Reference<br/>
<small>
[<a class="el" href="group__NPF__include.html">NPF structures and definitions</a>]</small>
</h1><!-- doxytag: class="PacketHeader" -->
<p>Structure prepended to each packet in the kernel buffer pool.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="Packet_8h_source.html">Packet.h</a>&gt;</code></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ULONG&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPacketHeader.html#afbd4efa90a98223b9ebe18574c057b47">SN</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sequence number of the packet. <a href="#afbd4efa90a98223b9ebe18574c057b47"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct bpf_hdr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPacketHeader.html#ae2f3ed1162db1cfdbd9abe8f203426ad">header</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">bpf header, created by the tap, and copied unmodified to user level programs. <a href="#ae2f3ed1162db1cfdbd9abe8f203426ad"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Structure prepended to each packet in the kernel buffer pool. </p>
<p>Each packet in one of the kernel buffers is prepended by this header. It encapsulates the bpf_header, which will be passed to user level programs, as well as the sequence number of the packet, set by the producer (the tap function), and used by the consumer (the read function) to "reorder" the packets contained in the various kernel buffers. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00341">341</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="ae2f3ed1162db1cfdbd9abe8f203426ad"></a><!-- doxytag: member="PacketHeader::header" ref="ae2f3ed1162db1cfdbd9abe8f203426ad" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct bpf_hdr <a class="el" href="structPacketHeader.html#ae2f3ed1162db1cfdbd9abe8f203426ad">header</a><code> [read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>bpf header, created by the tap, and copied unmodified to user level programs. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00344">344</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<a class="anchor" id="afbd4efa90a98223b9ebe18574c057b47"></a><!-- doxytag: member="PacketHeader::SN" ref="afbd4efa90a98223b9ebe18574c057b47" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ULONG <a class="el" href="structPacketHeader.html#afbd4efa90a98223b9ebe18574c057b47">SN</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sequence number of the packet. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00343">343</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Packet_8h_source.html">Packet.h</a></li>
</ul>
</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>