diff options
author | Tom Gundersen <teg@jklm.no> | 2013-12-07 21:18:44 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-12-16 17:28:18 +0100 |
commit | 1f01fb4f29bbe6aff952331a538fb3cc7f52dab4 (patch) | |
tree | 2b11faabf119d3eeb835db6a5b88f94e05514c14 /src/libsystemd-rtnl/test-rtnl.c | |
parent | fc25d7f8050f262fa6cafeb2a1032e6eb3e7b412 (diff) |
rtnl: simplify route_new()
Drop most of the arguments and instead introduce set_dst_prefixlen().
Diffstat (limited to 'src/libsystemd-rtnl/test-rtnl.c')
-rw-r--r-- | src/libsystemd-rtnl/test-rtnl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsystemd-rtnl/test-rtnl.c b/src/libsystemd-rtnl/test-rtnl.c index 409a0fa7b2..bfcfc85d93 100644 --- a/src/libsystemd-rtnl/test-rtnl.c +++ b/src/libsystemd-rtnl/test-rtnl.c @@ -65,9 +65,7 @@ static void test_route(void) { void *data; int r; - r = sd_rtnl_message_route_new(RTM_NEWROUTE, AF_INET, 0, 0, 0, - RT_TABLE_MAIN, RT_SCOPE_UNIVERSE, RTPROT_BOOT, - RTN_UNICAST, 0, &req); + r = sd_rtnl_message_route_new(RTM_NEWROUTE, AF_INET, &req); if (r < 0) { log_error("Could not create RTM_NEWROUTE message: %s", strerror(-r)); return; |