diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-04 01:41:12 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-04 01:42:42 +0100 |
commit | 1d050e1e0a7082e23ee9b31fa0b819cb332b3444 (patch) | |
tree | 7545997688bd7b7e3a34e4f580d306347eb8a037 /src/libsystemd/sd-rtnl/test-local-addresses.c | |
parent | d2df88ffbac8858214adb9daaf7a93122fe26a50 (diff) |
rtnl: when querying local addresses and gateways, take address family into account
Diffstat (limited to 'src/libsystemd/sd-rtnl/test-local-addresses.c')
-rw-r--r-- | src/libsystemd/sd-rtnl/test-local-addresses.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-rtnl/test-local-addresses.c b/src/libsystemd/sd-rtnl/test-local-addresses.c index 4cf2c08312..38cbcfbccb 100644 --- a/src/libsystemd/sd-rtnl/test-local-addresses.c +++ b/src/libsystemd/sd-rtnl/test-local-addresses.c @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) { int n; a = NULL; - n = local_addresses(NULL, 0, &a); + n = local_addresses(NULL, 0, AF_UNSPEC, &a); assert_se(n >= 0); printf("Local Addresses:\n"); @@ -47,7 +47,7 @@ int main(int argc, char *argv[]) { free(a); a = NULL; - n = local_gateways(NULL, 0, &a); + n = local_gateways(NULL, 0, AF_UNSPEC, &a); assert_se(n >= 0); printf("Local Gateways:\n"); |