[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[73db351a] | 7 | <!ENTITY libpcap-download-http "http://www.tcpdump.org/release/libpcap-&libpcap-version;.tar.gz">
|
---|
[fb2e525] | 8 | <!ENTITY libpcap-download-ftp "&gentoo-ftp-repo;/libpcap-&libpcap-version;.tar.gz">
|
---|
[3fef5b2] | 9 | <!ENTITY libpcap-md5sum "2e1b5e983654c1d5991450e3e0e525ca">
|
---|
| 10 | <!ENTITY libpcap-size "438 KB">
|
---|
| 11 | <!ENTITY libpcap-buildsize "4 MB">
|
---|
[2481e2a6] | 12 | <!ENTITY libpcap-time "less than 0.1 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[fd680fb] | 15 | <sect1 id="libpcap" xreflabel="libpcap-&libpcap-version;">
|
---|
[73db351a] | 16 | <?dbhtml filename="libpcap.html"?>
|
---|
[8e75f8b9] | 17 |
|
---|
[73db351a] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[8e75f8b9] | 22 |
|
---|
[2481e2a6] | 23 | <title>libpcap-&libpcap-version;</title>
|
---|
[8e75f8b9] | 24 |
|
---|
[73db351a] | 25 | <indexterm zone="libpcap">
|
---|
| 26 | <primary sortas="a-Libpcap">Libpcap</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[2481e2a6] | 30 | <title>Introduction to libpcap</title>
|
---|
[8e75f8b9] | 31 |
|
---|
[74390482] | 32 | <para><application>libpcap</application> provides functions for user-level
|
---|
[73db351a] | 33 | packet capture, used in low-level network monitoring.</para>
|
---|
[8e75f8b9] | 34 |
|
---|
[73db351a] | 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>Download (HTTP): <ulink url="&libpcap-download-http;"/></para>
|
---|
| 39 | </listitem>
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (FTP): <ulink url="&libpcap-download-ftp;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download MD5 sum: &libpcap-md5sum;</para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download size: &libpcap-size;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Estimated disk space required: &libpcap-buildsize;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated build time: &libpcap-time;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | </itemizedlist>
|
---|
[8e75f8b9] | 56 |
|
---|
[2481e2a6] | 57 | <bridgehead renderas="sect3">libpcap Dependencies</bridgehead>
|
---|
[8e75f8b9] | 58 |
|
---|
[73db351a] | 59 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[4dbbf634] | 60 | <para role="optional">Software distribution for the
|
---|
[a9d2cbd] | 61 | <ulink url="http://www.endace.com/">DAG</ulink> and
|
---|
| 62 | <ulink url="http://www.intel.com/">Septel</ulink> range of passive
|
---|
| 63 | network monitoring cards.</para>
|
---|
[8e75f8b9] | 64 |
|
---|
[061ec9d] | 65 | <para condition="html" role="usernotes">User Notes:
|
---|
| 66 | <ulink url="&blfs-wiki;/libpcap"/></para>
|
---|
| 67 |
|
---|
[73db351a] | 68 | </sect2>
|
---|
[8e75f8b9] | 69 |
|
---|
[73db351a] | 70 | <sect2 role="installation">
|
---|
[2481e2a6] | 71 | <title>Installation of libpcap</title>
|
---|
[73db351a] | 72 |
|
---|
| 73 | <para>Install <application>libpcap</application> by running the
|
---|
| 74 | following commands:</para>
|
---|
| 75 |
|
---|
| 76 | <screen><userinput>./configure --prefix=/usr &&
|
---|
| 77 | make</userinput></screen>
|
---|
| 78 |
|
---|
| 79 | <para>This package does not come with a test suite.</para>
|
---|
[8e75f8b9] | 80 |
|
---|
[73db351a] | 81 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[8e75f8b9] | 82 |
|
---|
[e8d4427c] | 83 | <screen role="root"><userinput>make install &&
|
---|
| 84 | install -v -m755 -d /usr/share/doc/libpcap-&libpcap-version; &&
|
---|
[3fef5b2] | 85 | install -v -m644 doc/* /usr/share/doc/libpcap-&libpcap-version;</userinput></screen>
|
---|
[73db351a] | 86 |
|
---|
[e8d4427c] | 87 | <!-- <note>
|
---|
[74390482] | 88 | <para>Some applications, including <ulink
|
---|
| 89 | url="http://www.tcpdump.org/">tcpdump</ulink>, require
|
---|
[e8d4427c] | 90 | <option>-enable-yydebug</option> passed to <command>configure</command>
|
---|
[74390482] | 91 | when building <application>libpcap</application> to enable the parser
|
---|
| 92 | debugging code. <application>tcpdump</application> will fail to build if
|
---|
[73db351a] | 93 | you don't pass this parameter.</para>
|
---|
[e8d4427c] | 94 | </note> -->
|
---|
[8e75f8b9] | 95 |
|
---|
[73db351a] | 96 | </sect2>
|
---|
[8e75f8b9] | 97 |
|
---|
[73db351a] | 98 | <sect2 role="content">
|
---|
| 99 | <title>Contents</title>
|
---|
| 100 |
|
---|
| 101 | <segmentedlist>
|
---|
| 102 | <segtitle>Installed Programs</segtitle>
|
---|
| 103 | <segtitle>Installed Library</segtitle>
|
---|
[45d5ee9] | 104 | <segtitle>Installed Directory</segtitle>
|
---|
[8e75f8b9] | 105 |
|
---|
[73db351a] | 106 | <seglistitem>
|
---|
| 107 | <seg>None</seg>
|
---|
| 108 | <seg>libpcap.a</seg>
|
---|
[45d5ee9] | 109 | <seg>/usr/share/doc/libpcap-&libpcap-version;</seg>
|
---|
[73db351a] | 110 | </seglistitem>
|
---|
| 111 | </segmentedlist>
|
---|
[8e75f8b9] | 112 |
|
---|
[73db351a] | 113 | <variablelist>
|
---|
| 114 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 115 | <?dbfo list-presentation="list"?>
|
---|
| 116 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 117 |
|
---|
[73db351a] | 118 | <varlistentry id="libpcap-lib">
|
---|
| 119 | <term><filename class="libraryfile">libpcap.a</filename></term>
|
---|
| 120 | <listitem>
|
---|
| 121 | <para>is a library used for user-level packet capture.</para>
|
---|
| 122 | <indexterm zone="libpcap libpcap-lib">
|
---|
| 123 | <primary sortas="c-libpcap">libpcap.a</primary>
|
---|
| 124 | </indexterm>
|
---|
| 125 | </listitem>
|
---|
| 126 | </varlistentry>
|
---|
[8e75f8b9] | 127 |
|
---|
[73db351a] | 128 | </variablelist>
|
---|
| 129 |
|
---|
| 130 | </sect2>
|
---|
[4dac741] | 131 |
|
---|
| 132 | </sect1>
|
---|