diff options
| author | Roy Marples <roy@marples.name> | 2012-02-04 15:45:38 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2012-02-04 15:45:38 +0000 |
| commit | a46038eab8173fbb9e6cb442f0eea55a95779b16 (patch) | |
| tree | b3611326de2ccf69989157c41883b6a64a4ba660 | |
| parent | 0d77ae0270f65b957bd7678ad978530637a22a59 (diff) | |
| download | dhcpcd-a46038eab8173fbb9e6cb442f0eea55a95779b16.tar.xz | |
Better tests.
| -rw-r--r-- | platform-bsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform-bsd.c b/platform-bsd.c index ff7379a2..6fb1896c 100644 --- a/platform-bsd.c +++ b/platform-bsd.c @@ -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; |
