]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
rumprun: use sysctl() to disable DAD
authorAntti Kantee <pooka@iki.fi>
Mon, 30 Nov 2015 23:21:47 +0000 (23:21 +0000)
committerAntti Kantee <pooka@iki.fi>
Mon, 30 Nov 2015 23:21:47 +0000 (23:21 +0000)
It's possible since there's a new src-netbsd in town (has
been for some time now).

lib/librumprun_base/rumprun.c

index dca78e764715765e311b2bc1820f07107c4f1f6c..d661d9b709103061d19949457cc0bf555bcf72bc 100644 (file)
@@ -86,7 +86,7 @@ rumprun_boot(char *cmdline)
        };
        int tmpfserrno;
        char *sysproxy;
-       int rv;
+       int rv, x;
 
        rump_boot_setsigmodel(RUMP_SIGMODEL_IGNORE);
        rump_init();
@@ -121,15 +121,8 @@ rumprun_boot(char *cmdline)
         * (note: we don't check for errors since net.inet.ip.dad_count
         * is not present if the networking stack isn't present)
         */
-#if 0
-       /* XXXX: cpp macro lossage in the src-netbsd, cannot fix easily now */
-       int x = 0;
+       x = 0;
        sysctlbyname("net.inet.ip.dad_count", NULL, NULL, &x, sizeof(x));
-#else
-       extern int rumpns_ip_dad_count;
-       rumpns_ip_dad_count = 0;
-#endif
-
 
        rumprun_config(cmdline);