[3e39d34] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[2625f532] | 7 | <!ENTITY libnl-download-http
|
---|
| 8 | "http://www.carisma.slowglass.com/~tgr/libnl/files/libnl-&libnl-version;.tar.gz">
|
---|
[3e39d34] | 9 | <!ENTITY libnl-download-ftp " ">
|
---|
[fad8db2] | 10 | <!ENTITY libnl-md5sum "03f74d0cd5037cadc8cdfa313bbd195c">
|
---|
| 11 | <!ENTITY libnl-size "816 KB">
|
---|
| 12 | <!ENTITY libnl-buildsize "22 MB (additional 1 MB for the tests and 37MB for the API documentation)">
|
---|
| 13 | <!ENTITY libnl-time "0.4 SBU">
|
---|
| 14 |
|
---|
| 15 |
|
---|
| 16 | <!ENTITY libnl-doc-download-http
|
---|
| 17 | "http://www.carisma.slowglass.com/~tgr/libnl/files/libnl-doc-&libnl-version;.tar.gz">
|
---|
| 18 | <!ENTITY libnl-doc-download-ftp " ">
|
---|
| 19 | <!ENTITY libnl-doc-md5sum "641f73052d9f54e720efe1a476a20237">
|
---|
| 20 | <!ENTITY libnl-doc-size "15 MB">
|
---|
[3e39d34] | 21 | ]>
|
---|
| 22 |
|
---|
| 23 | <sect1 id="libnl" xreflabel="libnl-&libnl-version;">
|
---|
| 24 | <?dbhtml filename="libnl.html"?>
|
---|
| 25 |
|
---|
| 26 | <sect1info>
|
---|
| 27 | <othername>$LastChangedBy$</othername>
|
---|
| 28 | <date>$Date$</date>
|
---|
| 29 | </sect1info>
|
---|
| 30 |
|
---|
| 31 | <title>libnl-&libnl-version;</title>
|
---|
| 32 |
|
---|
| 33 | <indexterm zone="libnl">
|
---|
| 34 | <primary sortas="a-libnl">libnl</primary>
|
---|
| 35 | </indexterm>
|
---|
| 36 |
|
---|
| 37 | <sect2 role="package">
|
---|
| 38 | <title>Introduction to libnl</title>
|
---|
| 39 |
|
---|
[c6ac193] | 40 | <para>
|
---|
| 41 | The <application>libnl</application> suite is a collection of libraries
|
---|
| 42 | providing APIs to netlink protocol based Linux kernel interfaces.
|
---|
| 43 | </para>
|
---|
[3e39d34] | 44 |
|
---|
[798ffdc] | 45 | &lfs77_checked; &gcc5_checked;
|
---|
[3e39d34] | 46 |
|
---|
| 47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 48 | <itemizedlist spacing="compact">
|
---|
| 49 | <listitem>
|
---|
[c6ac193] | 50 | <para>
|
---|
| 51 | Download (HTTP): <ulink url="&libnl-download-http;"/>
|
---|
| 52 | </para>
|
---|
[3e39d34] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[c6ac193] | 55 | <para>
|
---|
| 56 | Download (FTP): <ulink url="&libnl-download-ftp;"/>
|
---|
| 57 | </para>
|
---|
[3e39d34] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[c6ac193] | 60 | <para>
|
---|
| 61 | Download MD5 sum: &libnl-md5sum;
|
---|
| 62 | </para>
|
---|
[3e39d34] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[c6ac193] | 65 | <para>
|
---|
| 66 | Download size: &libnl-size;
|
---|
| 67 | </para>
|
---|
[3e39d34] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[c6ac193] | 70 | <para>
|
---|
| 71 | Estimated disk space required: &libnl-buildsize;
|
---|
| 72 | </para>
|
---|
[3e39d34] | 73 | </listitem>
|
---|
| 74 | <listitem>
|
---|
[c6ac193] | 75 | <para>
|
---|
| 76 | Estimated build time: &libnl-time;
|
---|
| 77 | </para>
|
---|
[3e39d34] | 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
| 80 |
|
---|
[fad8db2] | 81 | <bridgehead renderas="sect3">Optional Download</bridgehead>
|
---|
| 82 | <itemizedlist spacing="compact">
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>
|
---|
| 85 | Download (HTTP): <ulink url="&libnl-doc-download-http;"/>
|
---|
| 86 | </para>
|
---|
| 87 | </listitem>
|
---|
| 88 | <listitem>
|
---|
| 89 | <para>
|
---|
| 90 | Download (FTP): <ulink url="&libnl-doc-download-ftp;"/>
|
---|
| 91 | </para>
|
---|
| 92 | </listitem>
|
---|
| 93 | <listitem>
|
---|
| 94 | <para>
|
---|
| 95 | Download MD5 sum: &libnl-doc-md5sum;
|
---|
| 96 | </para>
|
---|
| 97 | </listitem>
|
---|
| 98 | <listitem>
|
---|
| 99 | <para>
|
---|
| 100 | Download size: &libnl-doc-size;
|
---|
| 101 | </para>
|
---|
| 102 | </listitem>
|
---|
| 103 | </itemizedlist>
|
---|
| 104 |
|
---|
[933d7c9] | 105 | <bridgehead renderas="sect3">libnl Dependencies</bridgehead>
|
---|
| 106 |
|
---|
| 107 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 108 | <para role="optional">
|
---|
| 109 | <xref linkend="check"/> (for tests)
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
[3e39d34] | 112 | <para condition="html" role="usernotes">User Notes:
|
---|
[c6ac193] | 113 | <ulink url="&blfs-wiki;/libnl"/>
|
---|
| 114 | </para>
|
---|
[3e39d34] | 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="installation">
|
---|
| 118 | <title>Installation of libnl</title>
|
---|
| 119 |
|
---|
[c6ac193] | 120 | <para>
|
---|
| 121 | Install <application>libnl</application> by running the following
|
---|
| 122 | commands:
|
---|
| 123 | </para>
|
---|
[3e39d34] | 124 |
|
---|
[3e7d4c6] | 125 | <screen><userinput>./configure --prefix=/usr \
|
---|
[d61e48e3] | 126 | --sysconfdir=/etc \
|
---|
[fad8db2] | 127 | --disable-static &&
|
---|
[9c24d38] | 128 | make</userinput></screen>
|
---|
[3e39d34] | 129 |
|
---|
[c6ac193] | 130 | <para>
|
---|
| 131 | To test the results, issue: <command>make check</command>.
|
---|
| 132 | </para>
|
---|
[3e39d34] | 133 |
|
---|
[c6ac193] | 134 | <para>
|
---|
| 135 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 136 | </para>
|
---|
[3e39d34] | 137 |
|
---|
| 138 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 139 |
|
---|
[fad8db2] | 140 | <para>
|
---|
[5fa1961] | 141 | If you wish to install the API documentation, as the
|
---|
[fad8db2] | 142 | <systemitem class="username">root</systemitem> user:
|
---|
| 143 | </para>
|
---|
| 144 |
|
---|
| 145 | <screen role="root"><userinput>mkdir -vp /usr/share/doc/libnl-&libnl-version; &&
|
---|
[8f79ce13] | 146 | tar -xf ../libnl-doc-&libnl-version;.tar.gz --strip-components=1 --no-same-owner \
|
---|
| 147 | -C /usr/share/doc/libnl-&libnl-version;</userinput></screen>
|
---|
[fad8db2] | 148 |
|
---|
[3e39d34] | 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | <sect2 role="commands">
|
---|
| 152 | <title>Command Explanations</title>
|
---|
| 153 |
|
---|
[c6ac193] | 154 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 155 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 156 |
|
---|
| 157 | <para>
|
---|
| 158 | <option>--disable-cli</option>: Use this parameter if you
|
---|
| 159 | don't want to install cli tools provided by the package.
|
---|
| 160 | </para>
|
---|
[3e39d34] | 161 |
|
---|
| 162 | </sect2>
|
---|
| 163 |
|
---|
| 164 | <sect2 role="content">
|
---|
| 165 | <title>Contents</title>
|
---|
| 166 |
|
---|
| 167 | <segmentedlist>
|
---|
| 168 | <segtitle>Installed Programs</segtitle>
|
---|
[d61e48e3] | 169 | <segtitle>Installed Libraries</segtitle>
|
---|
[3e39d34] | 170 | <segtitle>Installed Directories</segtitle>
|
---|
| 171 |
|
---|
| 172 | <seglistitem>
|
---|
[c6ac193] | 173 | <seg>
|
---|
[91b65df] | 174 | genl-ctrl-list, nl-class-add, nl-class-delete, nl-classid-lookup,
|
---|
| 175 | nl-class-list, nl-cls-add, nl-cls-delete, nl-cls-list,
|
---|
| 176 | nl-link-list, nl-pktloc-lookup, nl-qdisc-add, nl-qdisc-delete, and
|
---|
| 177 | nl-qdisc-list
|
---|
[c6ac193] | 178 | </seg>
|
---|
| 179 | <seg>
|
---|
[91b65df] | 180 | libnl-3.so,
|
---|
| 181 | libnl-cli-3.so,
|
---|
| 182 | libnl-genl-3.so,
|
---|
[9304e0a] | 183 | libnl-idiag-3.so,
|
---|
[fad8db2] | 184 | libnl-nf-3.so,
|
---|
| 185 | libnl-route-3.so, and
|
---|
| 186 | cli modules under /usr/lib/libnl/cli tree
|
---|
[c6ac193] | 187 | </seg>
|
---|
[3e7d4c6] | 188 | <seg>
|
---|
[c6ac193] | 189 | /etc/libnl,
|
---|
[fad8db2] | 190 | /usr/include/libnl3,
|
---|
| 191 | /usr/lib/libnl, and
|
---|
| 192 | /usr/share/doc/libnl-&libnl-version;
|
---|
[c6ac193] | 193 | </seg>
|
---|
[3e39d34] | 194 | </seglistitem>
|
---|
| 195 | </segmentedlist>
|
---|
[c6ac193] | 196 |
|
---|
[3e39d34] | 197 | <variablelist>
|
---|
| 198 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 199 | <?dbfo list-presentation="list"?>
|
---|
| 200 | <?dbhtml list-presentation="table"?>
|
---|
| 201 |
|
---|
| 202 | <varlistentry id="libnl-lib">
|
---|
[b7b6efc] | 203 | <term><filename class="libraryfile">libnl*-3.so</filename></term>
|
---|
[3e39d34] | 204 | <listitem>
|
---|
[c6ac193] | 205 | <para>
|
---|
| 206 | These libraries contain API functions used to access Netlink
|
---|
| 207 | interfaces in Linux kernel.
|
---|
| 208 | </para>
|
---|
[3e39d34] | 209 | <indexterm zone="libnl libnl-lib">
|
---|
[c6ac193] | 210 | <primary sortas="c-libnl">libnl*-3.so</primary>
|
---|
[3e39d34] | 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | </variablelist>
|
---|
[c6ac193] | 216 |
|
---|
[3e39d34] | 217 | </sect2>
|
---|
| 218 |
|
---|
| 219 | </sect1>
|
---|