[14c0be2f] | 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 libmnl-download-http "https://netfilter.org/projects/libmnl/files/libmnl-&libmnl-version;.tar.bz2">
|
---|
| 8 | <!ENTITY libmnl-download-ftp " ">
|
---|
| 9 | <!ENTITY libmnl-md5sum "be9b4b5328c6da1bda565ac5dffadb2d">
|
---|
| 10 | <!ENTITY libmnl-size "296 KB">
|
---|
| 11 | <!ENTITY libmnl-buildsize "2.9 MB">
|
---|
| 12 | <!ENTITY libmnl-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libmnl" xreflabel="libmnl-&libmnl-version;">
|
---|
| 16 | <?dbhtml filename="libmnl.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libmnl-&libmnl-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libmnl">
|
---|
| 26 | <primary sortas="a-libmnl">libmnl</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libmnl</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | The <application>libmnl</application> library provides a minimalistic
|
---|
| 34 | user-space library oriented to Netlink developers. There are a lot of
|
---|
| 35 | common tasks in parsing, validating, constructing of both the Netlink
|
---|
| 36 | header and TLVs that are repetitive and easy to get wrong. This library
|
---|
| 37 | aims to provide simple helpers that allows you to re-use code and to
|
---|
| 38 | avoid re-inventing the wheel.
|
---|
| 39 | </para>
|
---|
| 40 |
|
---|
[34fe2633] | 41 | &lfs91_checked;
|
---|
[14c0be2f] | 42 |
|
---|
| 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing='compact'>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download (HTTP): <ulink url="&libmnl-download-http;"/>
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download (FTP): <ulink url="&libmnl-download-ftp;"/>
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download MD5 sum: &libmnl-md5sum;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Download size: &libmnl-size;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Estimated disk space required: &libmnl-buildsize;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>
|
---|
| 72 | Estimated build time: &libmnl-time;
|
---|
| 73 | </para>
|
---|
| 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
| 77 | <para condition="html" role="usernotes">User Notes:
|
---|
| 78 | <ulink url="&blfs-wiki;/libmnl"/>
|
---|
| 79 | </para>
|
---|
| 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="installation">
|
---|
| 83 | <title>Installation of libmnl</title>
|
---|
| 84 |
|
---|
| 85 | <para>
|
---|
| 86 | Install <application>libmnl</application> by running the following
|
---|
| 87 | commands:
|
---|
| 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <screen><userinput>./configure --prefix=/usr &&
|
---|
| 91 | make</userinput></screen>
|
---|
| 92 |
|
---|
| 93 | <para>
|
---|
| 94 | This package does not come with a test suite.
|
---|
| 95 | </para>
|
---|
| 96 |
|
---|
| 97 | <para>
|
---|
| 98 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
| 101 | <screen role="root"><userinput>make install &&
|
---|
| 102 | mv /usr/lib/libmnl.so.* /lib &&
|
---|
| 103 | ln -sfv ../../lib/$(readlink /usr/lib/libmnl.so) /usr/lib/libmnl.so</userinput></screen>
|
---|
| 104 |
|
---|
| 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 role="commands">
|
---|
| 108 | <title>Command Explanations</title>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
| 111 | <command>mv -v /usr/lib/libmnl.so.* ...</command>: Move shared
|
---|
| 112 | libraries into /lib so they are available before /usr is mounted.
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
| 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="content">
|
---|
| 118 | <title>Contents</title>
|
---|
| 119 |
|
---|
| 120 | <segmentedlist>
|
---|
| 121 | <segtitle>Installed Library</segtitle>
|
---|
| 122 |
|
---|
| 123 | <seglistitem>
|
---|
| 124 | <seg>
|
---|
| 125 | libmnl.so
|
---|
| 126 | </seg>
|
---|
| 127 | </seglistitem>
|
---|
| 128 | </segmentedlist>
|
---|
| 129 |
|
---|
| 130 | <variablelist>
|
---|
| 131 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 132 | <?dbfo list-presentation="list"?>
|
---|
| 133 | <?dbhtml list-presentation="table"?>
|
---|
| 134 |
|
---|
| 135 | <varlistentry id="libmnl-lib">
|
---|
| 136 | <term><filename class="libraryfile">libmnl.so</filename></term>
|
---|
| 137 | <listitem>
|
---|
| 138 | <para>
|
---|
| 139 | provides functions for parsing, validating, constructing of both
|
---|
| 140 | the Netlink header and TLVs.
|
---|
| 141 | </para>
|
---|
| 142 | <indexterm zone="libmnl libmnl-lib">
|
---|
| 143 | <primary sortas="c-libmnl">libmnl.so</primary>
|
---|
| 144 | </indexterm>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 |
|
---|
| 148 | </variablelist>
|
---|
| 149 |
|
---|
| 150 | </sect2>
|
---|
| 151 |
|
---|
| 152 | </sect1>
|
---|