From ab1a0155793bb31935739866d8acc37faefff6d2 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 6 Jun 2014 17:21:33 +0200 Subject: [PATCH] platform/test: fix route tests after reworking source property Breakage introduced by commit 662ade1e47bf2612dbd0087804441a854cc4122a. Signed-off-by: Thomas Haller --- src/platform/tests/test-route.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/platform/tests/test-route.c b/src/platform/tests/test-route.c index 6ad4ba3089..d45730ac57 100644 --- a/src/platform/tests/test-route.c +++ b/src/platform/tests/test-route.c @@ -101,21 +101,21 @@ test_ip4_route () /* Test route listing */ routes = nm_platform_ip4_route_get_all (ifindex, TRUE); memset (rts, 0, sizeof (rts)); - rts[0].source = NM_PLATFORM_SOURCE_KERNEL; + rts[0].source = NM_PLATFORM_SOURCE_USER; rts[0].network = gateway; rts[0].plen = 32; rts[0].ifindex = ifindex; rts[0].gateway = INADDR_ANY; rts[0].metric = metric; rts[0].mss = mss; - rts[1].source = NM_PLATFORM_SOURCE_KERNEL; + rts[1].source = NM_PLATFORM_SOURCE_USER; rts[1].network = network; rts[1].plen = plen; rts[1].ifindex = ifindex; rts[1].gateway = gateway; rts[1].metric = metric; rts[1].mss = mss; - rts[2].source = NM_PLATFORM_SOURCE_KERNEL; + rts[2].source = NM_PLATFORM_SOURCE_USER; rts[2].network = 0; rts[2].plen = 0; rts[2].ifindex = ifindex; @@ -196,21 +196,21 @@ test_ip6_route () /* Test route listing */ routes = nm_platform_ip6_route_get_all (ifindex, TRUE); memset (rts, 0, sizeof (rts)); - rts[0].source = NM_PLATFORM_SOURCE_KERNEL; + rts[0].source = NM_PLATFORM_SOURCE_USER; rts[0].network = gateway; rts[0].plen = 128; rts[0].ifindex = ifindex; rts[0].gateway = in6addr_any; rts[0].metric = metric; rts[0].mss = mss; - rts[1].source = NM_PLATFORM_SOURCE_KERNEL; + rts[1].source = NM_PLATFORM_SOURCE_USER; rts[1].network = network; rts[1].plen = plen; rts[1].ifindex = ifindex; rts[1].gateway = gateway; rts[1].metric = metric; rts[1].mss = mss; - rts[2].source = NM_PLATFORM_SOURCE_KERNEL; + rts[2].source = NM_PLATFORM_SOURCE_USER; rts[2].network = in6addr_any; rts[2].plen = 0; rts[2].ifindex = ifindex;