2012-02-07 09:28:09 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2015-12-13 00:53:39 +08:00
|
|
|
<!ENTITY libnl-download-http "https://github.com/thom311/libnl/releases/download/libnl&libnl-dl-version;/libnl-&libnl-version;.tar.gz">
|
2012-02-07 09:28:09 +08:00
|
|
|
<!ENTITY libnl-download-ftp " ">
|
2016-07-12 02:14:45 +08:00
|
|
|
<!ENTITY libnl-md5sum "bab12db1eb94a42129f712a44be91a67">
|
|
|
|
<!ENTITY libnl-size "920 KB">
|
|
|
|
<!ENTITY libnl-buildsize "29 MB (with tests and API documentation)">
|
|
|
|
<!ENTITY libnl-time "0.5 SBU (with tests and API documentation)">
|
2014-07-19 01:51:38 +08:00
|
|
|
|
|
|
|
|
2015-12-13 00:53:39 +08:00
|
|
|
<!ENTITY libnl-doc-download-http "https://github.com/thom311/libnl/releases/download/libnl&libnl-dl-version;/libnl-doc-&libnl-version;.tar.gz">
|
2014-07-19 01:51:38 +08:00
|
|
|
<!ENTITY libnl-doc-download-ftp " ">
|
2016-07-12 02:14:45 +08:00
|
|
|
<!ENTITY libnl-doc-md5sum "403799b1aa950e51db957033adc8f30d">
|
|
|
|
<!ENTITY libnl-doc-size "32 MB">
|
2012-02-07 09:28:09 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="libnl" xreflabel="libnl-&libnl-version;">
|
|
|
|
<?dbhtml filename="libnl.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>libnl-&libnl-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="libnl">
|
|
|
|
<primary sortas="a-libnl">libnl</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to libnl</title>
|
|
|
|
|
2012-07-22 01:53:14 +08:00
|
|
|
<para>
|
|
|
|
The <application>libnl</application> suite is a collection of libraries
|
|
|
|
providing APIs to netlink protocol based Linux kernel interfaces.
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
|
2016-06-11 14:47:47 +08:00
|
|
|
&lfs79_checked;&gcc6_checked;
|
2012-02-07 09:28:09 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-07-22 01:53:14 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&libnl-download-http;"/>
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-22 01:53:14 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&libnl-download-ftp;"/>
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-22 01:53:14 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &libnl-md5sum;
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-22 01:53:14 +08:00
|
|
|
<para>
|
|
|
|
Download size: &libnl-size;
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-22 01:53:14 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &libnl-buildsize;
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-22 01:53:14 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &libnl-time;
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2014-07-19 01:51:38 +08:00
|
|
|
<bridgehead renderas="sect3">Optional Download</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&libnl-doc-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&libnl-doc-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &libnl-doc-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &libnl-doc-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2014-01-12 18:11:32 +08:00
|
|
|
<bridgehead renderas="sect3">libnl Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="check"/> (for tests)
|
|
|
|
</para>
|
|
|
|
|
2012-02-07 09:28:09 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2012-07-22 01:53:14 +08:00
|
|
|
<ulink url="&blfs-wiki;/libnl"/>
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of libnl</title>
|
|
|
|
|
2012-07-22 01:53:14 +08:00
|
|
|
<para>
|
|
|
|
Install <application>libnl</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
|
2012-09-28 10:14:33 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
2012-05-17 03:26:18 +08:00
|
|
|
--sysconfdir=/etc \
|
2014-07-19 01:51:38 +08:00
|
|
|
--disable-static &&
|
2013-01-20 01:40:35 +08:00
|
|
|
make</userinput></screen>
|
2012-02-07 09:28:09 +08:00
|
|
|
|
2012-07-22 01:53:14 +08:00
|
|
|
<para>
|
|
|
|
To test the results, issue: <command>make check</command>.
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
|
2012-07-22 01:53:14 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
2014-07-19 01:51:38 +08:00
|
|
|
<para>
|
2015-04-15 00:41:00 +08:00
|
|
|
If you wish to install the API documentation, as the
|
2014-07-19 01:51:38 +08:00
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>mkdir -vp /usr/share/doc/libnl-&libnl-version; &&
|
2014-07-19 10:58:15 +08:00
|
|
|
tar -xf ../libnl-doc-&libnl-version;.tar.gz --strip-components=1 --no-same-owner \
|
2015-10-16 11:09:51 +08:00
|
|
|
-C /usr/share/doc/libnl-&libnl-version;</userinput></screen>
|
2014-07-19 01:51:38 +08:00
|
|
|
|
2012-02-07 09:28:09 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-07-22 01:53:14 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<option>--disable-cli</option>: Use this parameter if you
|
|
|
|
don't want to install cli tools provided by the package.
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
2012-05-17 03:26:18 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
2012-02-07 09:28:09 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-07-22 01:53:14 +08:00
|
|
|
<seg>
|
2015-11-13 22:24:57 +08:00
|
|
|
genl-ctrl-list,
|
2015-10-16 11:09:51 +08:00
|
|
|
idiag-socket-details,
|
2015-11-13 22:24:57 +08:00
|
|
|
nl-class-add,
|
|
|
|
nl-class-delete,
|
2015-10-16 11:09:51 +08:00
|
|
|
nl-classid-lookup,
|
2015-11-13 22:24:57 +08:00
|
|
|
nl-class-list,
|
|
|
|
nl-cls-add,
|
|
|
|
nl-cls-delete,
|
|
|
|
nl-cls-list,
|
2015-10-16 11:09:51 +08:00
|
|
|
nl-link-list,
|
2015-11-13 22:24:57 +08:00
|
|
|
nl-pktloc-lookup,
|
|
|
|
nl-qdisc-add,
|
2015-10-16 11:09:51 +08:00
|
|
|
nl-qdisc-delete,
|
|
|
|
nl-qdisc-list, and 32 other helper programs with nl- and nf- prefixes
|
2012-07-22 01:53:14 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2015-09-24 23:27:00 +08:00
|
|
|
libnl-3.so,
|
|
|
|
libnl-cli-3.so,
|
2013-09-05 05:37:09 +08:00
|
|
|
libnl-genl-3.so,
|
2013-11-07 21:10:24 +08:00
|
|
|
libnl-idiag-3.so,
|
2015-09-24 23:27:00 +08:00
|
|
|
libnl-nf-3.so,
|
2015-11-13 22:24:57 +08:00
|
|
|
libnl-route-3.so,
|
2015-10-16 11:09:51 +08:00
|
|
|
libnl-xfrm-3.so, and
|
2014-07-19 01:51:38 +08:00
|
|
|
cli modules under /usr/lib/libnl/cli tree
|
2012-07-22 01:53:14 +08:00
|
|
|
</seg>
|
2012-09-28 10:14:33 +08:00
|
|
|
<seg>
|
2012-07-22 01:53:14 +08:00
|
|
|
/etc/libnl,
|
2014-07-19 01:51:38 +08:00
|
|
|
/usr/include/libnl3,
|
|
|
|
/usr/lib/libnl, and
|
|
|
|
/usr/share/doc/libnl-&libnl-version;
|
2012-07-22 01:53:14 +08:00
|
|
|
</seg>
|
2012-02-07 09:28:09 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2012-07-22 01:53:14 +08:00
|
|
|
|
2012-02-07 09:28:09 +08:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2015-08-14 09:04:27 +08:00
|
|
|
<varlistentry id="genl-ctrl-list">
|
|
|
|
<term><command>genl-ctrl-list</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
queries the Generic Netlink controller in the kernel and prints
|
2015-08-14 09:04:27 +08:00
|
|
|
a list of all registered Generic Netlink families including
|
|
|
|
the version of the interface that has been registered.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl genl-ctrl-list">
|
|
|
|
<primary sortas="b-genl-ctrl-list">genl-ctrl-list</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-class-add">
|
|
|
|
<term><command>nl-class-add</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
adds, updates, or replaces Traffic Classes
|
2015-08-14 09:04:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-class-add">
|
|
|
|
<primary sortas="b-nl-class-add">nl-class-add</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-class-delete">
|
|
|
|
<term><command>nl-class-delete</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
deletes Traffic Classes
|
2015-08-14 09:04:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-class-delete">
|
|
|
|
<primary sortas="b-nl-class-delete">nl-class-delete</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-classid-lookup">
|
|
|
|
<term><command>nl-classid-lookup</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to resolve qdisc/class names to classid values and vice
|
|
|
|
versa.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-classid-lookup">
|
|
|
|
<primary sortas="b-nl-classid-lookup">nl-classid-lookup</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-class-list">
|
|
|
|
<term><command>nl-class-list</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
lists Traffic Classes.
|
2015-08-14 09:04:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-class-list">
|
|
|
|
<primary sortas="b-nl-class-list">nl-class-list</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-cls-add">
|
|
|
|
<term><command>nl-cls-add</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
adds a classifier.
|
2015-08-14 09:04:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-cls-add">
|
|
|
|
<primary sortas="b-nl-cls-add">nl-cls-add</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-cls-delete">
|
|
|
|
<term><command>nl-cls-delete</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
deletes a classifier.
|
2015-08-14 09:04:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-cls-delete">
|
|
|
|
<primary sortas="b-nl-cls-delete">nl-cls-delete</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-cls-list">
|
|
|
|
<term><command>nl-cls-list</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
lists classifiers.
|
2015-08-14 09:04:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-cls-list">
|
|
|
|
<primary sortas="b-nl-cls-list">nl-cls-list</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-link-list">
|
|
|
|
<term><command>nl-link-list</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
dumps link attributes.
|
2015-08-14 09:04:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-link-list">
|
|
|
|
<primary sortas="b-nl-link-list">nl-link-list</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-pktloc-lookup">
|
|
|
|
<term><command>nl-pktloc-lookup</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
allows the lookup of packet location definitions.
|
2015-08-14 09:04:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-pktloc-lookup">
|
|
|
|
<primary sortas="b-nl-pktloc-lookup">nl-pktloc-lookup</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-qdisc-add">
|
|
|
|
<term><command>nl-qdisc-add</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
adds queueing disciplines (qdiscs) in the kernel.
|
2015-08-14 09:04:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-qdisc-add">
|
|
|
|
<primary sortas="b-nl-qdisc-add">nl-qdisc-add</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-qdisc-delete">
|
|
|
|
<term><command>nl-qdisc-delete</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
deletes queueing disciplines (qdiscs) in the kernel.
|
2015-08-14 09:04:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-qdisc-delete">
|
|
|
|
<primary sortas="b-nl-qdisc-delete">nl-qdisc-delete</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="nl-qdisc-list">
|
|
|
|
<term><command>nl-qdisc-list</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2016-06-11 14:47:47 +08:00
|
|
|
lists queueing disciplines (qdiscs) in the kernel.
|
2015-08-14 09:04:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libnl nl-qdisc-list">
|
|
|
|
<primary sortas="b-nl-qdisc-list">nl-qdisc-list</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-02-07 09:28:09 +08:00
|
|
|
<varlistentry id="libnl-lib">
|
2013-01-20 01:34:41 +08:00
|
|
|
<term><filename class="libraryfile">libnl*-3.so</filename></term>
|
2012-02-07 09:28:09 +08:00
|
|
|
<listitem>
|
2012-07-22 01:53:14 +08:00
|
|
|
<para>
|
|
|
|
These libraries contain API functions used to access Netlink
|
|
|
|
interfaces in Linux kernel.
|
|
|
|
</para>
|
2012-02-07 09:28:09 +08:00
|
|
|
<indexterm zone="libnl libnl-lib">
|
2012-07-22 01:53:14 +08:00
|
|
|
<primary sortas="c-libnl">libnl*-3.so</primary>
|
2012-02-07 09:28:09 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
2012-07-22 01:53:14 +08:00
|
|
|
|
2012-02-07 09:28:09 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|