[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 |
|
---|
[8c19ac9] | 7 | <!ENTITY libnl-download-http "https://github.com/thom311/libnl/releases/download/libnl&libnl-dl-version;/libnl-&libnl-version;.tar.gz">
|
---|
[3e39d34] | 8 | <!ENTITY libnl-download-ftp " ">
|
---|
[8252f03f] | 9 | <!ENTITY libnl-md5sum "b381405afd14e466e35d29a112480333">
|
---|
| 10 | <!ENTITY libnl-size "980 KB">
|
---|
| 11 | <!ENTITY libnl-buildsize "31 MB (with API documentation)">
|
---|
[60f67b92] | 12 | <!ENTITY libnl-time "0.4 SBU (with API documentation)">
|
---|
[fad8db2] | 13 |
|
---|
| 14 |
|
---|
[8c19ac9] | 15 | <!ENTITY libnl-doc-download-http "https://github.com/thom311/libnl/releases/download/libnl&libnl-dl-version;/libnl-doc-&libnl-version;.tar.gz">
|
---|
[fad8db2] | 16 | <!ENTITY libnl-doc-download-ftp " ">
|
---|
[8252f03f] | 17 | <!ENTITY libnl-doc-md5sum "15f55a421a16ff4084c4a1af085c19b8">
|
---|
[60f67b92] | 18 | <!ENTITY libnl-doc-size "13 MB">
|
---|
[3e39d34] | 19 | ]>
|
---|
| 20 |
|
---|
| 21 | <sect1 id="libnl" xreflabel="libnl-&libnl-version;">
|
---|
| 22 | <?dbhtml filename="libnl.html"?>
|
---|
| 23 |
|
---|
| 24 | <title>libnl-&libnl-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="libnl">
|
---|
| 27 | <primary sortas="a-libnl">libnl</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to libnl</title>
|
---|
| 32 |
|
---|
[c6ac193] | 33 | <para>
|
---|
| 34 | The <application>libnl</application> suite is a collection of libraries
|
---|
| 35 | providing APIs to netlink protocol based Linux kernel interfaces.
|
---|
| 36 | </para>
|
---|
[3e39d34] | 37 |
|
---|
[d0c42be] | 38 | &lfs113_checked;
|
---|
[3e39d34] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[c6ac193] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&libnl-download-http;"/>
|
---|
| 45 | </para>
|
---|
[3e39d34] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[c6ac193] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&libnl-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[3e39d34] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[c6ac193] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &libnl-md5sum;
|
---|
| 55 | </para>
|
---|
[3e39d34] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[c6ac193] | 58 | <para>
|
---|
| 59 | Download size: &libnl-size;
|
---|
| 60 | </para>
|
---|
[3e39d34] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[c6ac193] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &libnl-buildsize;
|
---|
| 65 | </para>
|
---|
[3e39d34] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[c6ac193] | 68 | <para>
|
---|
| 69 | Estimated build time: &libnl-time;
|
---|
| 70 | </para>
|
---|
[3e39d34] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[fad8db2] | 74 | <bridgehead renderas="sect3">Optional Download</bridgehead>
|
---|
| 75 | <itemizedlist spacing="compact">
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | Download (HTTP): <ulink url="&libnl-doc-download-http;"/>
|
---|
| 79 | </para>
|
---|
| 80 | </listitem>
|
---|
| 81 | <listitem>
|
---|
| 82 | <para>
|
---|
| 83 | Download (FTP): <ulink url="&libnl-doc-download-ftp;"/>
|
---|
| 84 | </para>
|
---|
| 85 | </listitem>
|
---|
| 86 | <listitem>
|
---|
| 87 | <para>
|
---|
| 88 | Download MD5 sum: &libnl-doc-md5sum;
|
---|
| 89 | </para>
|
---|
| 90 | </listitem>
|
---|
| 91 | <listitem>
|
---|
| 92 | <para>
|
---|
| 93 | Download size: &libnl-doc-size;
|
---|
| 94 | </para>
|
---|
| 95 | </listitem>
|
---|
| 96 | </itemizedlist>
|
---|
[987fb161] | 97 | <!--
|
---|
[60f67b92] | 98 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 99 | <itemizedlist spacing='compact'>
|
---|
| 100 | <listitem>
|
---|
| 101 | <para>
|
---|
| 102 | Optional patch: <ulink
|
---|
[b97d9f4] | 103 | url="&patch-root;/libnl-&libnl-version;-upstream_test_fix-1.patch"/>
|
---|
[60f67b92] | 104 | </para>
|
---|
| 105 | </listitem>
|
---|
| 106 | </itemizedlist>
|
---|
[987fb161] | 107 | -->
|
---|
[3e39d34] | 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | <sect2 role="installation">
|
---|
| 111 | <title>Installation of libnl</title>
|
---|
[8252f03f] | 112 | <!--
|
---|
[60f67b92] | 113 | <para>
|
---|
| 114 | If you are going to run the package tests apply this patch:
|
---|
| 115 | </para>
|
---|
| 116 |
|
---|
[15ebdfe] | 117 | <screen><userinput>patch -Np1 -i ../libnl-&libnl-version;-upstream_test_fix-1.patch
|
---|
| 118 | autoreconf -fi</userinput></screen>
|
---|
[8252f03f] | 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>
|
---|
[8252f03f] | 131 | This package does not come with a working test suite.
|
---|
| 132 | <!--To test the results, issue: <command>make check</command>.
|
---|
| 133 | One subtest is known to fail.-->
|
---|
[60f67b92] | 134 | <!-- If the kernel does not have CONFIG_IPC_NS=y, one subtest tests/check-all
|
---|
| 135 | fails. If it does have it, the subtest still fails in a different place
|
---|
| 136 | for unknown reasons. Version 3.6.0. -->
|
---|
[c6ac193] | 137 | </para>
|
---|
[3e39d34] | 138 |
|
---|
[c6ac193] | 139 | <para>
|
---|
| 140 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 141 | </para>
|
---|
[3e39d34] | 142 |
|
---|
| 143 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 144 |
|
---|
[fad8db2] | 145 | <para>
|
---|
[5fa1961] | 146 | If you wish to install the API documentation, as the
|
---|
[fad8db2] | 147 | <systemitem class="username">root</systemitem> user:
|
---|
| 148 | </para>
|
---|
| 149 |
|
---|
| 150 | <screen role="root"><userinput>mkdir -vp /usr/share/doc/libnl-&libnl-version; &&
|
---|
[8f79ce13] | 151 | tar -xf ../libnl-doc-&libnl-version;.tar.gz --strip-components=1 --no-same-owner \
|
---|
[d915944] | 152 | -C /usr/share/doc/libnl-&libnl-version;</userinput></screen>
|
---|
[fad8db2] | 153 |
|
---|
[3e39d34] | 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="commands">
|
---|
| 157 | <title>Command Explanations</title>
|
---|
| 158 |
|
---|
[c6ac193] | 159 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 160 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 161 |
|
---|
| 162 | <para>
|
---|
| 163 | <option>--disable-cli</option>: Use this parameter if you
|
---|
| 164 | don't want to install cli tools provided by the package.
|
---|
| 165 | </para>
|
---|
[3e39d34] | 166 |
|
---|
| 167 | </sect2>
|
---|
| 168 |
|
---|
| 169 | <sect2 role="content">
|
---|
| 170 | <title>Contents</title>
|
---|
| 171 |
|
---|
| 172 | <segmentedlist>
|
---|
| 173 | <segtitle>Installed Programs</segtitle>
|
---|
[d61e48e3] | 174 | <segtitle>Installed Libraries</segtitle>
|
---|
[3e39d34] | 175 | <segtitle>Installed Directories</segtitle>
|
---|
| 176 |
|
---|
| 177 | <seglistitem>
|
---|
[c6ac193] | 178 | <seg>
|
---|
[f3429309] | 179 | genl-ctrl-list,
|
---|
[d915944] | 180 | idiag-socket-details,
|
---|
[f3429309] | 181 | nl-class-add,
|
---|
| 182 | nl-class-delete,
|
---|
[d915944] | 183 | nl-classid-lookup,
|
---|
[f3429309] | 184 | nl-class-list,
|
---|
| 185 | nl-cls-add,
|
---|
| 186 | nl-cls-delete,
|
---|
| 187 | nl-cls-list,
|
---|
[d915944] | 188 | nl-link-list,
|
---|
[f3429309] | 189 | nl-pktloc-lookup,
|
---|
| 190 | nl-qdisc-add,
|
---|
[d915944] | 191 | nl-qdisc-delete,
|
---|
[a89a5a6] | 192 | nl-qdisc-list, and 48 other helper programs with nl- and nf- prefixes
|
---|
[c6ac193] | 193 | </seg>
|
---|
| 194 | <seg>
|
---|
[8b5b31b] | 195 | libnl-3.so,
|
---|
| 196 | libnl-cli-3.so,
|
---|
[91b65df] | 197 | libnl-genl-3.so,
|
---|
[9304e0a] | 198 | libnl-idiag-3.so,
|
---|
[8b5b31b] | 199 | libnl-nf-3.so,
|
---|
[f3429309] | 200 | libnl-route-3.so,
|
---|
[d915944] | 201 | libnl-xfrm-3.so, and
|
---|
[fad8db2] | 202 | cli modules under /usr/lib/libnl/cli tree
|
---|
[c6ac193] | 203 | </seg>
|
---|
[3e7d4c6] | 204 | <seg>
|
---|
[c6ac193] | 205 | /etc/libnl,
|
---|
[fad8db2] | 206 | /usr/include/libnl3,
|
---|
| 207 | /usr/lib/libnl, and
|
---|
| 208 | /usr/share/doc/libnl-&libnl-version;
|
---|
[c6ac193] | 209 | </seg>
|
---|
[3e39d34] | 210 | </seglistitem>
|
---|
| 211 | </segmentedlist>
|
---|
[c6ac193] | 212 |
|
---|
[3e39d34] | 213 | <variablelist>
|
---|
| 214 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 215 | <?dbfo list-presentation="list"?>
|
---|
| 216 | <?dbhtml list-presentation="table"?>
|
---|
| 217 |
|
---|
[6d772cc] | 218 | <varlistentry id="genl-ctrl-list">
|
---|
| 219 | <term><command>genl-ctrl-list</command></term>
|
---|
| 220 | <listitem>
|
---|
| 221 | <para>
|
---|
[bea508c] | 222 | queries the Generic Netlink controller in the kernel and prints
|
---|
[6d772cc] | 223 | a list of all registered Generic Netlink families including
|
---|
[4c24eb0a] | 224 | the version of the interface that has been registered
|
---|
[6d772cc] | 225 | </para>
|
---|
| 226 | <indexterm zone="libnl genl-ctrl-list">
|
---|
| 227 | <primary sortas="b-genl-ctrl-list">genl-ctrl-list</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
| 232 | <varlistentry id="nl-class-add">
|
---|
| 233 | <term><command>nl-class-add</command></term>
|
---|
| 234 | <listitem>
|
---|
| 235 | <para>
|
---|
[bea508c] | 236 | adds, updates, or replaces Traffic Classes
|
---|
[6d772cc] | 237 | </para>
|
---|
| 238 | <indexterm zone="libnl nl-class-add">
|
---|
| 239 | <primary sortas="b-nl-class-add">nl-class-add</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="nl-class-delete">
|
---|
| 245 | <term><command>nl-class-delete</command></term>
|
---|
| 246 | <listitem>
|
---|
| 247 | <para>
|
---|
[bea508c] | 248 | deletes Traffic Classes
|
---|
[6d772cc] | 249 | </para>
|
---|
| 250 | <indexterm zone="libnl nl-class-delete">
|
---|
| 251 | <primary sortas="b-nl-class-delete">nl-class-delete</primary>
|
---|
| 252 | </indexterm>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
| 256 | <varlistentry id="nl-classid-lookup">
|
---|
| 257 | <term><command>nl-classid-lookup</command></term>
|
---|
| 258 | <listitem>
|
---|
| 259 | <para>
|
---|
| 260 | is used to resolve qdisc/class names to classid values and vice
|
---|
[4c24eb0a] | 261 | versa
|
---|
[6d772cc] | 262 | </para>
|
---|
| 263 | <indexterm zone="libnl nl-classid-lookup">
|
---|
| 264 | <primary sortas="b-nl-classid-lookup">nl-classid-lookup</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="nl-class-list">
|
---|
| 270 | <term><command>nl-class-list</command></term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>
|
---|
[4c24eb0a] | 273 | lists Traffic Classes
|
---|
[6d772cc] | 274 | </para>
|
---|
| 275 | <indexterm zone="libnl nl-class-list">
|
---|
| 276 | <primary sortas="b-nl-class-list">nl-class-list</primary>
|
---|
| 277 | </indexterm>
|
---|
| 278 | </listitem>
|
---|
| 279 | </varlistentry>
|
---|
| 280 |
|
---|
| 281 | <varlistentry id="nl-cls-add">
|
---|
| 282 | <term><command>nl-cls-add</command></term>
|
---|
| 283 | <listitem>
|
---|
| 284 | <para>
|
---|
[4c24eb0a] | 285 | adds a classifier
|
---|
[6d772cc] | 286 | </para>
|
---|
| 287 | <indexterm zone="libnl nl-cls-add">
|
---|
| 288 | <primary sortas="b-nl-cls-add">nl-cls-add</primary>
|
---|
| 289 | </indexterm>
|
---|
| 290 | </listitem>
|
---|
| 291 | </varlistentry>
|
---|
| 292 |
|
---|
| 293 | <varlistentry id="nl-cls-delete">
|
---|
| 294 | <term><command>nl-cls-delete</command></term>
|
---|
| 295 | <listitem>
|
---|
| 296 | <para>
|
---|
[4c24eb0a] | 297 | deletes a classifier
|
---|
[6d772cc] | 298 | </para>
|
---|
| 299 | <indexterm zone="libnl nl-cls-delete">
|
---|
| 300 | <primary sortas="b-nl-cls-delete">nl-cls-delete</primary>
|
---|
| 301 | </indexterm>
|
---|
| 302 | </listitem>
|
---|
| 303 | </varlistentry>
|
---|
| 304 |
|
---|
| 305 | <varlistentry id="nl-cls-list">
|
---|
| 306 | <term><command>nl-cls-list</command></term>
|
---|
| 307 | <listitem>
|
---|
| 308 | <para>
|
---|
[4c24eb0a] | 309 | lists classifiers
|
---|
[6d772cc] | 310 | </para>
|
---|
| 311 | <indexterm zone="libnl nl-cls-list">
|
---|
| 312 | <primary sortas="b-nl-cls-list">nl-cls-list</primary>
|
---|
| 313 | </indexterm>
|
---|
| 314 | </listitem>
|
---|
| 315 | </varlistentry>
|
---|
| 316 |
|
---|
| 317 | <varlistentry id="nl-link-list">
|
---|
| 318 | <term><command>nl-link-list</command></term>
|
---|
| 319 | <listitem>
|
---|
| 320 | <para>
|
---|
[4c24eb0a] | 321 | dumps link attributes
|
---|
[6d772cc] | 322 | </para>
|
---|
| 323 | <indexterm zone="libnl nl-link-list">
|
---|
| 324 | <primary sortas="b-nl-link-list">nl-link-list</primary>
|
---|
| 325 | </indexterm>
|
---|
| 326 | </listitem>
|
---|
| 327 | </varlistentry>
|
---|
| 328 |
|
---|
| 329 | <varlistentry id="nl-pktloc-lookup">
|
---|
| 330 | <term><command>nl-pktloc-lookup</command></term>
|
---|
| 331 | <listitem>
|
---|
| 332 | <para>
|
---|
[4c24eb0a] | 333 | allows the lookup of packet location definitions
|
---|
[6d772cc] | 334 | </para>
|
---|
| 335 | <indexterm zone="libnl nl-pktloc-lookup">
|
---|
| 336 | <primary sortas="b-nl-pktloc-lookup">nl-pktloc-lookup</primary>
|
---|
| 337 | </indexterm>
|
---|
| 338 | </listitem>
|
---|
| 339 | </varlistentry>
|
---|
| 340 |
|
---|
| 341 | <varlistentry id="nl-qdisc-add">
|
---|
| 342 | <term><command>nl-qdisc-add</command></term>
|
---|
| 343 | <listitem>
|
---|
| 344 | <para>
|
---|
[4c24eb0a] | 345 | adds queueing disciplines (qdiscs) in the kernel
|
---|
[6d772cc] | 346 | </para>
|
---|
| 347 | <indexterm zone="libnl nl-qdisc-add">
|
---|
| 348 | <primary sortas="b-nl-qdisc-add">nl-qdisc-add</primary>
|
---|
| 349 | </indexterm>
|
---|
| 350 | </listitem>
|
---|
| 351 | </varlistentry>
|
---|
| 352 |
|
---|
| 353 | <varlistentry id="nl-qdisc-delete">
|
---|
| 354 | <term><command>nl-qdisc-delete</command></term>
|
---|
| 355 | <listitem>
|
---|
| 356 | <para>
|
---|
[4c24eb0a] | 357 | deletes queueing disciplines (qdiscs) in the kernel
|
---|
[6d772cc] | 358 | </para>
|
---|
| 359 | <indexterm zone="libnl nl-qdisc-delete">
|
---|
| 360 | <primary sortas="b-nl-qdisc-delete">nl-qdisc-delete</primary>
|
---|
| 361 | </indexterm>
|
---|
| 362 | </listitem>
|
---|
| 363 | </varlistentry>
|
---|
| 364 |
|
---|
| 365 | <varlistentry id="nl-qdisc-list">
|
---|
| 366 | <term><command>nl-qdisc-list</command></term>
|
---|
| 367 | <listitem>
|
---|
| 368 | <para>
|
---|
[4c24eb0a] | 369 | lists queueing disciplines (qdiscs) in the kernel
|
---|
[6d772cc] | 370 | </para>
|
---|
| 371 | <indexterm zone="libnl nl-qdisc-list">
|
---|
| 372 | <primary sortas="b-nl-qdisc-list">nl-qdisc-list</primary>
|
---|
| 373 | </indexterm>
|
---|
| 374 | </listitem>
|
---|
| 375 | </varlistentry>
|
---|
| 376 |
|
---|
[3e39d34] | 377 | <varlistentry id="libnl-lib">
|
---|
[b7b6efc] | 378 | <term><filename class="libraryfile">libnl*-3.so</filename></term>
|
---|
[3e39d34] | 379 | <listitem>
|
---|
[c6ac193] | 380 | <para>
|
---|
| 381 | These libraries contain API functions used to access Netlink
|
---|
[4c24eb0a] | 382 | interfaces in Linux kernel
|
---|
[c6ac193] | 383 | </para>
|
---|
[3e39d34] | 384 | <indexterm zone="libnl libnl-lib">
|
---|
[c6ac193] | 385 | <primary sortas="c-libnl">libnl*-3.so</primary>
|
---|
[3e39d34] | 386 | </indexterm>
|
---|
| 387 | </listitem>
|
---|
| 388 | </varlistentry>
|
---|
| 389 |
|
---|
| 390 | </variablelist>
|
---|
[c6ac193] | 391 |
|
---|
[3e39d34] | 392 | </sect2>
|
---|
| 393 |
|
---|
| 394 | </sect1>
|
---|