[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 " ">
|
---|
[2b65e69e] | 9 | <!ENTITY libpcap-md5sum "5eb05edf6b6c6e63d536d1c9fbfb2f7c">
|
---|
| 10 | <!ENTITY libpcap-size "636 KB">
|
---|
| 11 | <!ENTITY libpcap-buildsize "7.1 MB">
|
---|
| 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 |
|
---|
[3e06289] | 37 | &lfs76_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 |
|
---|
[2481e2a6] | 73 | <bridgehead renderas="sect3">libpcap Dependencies</bridgehead>
|
---|
[8e75f8b9] | 74 |
|
---|
[73db351a] | 75 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c627795] | 76 | <para role="optional">
|
---|
| 77 | <xref linkend="bluez"/>,
|
---|
[3e06289] | 78 | <xref linkend="dbus"/>,
|
---|
[faf325d] | 79 | <xref linkend="libnl"/>,
|
---|
[2b65e69e] | 80 | <xref linkend="libusb"/>,
|
---|
| 81 | Software distribution for the
|
---|
| 82 | <ulink url="http://www.endace.com/">DAG</ulink>, and
|
---|
[c627795] | 83 | <ulink url="http://www.intel.com/">Septel</ulink> range of passive
|
---|
| 84 | network monitoring cards.
|
---|
| 85 | </para>
|
---|
[8e75f8b9] | 86 |
|
---|
[061ec9d] | 87 | <para condition="html" role="usernotes">User Notes:
|
---|
[c627795] | 88 | <ulink url="&blfs-wiki;/libpcap"/>
|
---|
| 89 | </para>
|
---|
[73db351a] | 90 | </sect2>
|
---|
[8e75f8b9] | 91 |
|
---|
[73db351a] | 92 | <sect2 role="installation">
|
---|
[2481e2a6] | 93 | <title>Installation of libpcap</title>
|
---|
[73db351a] | 94 |
|
---|
[c627795] | 95 | <para>
|
---|
| 96 | Install <application>libpcap</application> by running the
|
---|
| 97 | following commands:
|
---|
| 98 | </para>
|
---|
[73db351a] | 99 |
|
---|
[3e06289] | 100 | <screen><userinput>./configure --prefix=/usr --disable-bluetooth &&
|
---|
[73db351a] | 101 | make</userinput></screen>
|
---|
| 102 |
|
---|
[c627795] | 103 | <para>
|
---|
| 104 | This package does not come with a test suite.
|
---|
| 105 | </para>
|
---|
[8e75f8b9] | 106 |
|
---|
[ac87f71] | 107 | <para>
|
---|
| 108 | If you want to disable installing the static library, use this sed:
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <screen><userinput>sed -i '/INSTALL_DATA.*libpcap.a\|RANLIB.*libpcap.a/ s/^/#/' Makefile</userinput></screen>
|
---|
| 112 |
|
---|
[c627795] | 113 | <para>
|
---|
| 114 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 115 | </para>
|
---|
[8e75f8b9] | 116 |
|
---|
[3724ba1] | 117 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 118 |
|
---|
[73db351a] | 119 | </sect2>
|
---|
[8e75f8b9] | 120 |
|
---|
[1e50cf5] | 121 | <sect2 role="commands">
|
---|
| 122 | <title>Command Explanations</title>
|
---|
| 123 |
|
---|
[3e06289] | 124 | <para>
|
---|
| 125 | <parameter>--disable-bluetooth</parameter>: This switch disables Bluetooth support
|
---|
| 126 | because it doesn't build with latest <application>BlueZ</application>.
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | <para>
|
---|
| 130 | <option>--disable-dbus</option>: Use this switch if you wish to disable
|
---|
| 131 | <application>D-Bus</application> support.
|
---|
| 132 | </para>
|
---|
[1e50cf5] | 133 |
|
---|
| 134 | </sect2>
|
---|
| 135 |
|
---|
[73db351a] | 136 | <sect2 role="content">
|
---|
| 137 | <title>Contents</title>
|
---|
| 138 |
|
---|
| 139 | <segmentedlist>
|
---|
[3724ba1] | 140 | <segtitle>Installed Program</segtitle>
|
---|
[90811a2] | 141 | <segtitle>Installed Libraries</segtitle>
|
---|
[45d5ee9] | 142 | <segtitle>Installed Directory</segtitle>
|
---|
[8e75f8b9] | 143 |
|
---|
[73db351a] | 144 | <seglistitem>
|
---|
[c627795] | 145 | <seg>
|
---|
[7c6f1e2a] | 146 | pcap-config
|
---|
[c627795] | 147 | </seg>
|
---|
| 148 | <seg>
|
---|
| 149 | libpcap.{a,so}
|
---|
| 150 | </seg>
|
---|
| 151 | <seg>
|
---|
| 152 | /usr/include/pcap
|
---|
| 153 | </seg>
|
---|
[73db351a] | 154 | </seglistitem>
|
---|
| 155 | </segmentedlist>
|
---|
[8e75f8b9] | 156 |
|
---|
[73db351a] | 157 | <variablelist>
|
---|
| 158 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 159 | <?dbfo list-presentation="list"?>
|
---|
| 160 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 161 |
|
---|
[7c6f1e2a] | 162 | <varlistentry id="pcap-config">
|
---|
| 163 | <term><command>pcap-config</command></term>
|
---|
[3724ba1] | 164 | <listitem>
|
---|
[c627795] | 165 | <para>
|
---|
| 166 | provides configuration information for
|
---|
| 167 | <application>libpcap</application>.
|
---|
| 168 | </para>
|
---|
[7c6f1e2a] | 169 | <indexterm zone="libpcap pcap-config">
|
---|
| 170 | <primary sortas="c-libpcap">pcap-config</primary>
|
---|
[3724ba1] | 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
[73db351a] | 175 | <varlistentry id="libpcap-lib">
|
---|
[90811a2] | 176 | <term><filename class="libraryfile">libpcap.{a,so}</filename></term>
|
---|
[73db351a] | 177 | <listitem>
|
---|
[c627795] | 178 | <para>
|
---|
| 179 | are libraries used for user-level packet capture.
|
---|
| 180 | </para>
|
---|
[73db351a] | 181 | <indexterm zone="libpcap libpcap-lib">
|
---|
[90811a2] | 182 | <primary sortas="c-libpcap">libpcap.{a,so}</primary>
|
---|
[73db351a] | 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
[8e75f8b9] | 186 |
|
---|
[73db351a] | 187 | </variablelist>
|
---|
| 188 |
|
---|
| 189 | </sect2>
|
---|
[4dac741] | 190 |
|
---|
| 191 | </sect1>
|
---|