forked from nmap/npcap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packet.htm
46 lines (42 loc) · 2.27 KB
/
packet.htm
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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
Packet.dll is a dynamic link library that offers a set of low level functions
to:
<ul>
<li>install, start and stop the NPF device driver</li>
<li>Receive packets from the NPF driver</li>
<li>send packets to the NPF driver</li>
<li>obtain the list of the available network adapters</li>
<li>retrieve various information about an adapter, like the description and
the list of addresses and netmasks</li>
<li>query and set various low-level parameters of an adapter</li>
</ul>
<p>Packet.dll was created to provide a layer to access the low level
functionalities of Npcap in a system-independent way. This library handles all
the system-dependent details (like managing the devices, interacting with the OS
to manage the adapters, looking for the information in the registry and so on),
and exports an API that is uniform across all Windows OSes. In this way,
applications or libraries based on it can run without being recompiled
under any Windows operating system. </p>
<!-- TODO: Verify if Npcap still can "install the driver" via Packet.dll, or if it can only start the driver. -->
<p>The other important feature of this library is its ability to handle NPF driver.
Packet.dll transparently installs and starts the driver when an application
attempts to access an adapter. This avoids the manual installation of the driver
through the control panel.</p>
<h2>Important note, read carefully!</h2>
<p>The source code of Packet.dll is freely available and completely documented.
However, packet.dll should be considered an internal API, because its purpose
inside Npcap is to be a building block for the real public API: wpcap.dll.</p>
<p>As a consequence, since the <b>normal</b> and <b>suggested</b> way for an
application to use Npcap is through wpcap.dll, <b>we don't guarantee that the packet.dll
API will not be changed in future releases of Npcap, and we don't provide
support for this API</b>. For the same reason, <b>this manual doesn't contain
any more the Doxygen-generated documentation of Packet.dll</b>: the user will
have to run Doxygen on his own to create it, or read the comments in the source
code.</p>
</body>
</html>