blob: 3f455a864e612798da44de11d6366aab84d27b5b (
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
<!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_if 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_if Struct Reference<br/>
<small>
[<a class="el" href="group__wpcap__def.html">Definitions</a>]</small>
</h1><!-- doxytag: class="pcap_if" -->
<p>Item in a list of interfaces, used by <a class="el" href="group__wpcapfunc.html#ga7b128eaeef627b408f6a6e2a2f5eb45d" title="Construct a list of network devices that can be opened with pcap_open_live().">pcap_findalldevs()</a>.
<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 <a class="el" href="structpcap__if.html">pcap_if</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structpcap__if.html#a81508e6e4e41ca4235c8d6b51913c536">next</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">if not NULL, a pointer to the next element in the list; NULL for the last element of the list <a href="#a81508e6e4e41ca4235c8d6b51913c536"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="structpcap__if.html#a5ac083a645d964373f022d03df4849c8">name</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">a pointer to a string giving a name for the device to pass to <a class="el" href="group__wpcapfunc.html#gaae6abe06e15c87b803f69773822beca8" title="Open a live capture from the network.">pcap_open_live()</a> <a href="#a5ac083a645d964373f022d03df4849c8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="structpcap__if.html#a8444d6e0dfe2bbab0b5e7b24308f1559">description</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">if not NULL, a pointer to a string giving a human-readable description of the device <a href="#a8444d6e0dfe2bbab0b5e7b24308f1559"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structpcap__addr.html">pcap_addr</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structpcap__if.html#a3910004677550db6d9b09792ba3e2cca">addresses</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">a pointer to the first element of a list of addresses for the interface <a href="#a3910004677550db6d9b09792ba3e2cca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">u_int </td><td class="memItemRight" valign="bottom"><a class="el" href="structpcap__if.html#a304e038dd1326c14b31a206cbad18756">flags</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">PCAP_IF_ interface flags. Currently the only possible flag is <b>PCAP_IF_LOOPBACK</b>, that is set if the interface is a loopback interface. <a href="#a304e038dd1326c14b31a206cbad18756"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Item in a list of interfaces, used by <a class="el" href="group__wpcapfunc.html#ga7b128eaeef627b408f6a6e2a2f5eb45d" title="Construct a list of network devices that can be opened with pcap_open_live().">pcap_findalldevs()</a>. </p>
<p>Definition at line <a class="el" href="incs_2pcap_8h_source.html#l00148">148</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="a3910004677550db6d9b09792ba3e2cca"></a><!-- doxytag: member="pcap_if::addresses" ref="a3910004677550db6d9b09792ba3e2cca" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct <a class="el" href="structpcap__addr.html">pcap_addr</a>* <a class="el" href="structpcap__if.html#a3910004677550db6d9b09792ba3e2cca">addresses</a><code> [read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>a pointer to the first element of a list of addresses for the interface </p>
<p>Definition at line <a class="el" href="incs_2pcap_8h_source.html#l00152">152</a> of file <a class="el" href="incs_2pcap_8h_source.html">incs/pcap.h</a>.</p>
</div>
</div>
<a class="anchor" id="a8444d6e0dfe2bbab0b5e7b24308f1559"></a><!-- doxytag: member="pcap_if::description" ref="a8444d6e0dfe2bbab0b5e7b24308f1559" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* <a class="el" href="structpcap__if.html#a8444d6e0dfe2bbab0b5e7b24308f1559">description</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>if not NULL, a pointer to a string giving a human-readable description of the device </p>
<p>Definition at line <a class="el" href="incs_2pcap_8h_source.html#l00151">151</a> of file <a class="el" href="incs_2pcap_8h_source.html">incs/pcap.h</a>.</p>
</div>
</div>
<a class="anchor" id="a304e038dd1326c14b31a206cbad18756"></a><!-- doxytag: member="pcap_if::flags" ref="a304e038dd1326c14b31a206cbad18756" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">u_int <a class="el" href="structpcap__if.html#a304e038dd1326c14b31a206cbad18756">flags</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>PCAP_IF_ interface flags. Currently the only possible flag is <b>PCAP_IF_LOOPBACK</b>, that is set if the interface is a loopback interface. </p>
<p>Definition at line <a class="el" href="incs_2pcap_8h_source.html#l00153">153</a> of file <a class="el" href="incs_2pcap_8h_source.html">incs/pcap.h</a>.</p>
</div>
</div>
<a class="anchor" id="a5ac083a645d964373f022d03df4849c8"></a><!-- doxytag: member="pcap_if::name" ref="a5ac083a645d964373f022d03df4849c8" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* <a class="el" href="structpcap__if.html#a5ac083a645d964373f022d03df4849c8">name</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>a pointer to a string giving a name for the device to pass to <a class="el" href="group__wpcapfunc.html#gaae6abe06e15c87b803f69773822beca8" title="Open a live capture from the network.">pcap_open_live()</a> </p>
<p>Definition at line <a class="el" href="incs_2pcap_8h_source.html#l00150">150</a> of file <a class="el" href="incs_2pcap_8h_source.html">incs/pcap.h</a>.</p>
</div>
</div>
<a class="anchor" id="a81508e6e4e41ca4235c8d6b51913c536"></a><!-- doxytag: member="pcap_if::next" ref="a81508e6e4e41ca4235c8d6b51913c536" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct <a class="el" href="structpcap__if.html">pcap_if</a>* <a class="el" href="structpcap__if.html#a81508e6e4e41ca4235c8d6b51913c536">next</a><code> [read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>if not NULL, a pointer to the next element in the list; NULL for the last element of the list </p>
<p>Definition at line <a class="el" href="incs_2pcap_8h_source.html#l00149">149</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>
|