blob: 9a721e0b5527bc46c5c3f843f543a73e71c34bb1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
<!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_pkthdr 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 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 class="current"><a href="annotated.html"><span>Data 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 Structures</span></a></li>
<li><a href="functions.html"><span>Data Fields</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>pcap_pkthdr Struct Reference<br/>
<small>
[<a class="el" href="group__wpcap__def.html">Definitions</a>]</small>
</h1><!-- doxytag: class="pcap_pkthdr" -->
<p>Header of a packet in the dump file.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="incs_2pcap_8h_source.html">pcap.h</a>></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">struct timeval </td><td class="memItemRight" valign="bottom"><a class="el" href="structpcap__pkthdr.html#a21be78b2818c91cb205885b8a6f5aed8">ts</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">time stamp <a href="#a21be78b2818c91cb205885b8a6f5aed8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__wpcap__def.html#ga37fdbc8313e90fb2041203a2e40cd482">bpf_u_int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structpcap__pkthdr.html#aac5771ed2efd92508bb4fe650f2ce7d7">caplen</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">length of portion present <a href="#aac5771ed2efd92508bb4fe650f2ce7d7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__wpcap__def.html#ga37fdbc8313e90fb2041203a2e40cd482">bpf_u_int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structpcap__pkthdr.html#a728f264db4f5cc304742565a2bcdbeea">len</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">length this packet (off wire) <a href="#a728f264db4f5cc304742565a2bcdbeea"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Header of a packet in the dump file. </p>
<p>Each packet in the dump file is prepended with this generic header. This gets around the problem of different headers for different packet interfaces. </p>
<p>Definition at line <a class="el" href="incs_2pcap_8h_source.html#l00126">126</a> of file <a class="el" href="incs_2pcap_8h_source.html">incs/pcap.h</a>.</p>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="aac5771ed2efd92508bb4fe650f2ce7d7"></a><!-- doxytag: member="pcap_pkthdr::caplen" ref="aac5771ed2efd92508bb4fe650f2ce7d7" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__wpcap__def.html#ga37fdbc8313e90fb2041203a2e40cd482">bpf_u_int32</a> <a class="el" href="structpcap__pkthdr.html#aac5771ed2efd92508bb4fe650f2ce7d7">caplen</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>length of portion present </p>
<p>Definition at line <a class="el" href="incs_2pcap_8h_source.html#l00128">128</a> of file <a class="el" href="incs_2pcap_8h_source.html">incs/pcap.h</a>.</p>
</div>
</div>
<a class="anchor" id="a728f264db4f5cc304742565a2bcdbeea"></a><!-- doxytag: member="pcap_pkthdr::len" ref="a728f264db4f5cc304742565a2bcdbeea" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__wpcap__def.html#ga37fdbc8313e90fb2041203a2e40cd482">bpf_u_int32</a> <a class="el" href="structpcap__pkthdr.html#a728f264db4f5cc304742565a2bcdbeea">len</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>length this packet (off wire) </p>
<p>Definition at line <a class="el" href="incs_2pcap_8h_source.html#l00129">129</a> of file <a class="el" href="incs_2pcap_8h_source.html">incs/pcap.h</a>.</p>
</div>
</div>
<a class="anchor" id="a21be78b2818c91cb205885b8a6f5aed8"></a><!-- doxytag: member="pcap_pkthdr::ts" ref="a21be78b2818c91cb205885b8a6f5aed8" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct timeval <a class="el" href="structpcap__pkthdr.html#a21be78b2818c91cb205885b8a6f5aed8">ts</a><code> [read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>time stamp </p>
<p>Definition at line <a class="el" href="incs_2pcap_8h_source.html#l00127">127</a> of file <a class="el" href="incs_2pcap_8h_source.html">incs/pcap.h</a>.</p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="incs_2pcap_8h_source.html">incs/pcap.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>
|