about summary refs log tree commit diff
path: root/src/core/platform/tests
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2023-01-26 21:20:15 +0100
committerMichael Biebl <biebl@debian.org>2023-01-26 21:20:15 +0100
commit82358c92f879a7b8ca976c8a88e48bf207285764 (patch)
treed9fbd08d723b83989e645d040ba08631bd1d3b9b /src/core/platform/tests
parentac445e26cbdad011277f8822e0fc468ab1a6c61f (diff)
parent40ec077ea305994c1fc2130add6787ca0c73e2c6 (diff)
Update upstream source from tag 'upstream/1.40.12'
Update to upstream version '1.40.12'
with Debian dir 332a096a3294bbc50a4ddc486b2bae91c166f979
Diffstat (limited to 'src/core/platform/tests')
-rw-r--r--src/core/platform/tests/test-common.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/platform/tests/test-common.c b/src/core/platform/tests/test-common.c
index 34ec5cc2..b5bb1232 100644
--- a/src/core/platform/tests/test-common.c
+++ b/src/core/platform/tests/test-common.c
@@ -12,6 +12,7 @@
 #include <sys/wait.h>
 #include <fcntl.h>
 #include <linux/if_tun.h>
+#include <linux/rtnetlink.h>
 
 #include "n-acd/src/n-acd.h"
 
@@ -540,7 +541,7 @@ _ip4_route_get(NMPlatform *platform,
 
     _init_platform(&platform, FALSE);
 
-    nmp_lookup_init_ip4_route_by_weak_id(&lookup, network, plen, metric, tos);
+    nmp_lookup_init_ip4_route_by_weak_id(&lookup, RT_TABLE_MAIN, network, plen, metric, tos);
 
     c = 0;
     nmp_cache_iter_for_each (&iter, nm_platform_lookup(platform, &lookup), &o) {
@@ -633,7 +634,13 @@ _ip6_route_get(NMPlatform            *platform,
 
     _init_platform(&platform, FALSE);
 
-    nmp_lookup_init_ip6_route_by_weak_id(&lookup, network, plen, metric, src, src_plen);
+    nmp_lookup_init_ip6_route_by_weak_id(&lookup,
+                                         RT_TABLE_MAIN,
+                                         network,
+                                         plen,
+                                         metric,
+                                         src,
+                                         src_plen);
 
     c = 0;
     nmp_cache_iter_for_each (&iter, nm_platform_lookup(platform, &lookup), &o) {