[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 |
|
---|
[c627795] | 7 | <!ENTITY libpcap-download-http "http://www.tcpdump.org/release/libpcap-&libpcap-version;.tar.gz">
|
---|
| 8 | <!ENTITY libpcap-download-ftp " ">
|
---|
[9ade54a3] | 9 | <!ENTITY libpcap-md5sum "8c12dc19dd7e0d02d2bb6596eb5a71c7">
|
---|
| 10 | <!ENTITY libpcap-size "916 KB">
|
---|
| 11 | <!ENTITY libpcap-buildsize "13 MB">
|
---|
[7014c9d] | 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 |
|
---|
[2481e2a] | 23 | <title>libpcap-&libpcap-version;</title>
|
---|
[8e75f8b9] | 24 |
|
---|
[73db351a] | 25 | <indexterm zone="libpcap">
|
---|
[c627795] | 26 | <primary sortas="a-libpcap">libpcap</primary>
|
---|
[73db351a] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[2481e2a] | 30 | <title>Introduction to libpcap</title>
|
---|
[8e75f8b9] | 31 |
|
---|
[c627795] | 32 | <para>
|
---|
| 33 | <application>libpcap</application> provides functions for user-level
|
---|
| 34 | packet capture, used in low-level network monitoring.
|
---|
| 35 | </para>
|
---|
[8e75f8b9] | 36 |
|
---|
[66d551c] | 37 | &lfs101_checked;
|
---|
[3724ba1] | 38 |
|
---|
[73db351a] | 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[c627795] | 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&libpcap-download-http;"/>
|
---|
| 44 | </para>
|
---|
[73db351a] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[c627795] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&libpcap-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[73db351a] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[c627795] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &libpcap-md5sum;
|
---|
| 54 | </para>
|
---|
[73db351a] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[c627795] | 57 | <para>
|
---|
| 58 | Download size: &libpcap-size;
|
---|
| 59 | </para>
|
---|
[73db351a] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[c627795] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &libpcap-buildsize;
|
---|
| 64 | </para>
|
---|
[73db351a] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[c627795] | 67 | <para>
|
---|
| 68 | Estimated build time: &libpcap-time;
|
---|
| 69 | </para>
|
---|
[73db351a] | 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
[8e75f8b9] | 72 |
|
---|
[9ade54a3] | 73 | <!-- Not needed with 1.10.0
|
---|
[a1f2d184] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 75 | <itemizedlist spacing="compact">
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | Recommended patch:
|
---|
| 79 | <ulink url="&patch-root;/libpcap-&libpcap-version;-enable_bluetooth-1.patch"/>
|
---|
| 80 | (Needed for bluez-5.21)
|
---|
| 81 | </para>
|
---|
| 82 | </listitem>
|
---|
| 83 | </itemizedlist>
|
---|
[9ade54a3] | 84 | -->
|
---|
[a1f2d184] | 85 |
|
---|
[2481e2a] | 86 | <bridgehead renderas="sect3">libpcap Dependencies</bridgehead>
|
---|
[8e75f8b9] | 87 |
|
---|
[73db351a] | 88 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c627795] | 89 | <para role="optional">
|
---|
| 90 | <xref linkend="bluez"/>,
|
---|
[faf325d] | 91 | <xref linkend="libnl"/>,
|
---|
[14dc4b73] | 92 | <xref linkend="libusb"/>,
|
---|
| 93 | Software distribution for the
|
---|
| 94 | <ulink url="http://www.endace.com/">DAG</ulink>, and
|
---|
[c627795] | 95 | <ulink url="http://www.intel.com/">Septel</ulink> range of passive
|
---|
| 96 | network monitoring cards.
|
---|
| 97 | </para>
|
---|
[8e75f8b9] | 98 |
|
---|
[061ec9d] | 99 | <para condition="html" role="usernotes">User Notes:
|
---|
[c627795] | 100 | <ulink url="&blfs-wiki;/libpcap"/>
|
---|
| 101 | </para>
|
---|
[73db351a] | 102 | </sect2>
|
---|
[8e75f8b9] | 103 |
|
---|
[73db351a] | 104 | <sect2 role="installation">
|
---|
[2481e2a] | 105 | <title>Installation of libpcap</title>
|
---|
[73db351a] | 106 |
|
---|
[c627795] | 107 | <para>
|
---|
| 108 | Install <application>libpcap</application> by running the
|
---|
| 109 | following commands:
|
---|
| 110 | </para>
|
---|
[73db351a] | 111 |
|
---|
[9ade54a3] | 112 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[73db351a] | 113 | make</userinput></screen>
|
---|
| 114 |
|
---|
[c627795] | 115 | <para>
|
---|
| 116 | This package does not come with a test suite.
|
---|
| 117 | </para>
|
---|
[8e75f8b9] | 118 |
|
---|
[ac87f71] | 119 | <para>
|
---|
| 120 | If you want to disable installing the static library, use this sed:
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <screen><userinput>sed -i '/INSTALL_DATA.*libpcap.a\|RANLIB.*libpcap.a/ s/^/#/' Makefile</userinput></screen>
|
---|
| 124 |
|
---|
[c627795] | 125 | <para>
|
---|
| 126 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 127 | </para>
|
---|
[8e75f8b9] | 128 |
|
---|
[3724ba1] | 129 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 130 |
|
---|
[73db351a] | 131 | </sect2>
|
---|
[8e75f8b9] | 132 |
|
---|
[9ade54a3] | 133 | <!--
|
---|
[b7ed441] | 134 | <sect2 role="commands">
|
---|
| 135 | <title>Command Explanations</title>
|
---|
| 136 |
|
---|
[7c56ece] | 137 | <para>
|
---|
[9ade54a3] | 138 | <option>- -enable-bluetooth=no</option>: Necessary, if the recommended
|
---|
[7c56ece] | 139 | patch is not applied, because since 1.6.1 this application needs a fix,
|
---|
| 140 | in order to build with <application>bluez-5.21</application>.
|
---|
| 141 | </para>
|
---|
[b7ed441] | 142 |
|
---|
| 143 | </sect2>
|
---|
[9ade54a3] | 144 | -->
|
---|
[b7ed441] | 145 |
|
---|
[73db351a] | 146 | <sect2 role="content">
|
---|
| 147 | <title>Contents</title>
|
---|
| 148 |
|
---|
| 149 | <segmentedlist>
|
---|
[3724ba1] | 150 | <segtitle>Installed Program</segtitle>
|
---|
[90811a2] | 151 | <segtitle>Installed Libraries</segtitle>
|
---|
[45d5ee9] | 152 | <segtitle>Installed Directory</segtitle>
|
---|
[8e75f8b9] | 153 |
|
---|
[73db351a] | 154 | <seglistitem>
|
---|
[c627795] | 155 | <seg>
|
---|
[7c6f1e2a] | 156 | pcap-config
|
---|
[c627795] | 157 | </seg>
|
---|
| 158 | <seg>
|
---|
[9ade54a3] | 159 | libpcap.so
|
---|
[c627795] | 160 | </seg>
|
---|
| 161 | <seg>
|
---|
| 162 | /usr/include/pcap
|
---|
| 163 | </seg>
|
---|
[73db351a] | 164 | </seglistitem>
|
---|
| 165 | </segmentedlist>
|
---|
[8e75f8b9] | 166 |
|
---|
[73db351a] | 167 | <variablelist>
|
---|
| 168 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 169 | <?dbfo list-presentation="list"?>
|
---|
| 170 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 171 |
|
---|
[7c6f1e2a] | 172 | <varlistentry id="pcap-config">
|
---|
| 173 | <term><command>pcap-config</command></term>
|
---|
[3724ba1] | 174 | <listitem>
|
---|
[c627795] | 175 | <para>
|
---|
| 176 | provides configuration information for
|
---|
[4c24eb0a] | 177 | <application>libpcap</application>
|
---|
[c627795] | 178 | </para>
|
---|
[7c6f1e2a] | 179 | <indexterm zone="libpcap pcap-config">
|
---|
| 180 | <primary sortas="c-libpcap">pcap-config</primary>
|
---|
[3724ba1] | 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
[73db351a] | 185 | <varlistentry id="libpcap-lib">
|
---|
[90811a2] | 186 | <term><filename class="libraryfile">libpcap.{a,so}</filename></term>
|
---|
[73db351a] | 187 | <listitem>
|
---|
[c627795] | 188 | <para>
|
---|
[4c24eb0a] | 189 | are libraries used for user-level packet capture
|
---|
[c627795] | 190 | </para>
|
---|
[73db351a] | 191 | <indexterm zone="libpcap libpcap-lib">
|
---|
[90811a2] | 192 | <primary sortas="c-libpcap">libpcap.{a,so}</primary>
|
---|
[73db351a] | 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
[8e75f8b9] | 196 |
|
---|
[73db351a] | 197 | </variablelist>
|
---|
| 198 |
|
---|
| 199 | </sect2>
|
---|
[4dac741] | 200 |
|
---|
| 201 | </sect1>
|
---|