summaryrefslogtreecommitdiffstats
path: root/lib/route/link/inet6.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-07-31 13:31:34 (GMT)
committerThomas Haller <thaller@redhat.com>2023-07-31 13:34:32 (GMT)
commit8b2074aa0489f8445bc144e666055901bb0f48a2 (patch)
treee8264f91fcec9c25732299cf99307926bd0a1591 /lib/route/link/inet6.c
parentfd470c069edc6edc26e3b0783137fb1c319ae100 (diff)
downloadlibnl-8b2074aa0489f8445bc144e666055901bb0f48a2.zip
libnl-8b2074aa0489f8445bc144e666055901bb0f48a2.tar.gz
libnl-8b2074aa0489f8445bc144e666055901bb0f48a2.tar.bz2
include: move "include/netlink-private/route/utils.h" to nl-intern-route
This header has a very specific purpose. To give access to the unit tests to some internals. It only is usable to parts that statically link with libnl-route-3 sources (e.g. "tests/check-direct") and libnl-route-3 itself. The point is that the symbol there is not exported by the libnl-route-3 shared library, so a test that dynamically links against libnl-route-3 couldn't access them. Hence the internal purpose of static linking the test with libnl-route-3 sources, and a special header for that. Move "include/netlink-private/route/utils.h" to a separate place, to make that usage clearer.
Diffstat (limited to 'lib/route/link/inet6.c')
-rw-r--r--lib/route/link/inet6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/link/inet6.c b/lib/route/link/inet6.c
index 52c6358..67a031c 100644
--- a/lib/route/link/inet6.c
+++ b/lib/route/link/inet6.c
@@ -10,8 +10,8 @@
#include <netlink/route/link/inet6.h>
#include <netlink-private/route/link/api.h>
-#include "netlink-private/route/utils.h"
#include "base/nl-base-utils.h"
+#include "nl-intern-route/nl-intern-route.h"
#define I6_ADDR_GEN_MODE_UNKNOWN UINT8_MAX