File: 2.html

package info (click to toggle)
libnet 1.0-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,792 kB
  • ctags: 853
  • sloc: ansic: 8,738; sh: 1,793; makefile: 407
file content (107 lines) | stat: -rw-r--r-- 4,442 bytes parent folder | download
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
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="Author" content="Mike Schiffman">
   <meta name="GENERATOR" content="Mozilla/4.6 [en] (Win98; I) [Netscape]">
   <title>Introduction</title>
</head>
<body text="#000000" bgcolor="#CCCCCC" link="#0000EE" vlink="#551A8B" alink="#FF0000">
<a href="3.html">Next</a> <a href="1.html">Previous</a> <a href="lrm.html">Top</a>
<br>
<hr ALIGN=LEFT WIDTH="97%">
<br><b><font size=+2>2. Broad Overview</font></b>
<br>
<hr ALIGN=LEFT WIDTH="97%">
<p><font size=-1>Libnet is a simple C library.&nbsp; It is designed to
be small, efficient and easy to use.&nbsp; Libnet's main goal is portable
packet creation and injection.&nbsp; At the time this manual was written,
Libnet was in version 1.0.0 and had 15 different packet assemblers and
two types of packet injection, IP-layer and link-layer (more on those below).</font>
<p><font size=-1>By itself, libnet is moderately useful.&nbsp; It can build
and inject packets to the network.&nbsp; Libnet, however, has no provisions
for packet capture.&nbsp; For this, one must look to libpcap <a href="7.html">[1]</a>.&nbsp;
Together, libnet and libpcap are powerful tools available to the network
programmer.</font>
<p><font size=-1>Libnet 1.0.0 consists of about:</font>
<ul>
<li>
<font size=-1>7600 lines of code</font></li>

<li>
<font size=-1>33 source files</font></li>

<li>
<font size=-1>12 include files</font></li>

<li>
<font size=-1>50 some-odd functions</font></li>
</ul>

<p><br><font size=-1>This manual attempts to document as much of libnet
as possible, but is probably not complete.&nbsp; It assumes you have a
good working knowledge of C and the TCP/IP protocol suite, but since you're
already here, you probably have all of those tools.</font>
<br>
<hr ALIGN=LEFT WIDTH="97%">
<br><a NAME="s2.1"></a><b><font size=+2>2.1 Ports</font></b>
<br>
<hr ALIGN=LEFT WIDTH="97%">
<p><font size=-1>Libnet has been compiled and tested successfully on the
following platforms:</font>
<ul>
<li>
<font size=-1>OpenBSD&nbsp;&nbsp;&nbsp; 2.5, 2.4, 2.3, 2.2 (i386)</font></li>

<li>
<font size=-1>FreeBSD&nbsp;&nbsp;&nbsp;&nbsp; 3.3-STABLE, 3.2-RELEASE,
3.1-CURRENT, 3.0, 2.2 (i386)</font></li>

<li>
<font size=-1>NetBSD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.3.2 (i386)</font></li>

<li>
<font size=-1>BSD/OS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3.x (i386)</font></li>

<li>
<font size=-1>BSDi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3.0 (i386)</font></li>

<li>
<font size=-1>Linux&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2.2.x, 2.0.3x, 2.1.124 (i386, alpha)&nbsp; (libc:&nbsp; 2.4.x, glibc: 2.0.x)</font></li>

<li>
<font size=-1>Solaris&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7
(SPARC, gcc 2.7.2[13], 2.8.2), 2.6 (SPARC, gcc 2.8.2), 2.5.x (SPARC, gcc
2.7.2[13])</font></li>

<li>
<font size=-1>IRIX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
6.2</font></li>

<li>
<font size=-1>MacOS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5.3rhapsody
(powerpc)</font></li>
</ul>
<font size=-1>If your platform is not listed, don't despair..&nbsp; It
might work!&nbsp; If it does, please drop me a line.&nbsp; If it doesn't
and you port libnet to your platform, please send me diffs!</font>
<p><font size=-1>Libnet is not as yet portable to Microsoft operating systems.</font>
<br>
<hr ALIGN=LEFT WIDTH="97%">
<br><a NAME="s2.2"></a><b><font size=+2>2.2 Getting Started</font></b>
<br>
<hr ALIGN=LEFT WIDTH="97%">
<p><font size=-1>Go get the library: <a href="http://www.packetfactory.net/libnet">http://www.packetfactory.net/libnet</a>.&nbsp;
Even if your operating system includes it, you might want to check and
make sure you have the most recent version of libnet.&nbsp; Libnet uses
GNU autoconf for precompilation configuration, to start it on its way,
simply type <tt>./configure.&nbsp; </tt>From there, you'll want to build
the library by running <tt>`make` </tt>in the same directory.&nbsp; If
there are any errors or warnings, please send them to <a href="mailto://mike@infonexus.com">mike@infonexus.com.</a></font>
<br>
<hr ALIGN=LEFT WIDTH="97%">
<br><a href="3.html">Next</a> <a href="1.html">Previous</a> <a href="lrm.html">Top</a>
</body>
</html>