summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-02-15 16:54:30 +0100
committerThomas Haller <thaller@redhat.com>2018-02-21 12:08:46 +0100
commit3fab322a203ae55adfb934b7fff246e99def2eb2 (patch)
tree10b1126c6515fcba999be38aaeefcd42a699816c /configure.ac
parentffbad3d0e8fcce6bd15636309f74bee22d9685e4 (diff)
downloadNetworkManager-3fab322a203ae55adfb934b7fff246e99def2eb2.tar.gz
netlink: drop libnl3 dependency
From libnl3, we only used the helper function to parse/generate netlink messages and the socket functions to send/receive messages. We don't need an external dependency to do that, it is simple enough. Drop the libnl3 dependency, and replace all missing code by directly copying it from libnl3 sources. At this point, I mostly tried to import the required bits to make it working with few modifications. Note that this increases the binary size of NetworkManager by 4736 bytes for contrib/rpm build on x86_64. In the future, we can simplify the code further. A few modifications from libnl3 are: - netlink errors NLE_* are now in the domain or regular errno. The distinction of having to bother with two kinds of error number domains was annoying. - parts of the callback handling is copied partially and unused parts are dropped. Especially, the verbose/debug handlers are not used. In following commits, the callback handling will be significantly simplified. - the complex handling of seleting ports was simplified. We now always let kernel choose the right port automatically.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 0 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 7c6e62007e..211c2d0ee3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -559,9 +559,6 @@ else
fi
AC_SUBST(NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT)
-# libnl support for the linux platform
-PKG_CHECK_MODULES(LIBNL, libnl-3.0 >= 3.2.8)
-
# uuid library
PKG_CHECK_MODULES(UUID, uuid)