]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Better tests.
authorRoy Marples <roy@marples.name>
Sat, 4 Feb 2012 15:45:38 +0000 (15:45 +0000)
committerRoy Marples <roy@marples.name>
Sat, 4 Feb 2012 15:45:38 +0000 (15:45 +0000)
platform-bsd.c

index ff7379a2a090bd90f9624b6a44dea49b34d0c807..6fb1896cb99303f0ebb9a208d0840154b66cb0b5 100644 (file)
@@ -71,12 +71,12 @@ int
 check_ipv6(void)
 {
 
-       if (!inet6_sysctl(IPV6CTL_ACCEPT_RTADV)) {
+       if (inet6_sysctl(IPV6CTL_ACCEPT_RTADV) != 1) {
                syslog(LOG_WARNING,
                    "Kernel is not configured to accept IPv6 RAs");
                return 0;
        }
-       if (inet6_sysctl(IPV6CTL_FORWARDING)) {
+       if (inet6_sysctl(IPV6CTL_FORWARDING) != 0) {
                syslog(LOG_WARNING,
                    "Kernel is configured as a router, not a host");
                return 0;