Home
last modified time | relevance | path

Searched refs:sysctl (Results 1 – 25 of 888) sorted by relevance

12345678910>>...36

/netbsd-src/tests/net/ipsec/
H A Dt_ipsec_sysctl.sh46 rump.sysctl net.inet.ipsec.enabled
48 rump.sysctl net.inet6.ipsec6.enabled
73 atf_check -s exit:0 -o match:'= 1' rump.sysctl net.inet.ipsec.enabled
76 atf_check -s exit:0 -o match:'= 1' rump.sysctl net.inet6.ipsec6.enabled
78 atf_check -s exit:0 -o match:'= 0' rump.sysctl net.inet.ipsec.used
80 atf_check -s exit:0 -o match:'= 0' rump.sysctl net.inet6.ipsec6.used
88 atf_check -s exit:0 -o match:'= 0' rump.sysctl net.inet.ipsec.used
89 atf_check -s exit:0 -o match:'= 0' rump.sysctl net.inet6.ipsec6.used
97 atf_check -s exit:0 -o match:'= 1' rump.sysctl net.inet.ipsec.used
98 atf_check -s exit:0 -o match:'= 1' rump.sysctl net.inet6.ipsec6.used
[all …]
H A Dt_ipsec_tunnel_odd.sh87 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
93 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
94 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
98 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=1
103 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
104 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
108 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=1
113 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
193 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
199 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
[all …]
H A Dt_ipsec_tunnel.sh85 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
91 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
94 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=1
99 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
102 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=1
107 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
185 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
191 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
194 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=1
199 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
[all …]
H A Dt_ipsec_tunnel_ipcomp.sh116 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
122 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
125 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=1
128 rump.sysctl -a |grep ipsec
131 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
134 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=1
139 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
243 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
249 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
252 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=1
[all …]
/netbsd-src/tests/kernel/
H A Dt_simplehook.sh39 rump.sysctl -n $sysctl_key
47 atf_check -s exit:0 -o ignore rump.sysctl -w $sysctl_key=$value
59 v=$(rump.sysctl -n $sysctl_key)
88 $DEBUG && rump.sysctl -e kern.simplehook_tester
89 atf_check -s exit:0 -o ignore rump.sysctl -e kern.simplehook_tester
95 $DEBUG && rump.sysctl -e kern.simplehook_tester
128 $DEBUG && rump.sysctl -e kern.simplehook_tester
151 $DEBUG && rump.sysctl -e kern.simplehook_tester
152 atf_check -s exit:0 -o ignore rump.sysctl -e kern.simplehook_tester
245 $DEBUG && rump.sysctl -e kern.simplehook_tester
[all …]
/netbsd-src/external/bsd/ntp/dist/scripts/deprecated/
H A Dfreq_adj.in16 chop($timer = `sysctl -n kern.timecounter.hardware 2> /dev/null`);
76 $sysctl = "machdep.".$timer."_freq";
78 chop($mach_freq = `sysctl -n $sysctl`);
80 print "$sysctl is <$mach_freq>\n";
85 print "$sysctl $mach_freq -> $n_mach_freq\n";
87 print "i8254: ".`sysctl -w $sysctl=$n_mach_freq`;
/netbsd-src/tests/net/mpls/
H A Dt_mpls_fw64.sh54 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
55 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=0
69 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
70 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
71 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=0
86 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
87 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
88 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=0
89 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
104 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
[all …]
H A Dt_rfc4182.sh59 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
60 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
73 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
74 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
75 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
88 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
89 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
90 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
103 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
104 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
H A Dt_mpls_fw.sh56 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
57 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
70 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
71 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
72 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
85 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
86 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
87 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
100 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
101 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
H A Dt_mpls_fw6.sh58 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
59 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=0
73 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
74 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
75 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=0
90 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
91 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
92 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=0
107 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
108 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=0
H A Dt_ldp_regen.sh66 export RUMPHIJACK=path=/rump,socket=all,sysctl=yes
75 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
89 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
90 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
106 atf_check -s exit:0 rump.sysctl -q -w net.mpls.accept=1
107 atf_check -s exit:0 rump.sysctl -q -w net.mpls.forwarding=1
108 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
122 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=0
/netbsd-src/external/public-domain/xz/dist/m4/
H A Dtuklib_cpucores.m415 # - sysctl(): BSDs, OS/2
31 # sys/param.h might be needed by sys/sysctl.h.
66 # FreeBSD has both cpuset and sysctl. Look for cpuset first because
87 # On OS/2, both sysconf() and sysctl() pass the tests in this file,
88 # but only sysctl() works. On QNX it's the opposite: only sysconf() works
92 # We test sysctl() first and intentionally break the sysctl() test on QNX
93 # so that sysctl() is never used on QNX.
102 #include <sys/sysctl.h>
109 sysctl(name, 2, &cpus, &cpus_size, NULL, 0);
112 ]])], [tuklib_cv_cpucores_method=sysctl], [
[all …]
/netbsd-src/tests/dev/sysmon/
H A Dt_swsensor.sh71 rump.halt rump.sysctl rump_server \
146 rump.sysctl -w hw.swsensor.cur_value=$(( $2 + 1 ))
160 rump.sysctl -w hw.swsensor.cur_value=$(( $3 - $5 ))
177 rump.sysctl -w hw.swsensor.cur_value=$(( $3 + $5 ))
203 rump.sysctl -w hw.swsensor.cur_value=$(( $3 - $4 - $5 ))
220 rump.sysctl -w hw.swsensor.cur_value=$(( $3 - $4 + $5 ))
249 rump.sysctl -w hw.swsensor.cur_value=$(( $3 - $4 - $5 ))
293 rump.sysctl -w hw.swsensor.cur_value=$3
295 rump.sysctl -w hw.swsensor.cur_value=$(( $3 + $4 ))
310 rump.sysctl -w hw.swsensor.cur_value=$3
[all …]
/netbsd-src/tests/net/net/
H A Dt_forwarding.sh153 rump.sysctl net.inet6.ip6.forwarding
155 rump.sysctl net.inet.ip.forwarding
237 atf_check -s exit:0 -o ignore rump.sysctl -w net.inet.ip.forwarding=1
243 atf_check -s exit:0 -o ignore rump.sysctl -w net.inet6.ip6.forwarding=1
249 atf_check -s exit:0 -o ignore rump.sysctl -w net.inet.ip.directed-broadcast=1
255 atf_check -s exit:0 -o ignore rump.sysctl -w net.inet.icmp.bmcastecho=1
261 atf_check -s exit:0 -o ignore rump.sysctl -w net.inet.ip.forwarding=0
267 atf_check -s exit:0 -o ignore rump.sysctl -w net.inet6.ip6.forwarding=0
273 atf_check -s exit:0 -o ignore rump.sysctl -w net.inet.ip.directed-broadcast=0
279 atf_check -s exit:0 -o ignore rump.sysctl -w net.inet.icmp.bmcastecho=0
[all …]
H A Dt_ping_opts.sh86 rump.sysctl net.inet.ip.forwarding
94 atf_check -s exit:0 -o ignore rump.sysctl -w net.inet.ip.forwarding=1
233 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.allowsrcrt=1
235 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.allowsrcrt=1
237 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.allowsrcrt=1
238 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwsrcrt=1
323 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.allowsrcrt=1
325 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.allowsrcrt=1
327 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.allowsrcrt=1
328 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwsrcrt=1
H A Dt_mtudisc.sh109 atf_check -s exit:0 rump.sysctl -w -q net.inet.ip.forwarding=1
115 atf_check -s exit:0 -o match:"1" rump.sysctl -n net.inet.ip.mtudisc
121 atf_check -s exit:0 -o ignore rump.sysctl -w -q net.inet.ip.maxfragpackets=0
138 atf_check -s exit:0 -o ignore rump.sysctl -w -q net.inet.ip.mtudisc=0
159 atf_check -s exit:0 -o ignore rump.sysctl -w -q net.inet.ip.mtudisc=1
199 rump.sysctl -w net.inet.ip.mtudisctimeout=600
/netbsd-src/external/mit/libuv/dist/src/unix/
H A Dopenbsd.c53 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
82 if (sysctl(mib, ARRAY_SIZE(mib), argsbuf, &argsbuf_size, NULL, 0) == 0) { in uv_exepath()
118 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_free_memory()
130 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
155 if (sysctl(mib, ARRAY_SIZE(mib), &kinfo, &size, NULL, 0) < 0) in uv_resident_set_memory()
169 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
192 if (sysctl(which, ARRAY_SIZE(which), &model, &size, NULL, 0)) in uv_cpu_info()
197 if (sysctl(which, ARRAY_SIZE(which), &numcpus, &size, NULL, 0)) in uv_cpu_info()
209 if (sysctl(which, ARRAY_SIZE(which), &cpuspeed, &size, NULL, 0)) in uv_cpu_info()
215 if (sysctl(percpu, ARRAY_SIZE(percpu), &info, &size, NULL, 0)) in uv_cpu_info()
/netbsd-src/lib/libc/gen/
H A Duname.c65 if (sysctl(mib, 2, &name->sysname, &len, NULL, 0) == -1) in __weak_alias()
71 if (sysctl(mib, 2, &name->nodename, &len, NULL, 0) == -1) in __weak_alias()
77 if (sysctl(mib, 2, &name->release, &len, NULL, 0) == -1) in __weak_alias()
83 if (sysctl(mib, 2, &name->version, &len, NULL, 0) == -1) { in __weak_alias()
108 if (sysctl(mib, 2, &name->machine, &len, NULL, 0) == -1) in __weak_alias()
/netbsd-src/etc/powerd/scripts/
H A Dsleep_button13 if /sbin/sysctl -q hw.acpi.sleep.state; then
14 /sbin/sysctl -w hw.acpi.sleep.state=3
15 elif /sbin/sysctl -q machdep.xen.suspend; then
16 /sbin/sysctl -w machdep.xen.suspend=1
/netbsd-src/tests/net/if_ipsec/
H A Dt_ipsec_unnumbered.sh113 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
114 atf_check -s exit:0 rump.sysctl -q -w net.ipsecif.use_fixed_reqid=1
119 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
120 atf_check -s exit:0 rump.sysctl -q -w net.ipsecif.use_fixed_reqid=1
184 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
185 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
186 atf_check -s exit:0 rump.sysctl -q -w net.ipsecif.use_fixed_reqid=1
191 atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
192 atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
193 atf_check -s exit:0 rump.sysctl -q -w net.ipsecif.use_fixed_reqid=1
/netbsd-src/external/bsd/dhcpcd/dist/hooks/
H A D30-hostname30 elif sysctl kern.hostname >/dev/null 2>&1; then
31 sysctl -n kern.hostname
32 elif sysctl kernel.hostname >/dev/null 2>&1; then
33 sysctl -n kernel.hostname
44 elif sysctl kern.hostname >/dev/null 2>&1; then
45 sysctl -w "kern.hostname=$1" >/dev/null
46 elif sysctl kernel.hostname >/dev/null 2>&1; then
47 sysctl -w "kernel.hostname=$1" >/dev/null
/netbsd-src/usr.bin/vmstat/
H A Ddrvstats.c188 if (sysctl(mib, 3, drives, &size, NULL, 0) < 0) in drvreadstats()
234 if (sysctl(mib, 3, &cur.tk_nin, &size, NULL, 0) < 0) in drvreadstats()
239 if (sysctl(mib, 3, &cur.tk_nout, &size, NULL, 0) < 0) in drvreadstats()
246 if (sysctl(mib, 2, cur.cp_time, &size, NULL, 0) < 0) in drvreadstats()
266 if (sysctl(mib, 3, &cur.tk_nin, &size, NULL, 0) < 0) in tkreadstats()
271 if (sysctl(mib, 3, &cur.tk_nout, &size, NULL, 0) < 0) in tkreadstats()
289 if (sysctl(mib, 2, cur.cp_time, &size, NULL, 0) < 0) in cpureadstats()
311 if (sysctl(mib, 2, &cur.cp_ncpu, &size, NULL, 0) == -1) in drvinit()
317 if (sysctl(mib, 2, &clockinfo, &size, NULL, 0) == -1) in drvinit()
326 if (sysctl(mib, 3, NULL, &size, NULL, 0) == -1) in drvinit()
[all …]
/netbsd-src/usr.sbin/kgmon/
H A Dkgmon.c96 if (sysctl(ncpu_mib, 2, &ncpu, &size, NULL, 0) < 0) in main()
210 if (sysctl(mib, 3, &state, &size, NULL, 0) < 0) in openfiles()
216 if (sysctl(mib, 3, NULL, NULL, &state, size) >= 0) in openfiles()
286 if (sysctl(mib, miblen, &kvp->gpm, &size, NULL, 0) < 0) in getprof()
319 if (sysctl(mib, miblen, &oldstate, &sz, NULL, 0) < 0) in setprof()
324 if (sysctl(mib, miblen, NULL, NULL, &state, sz) >= 0) { in setprof()
405 if (sysctl(mib, miblen, tickbuf, &i, NULL, 0) < 0) in dumpstate()
428 if (sysctl(mib, miblen, froms, &i, NULL, 0) < 0) in dumpstate()
444 if (sysctl(mib, miblen, tos, &i, NULL, 0) < 0) in dumpstate()
501 if (sysctl(mib, 2, &clockrate, &size, NULL, 0) < 0) in getprofhz()
[all …]
/netbsd-src/tests/sbin/sysctl/
H A Dt_random_garbage.sh42 sysctl -a > $tmp
82 sysctl -w $var=$val
85 sysctl -w $var=$val
100 sysctl -w $var=$val > /dev/null 2>&1
/netbsd-src/bin/ps/
H A Dnlist.c177 if (sysctl(mib, 2, &fscale, &size, NULL, 0)) { in donlist_sysctl()
186 if (sysctl(mib, 2, &memsize, &size, NULL, 0)) { in donlist_sysctl()
196 if (sysctl(mib, 2, &xccpu, &size, NULL, 0)) { in donlist_sysctl()
206 if (sysctl(mib, 2, &maxslp, &size, NULL, 0)) { in donlist_sysctl()
215 if (sysctl(mib, 2, &uspace, &size, NULL, 0)) { in donlist_sysctl()

12345678910>>...36