[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 " ">
|
---|
[42285880] | 9 | <!ENTITY libpcap-md5sum "b2e13142bbaba857ab1c6894aedaf547">
|
---|
[1f01e380] | 10 | <!ENTITY libpcap-size "648 KB">
|
---|
[42285880] | 11 | <!ENTITY libpcap-buildsize "9 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 |
|
---|
[2481e2a6] | 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">
|
---|
[2481e2a6] | 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 |
|
---|
[dc20ce3] | 37 | &lfs78_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 |
|
---|
[a1f2d184] | 73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 74 | <itemizedlist spacing="compact">
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>
|
---|
| 77 | Recommended patch:
|
---|
| 78 | <ulink url="&patch-root;/libpcap-&libpcap-version;-enable_bluetooth-1.patch"/>
|
---|
| 79 | (Needed for bluez-5.21)
|
---|
| 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
| 83 |
|
---|
[2481e2a6] | 84 | <bridgehead renderas="sect3">libpcap Dependencies</bridgehead>
|
---|
[8e75f8b9] | 85 |
|
---|
[73db351a] | 86 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c627795] | 87 | <para role="optional">
|
---|
| 88 | <xref linkend="bluez"/>,
|
---|
[faf325d] | 89 | <xref linkend="libnl"/>,
|
---|
[14dc4b73] | 90 | <xref linkend="libusb"/>,
|
---|
| 91 | Software distribution for the
|
---|
| 92 | <ulink url="http://www.endace.com/">DAG</ulink>, and
|
---|
[c627795] | 93 | <ulink url="http://www.intel.com/">Septel</ulink> range of passive
|
---|
| 94 | network monitoring cards.
|
---|
| 95 | </para>
|
---|
[8e75f8b9] | 96 |
|
---|
[061ec9d] | 97 | <para condition="html" role="usernotes">User Notes:
|
---|
[c627795] | 98 | <ulink url="&blfs-wiki;/libpcap"/>
|
---|
| 99 | </para>
|
---|
[73db351a] | 100 | </sect2>
|
---|
[8e75f8b9] | 101 |
|
---|
[73db351a] | 102 | <sect2 role="installation">
|
---|
[2481e2a6] | 103 | <title>Installation of libpcap</title>
|
---|
[73db351a] | 104 |
|
---|
[c627795] | 105 | <para>
|
---|
| 106 | Install <application>libpcap</application> by running the
|
---|
| 107 | following commands:
|
---|
| 108 | </para>
|
---|
[73db351a] | 109 |
|
---|
[a1f2d184] | 110 | <screen><userinput>patch -Np1 -i ../libpcap-&libpcap-version;-enable_bluetooth-1.patch &&
|
---|
[80d6d7d5] | 111 |
|
---|
[a1f2d184] | 112 | ./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 |
|
---|
[b7ed441] | 133 | <sect2 role="commands">
|
---|
| 134 | <title>Command Explanations</title>
|
---|
| 135 |
|
---|
[a1f2d184] | 136 | <para><parameter>--enable-bluetooth=no</parameter>: Necessary, if the
|
---|
| 137 | recommended patch is not applied, because since 1.6.1 this application
|
---|
| 138 | needs a fix, in order to build with
|
---|
| 139 | <application>bluez-5.21</application>.</para>
|
---|
[b7ed441] | 140 |
|
---|
| 141 | </sect2>
|
---|
| 142 |
|
---|
[73db351a] | 143 | <sect2 role="content">
|
---|
| 144 | <title>Contents</title>
|
---|
| 145 |
|
---|
| 146 | <segmentedlist>
|
---|
[3724ba1] | 147 | <segtitle>Installed Program</segtitle>
|
---|
[90811a2] | 148 | <segtitle>Installed Libraries</segtitle>
|
---|
[45d5ee9] | 149 | <segtitle>Installed Directory</segtitle>
|
---|
[8e75f8b9] | 150 |
|
---|
[73db351a] | 151 | <seglistitem>
|
---|
[c627795] | 152 | <seg>
|
---|
[7c6f1e2a] | 153 | pcap-config
|
---|
[c627795] | 154 | </seg>
|
---|
| 155 | <seg>
|
---|
[7014c9d] | 156 | libpcap.so, libpcap.a (optional)
|
---|
[c627795] | 157 | </seg>
|
---|
| 158 | <seg>
|
---|
| 159 | /usr/include/pcap
|
---|
| 160 | </seg>
|
---|
[73db351a] | 161 | </seglistitem>
|
---|
| 162 | </segmentedlist>
|
---|
[8e75f8b9] | 163 |
|
---|
[73db351a] | 164 | <variablelist>
|
---|
| 165 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 166 | <?dbfo list-presentation="list"?>
|
---|
| 167 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 168 |
|
---|
[7c6f1e2a] | 169 | <varlistentry id="pcap-config">
|
---|
| 170 | <term><command>pcap-config</command></term>
|
---|
[3724ba1] | 171 | <listitem>
|
---|
[c627795] | 172 | <para>
|
---|
| 173 | provides configuration information for
|
---|
| 174 | <application>libpcap</application>.
|
---|
| 175 | </para>
|
---|
[7c6f1e2a] | 176 | <indexterm zone="libpcap pcap-config">
|
---|
| 177 | <primary sortas="c-libpcap">pcap-config</primary>
|
---|
[3724ba1] | 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
[73db351a] | 182 | <varlistentry id="libpcap-lib">
|
---|
[90811a2] | 183 | <term><filename class="libraryfile">libpcap.{a,so}</filename></term>
|
---|
[73db351a] | 184 | <listitem>
|
---|
[c627795] | 185 | <para>
|
---|
| 186 | are libraries used for user-level packet capture.
|
---|
| 187 | </para>
|
---|
[73db351a] | 188 | <indexterm zone="libpcap libpcap-lib">
|
---|
[90811a2] | 189 | <primary sortas="c-libpcap">libpcap.{a,so}</primary>
|
---|
[73db351a] | 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
[8e75f8b9] | 193 |
|
---|
[73db351a] | 194 | </variablelist>
|
---|
| 195 |
|
---|
| 196 | </sect2>
|
---|
[4dac741] | 197 |
|
---|
| 198 | </sect1>
|
---|