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 |
|
---|
7 | <!ENTITY libnl-download-http
|
---|
8 | "http://www.carisma.slowglass.com/~tgr/libnl/files/libnl-&libnl-version;.tar.gz">
|
---|
9 | <!ENTITY libnl-download-ftp " ">
|
---|
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">
|
---|
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 |
|
---|
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>
|
---|
44 |
|
---|
45 | &lfs77_checked; &gcc5_checked;
|
---|
46 |
|
---|
47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
48 | <itemizedlist spacing="compact">
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download (HTTP): <ulink url="&libnl-download-http;"/>
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download (FTP): <ulink url="&libnl-download-ftp;"/>
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Download MD5 sum: &libnl-md5sum;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Download size: &libnl-size;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | <listitem>
|
---|
70 | <para>
|
---|
71 | Estimated disk space required: &libnl-buildsize;
|
---|
72 | </para>
|
---|
73 | </listitem>
|
---|
74 | <listitem>
|
---|
75 | <para>
|
---|
76 | Estimated build time: &libnl-time;
|
---|
77 | </para>
|
---|
78 | </listitem>
|
---|
79 | </itemizedlist>
|
---|
80 |
|
---|
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 |
|
---|
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 |
|
---|
112 | <para condition="html" role="usernotes">User Notes:
|
---|
113 | <ulink url="&blfs-wiki;/libnl"/>
|
---|
114 | </para>
|
---|
115 | </sect2>
|
---|
116 |
|
---|
117 | <sect2 role="installation">
|
---|
118 | <title>Installation of libnl</title>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | Install <application>libnl</application> by running the following
|
---|
122 | commands:
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <screen><userinput>./configure --prefix=/usr \
|
---|
126 | --sysconfdir=/etc \
|
---|
127 | --disable-static &&
|
---|
128 | make</userinput></screen>
|
---|
129 |
|
---|
130 | <para>
|
---|
131 | To test the results, issue: <command>make check</command>.
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <para>
|
---|
135 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
136 | </para>
|
---|
137 |
|
---|
138 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
139 |
|
---|
140 | <para>
|
---|
141 | If you wish to install the API documentation, as the
|
---|
142 | <systemitem class="username">root</systemitem> user:
|
---|
143 | </para>
|
---|
144 |
|
---|
145 | <screen role="root"><userinput>mkdir -vp /usr/share/doc/libnl-&libnl-version; &&
|
---|
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>
|
---|
148 |
|
---|
149 | </sect2>
|
---|
150 |
|
---|
151 | <sect2 role="commands">
|
---|
152 | <title>Command Explanations</title>
|
---|
153 |
|
---|
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>
|
---|
161 |
|
---|
162 | </sect2>
|
---|
163 |
|
---|
164 | <sect2 role="content">
|
---|
165 | <title>Contents</title>
|
---|
166 |
|
---|
167 | <segmentedlist>
|
---|
168 | <segtitle>Installed Programs</segtitle>
|
---|
169 | <segtitle>Installed Libraries</segtitle>
|
---|
170 | <segtitle>Installed Directories</segtitle>
|
---|
171 |
|
---|
172 | <seglistitem>
|
---|
173 | <seg>
|
---|
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
|
---|
178 | </seg>
|
---|
179 | <seg>
|
---|
180 | libnl-3.so,
|
---|
181 | libnl-cli-3.so,
|
---|
182 | libnl-genl-3.so,
|
---|
183 | libnl-idiag-3.so,
|
---|
184 | libnl-nf-3.so,
|
---|
185 | libnl-route-3.so, and
|
---|
186 | cli modules under /usr/lib/libnl/cli tree
|
---|
187 | </seg>
|
---|
188 | <seg>
|
---|
189 | /etc/libnl,
|
---|
190 | /usr/include/libnl3,
|
---|
191 | /usr/lib/libnl, and
|
---|
192 | /usr/share/doc/libnl-&libnl-version;
|
---|
193 | </seg>
|
---|
194 | </seglistitem>
|
---|
195 | </segmentedlist>
|
---|
196 |
|
---|
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">
|
---|
203 | <term><filename class="libraryfile">libnl*-3.so</filename></term>
|
---|
204 | <listitem>
|
---|
205 | <para>
|
---|
206 | These libraries contain API functions used to access Netlink
|
---|
207 | interfaces in Linux kernel.
|
---|
208 | </para>
|
---|
209 | <indexterm zone="libnl libnl-lib">
|
---|
210 | <primary sortas="c-libnl">libnl*-3.so</primary>
|
---|
211 | </indexterm>
|
---|
212 | </listitem>
|
---|
213 | </varlistentry>
|
---|
214 |
|
---|
215 | </variablelist>
|
---|
216 |
|
---|
217 | </sect2>
|
---|
218 |
|
---|
219 | </sect1>
|
---|