]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Check kernel for autoconf support.
authorRoy Marples <roy@marples.name>
Tue, 3 Sep 2013 09:28:37 +0000 (09:28 +0000)
committerRoy Marples <roy@marples.name>
Tue, 3 Sep 2013 09:28:37 +0000 (09:28 +0000)
platform-linux.c

index 7c415d2fb35c3546f9c786d3ee1d686016747f58..ba275b5edda7633ae5e43fd144cb0bec1b4ad2e0 100644 (file)
@@ -191,6 +191,14 @@ check_ipv6(const char *ifname, int own)
        } else
                ex = 0;
 
+       snprintf(path, sizeof(path), "%s/%s/autoconf", prefix, ifname);
+       i = check_proc_int(path);
+       if (i != 1) {
+               syslog(LOG_WARNING, "%s: IPv6 kernel autoconf disabled",
+                   ifname);
+               return -1;
+       }
+
        snprintf(path, sizeof(path), "%s/%s/accept_ra", prefix, ifname);
        ra = check_proc_int(path);
        if (ra == -1)