From: Antti Kantee Date: Mon, 30 Nov 2015 23:21:47 +0000 (+0000) Subject: rumprun: use sysctl() to disable DAD X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8365eb9abdee37935956b3844b6662683dba202d;p=osstest%2Frumprun.git rumprun: use sysctl() to disable DAD It's possible since there's a new src-netbsd in town (has been for some time now). --- diff --git a/lib/librumprun_base/rumprun.c b/lib/librumprun_base/rumprun.c index dca78e7..d661d9b 100644 --- a/lib/librumprun_base/rumprun.c +++ b/lib/librumprun_base/rumprun.c @@ -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);