sysctl description spillover and also setting the sysctl ?

John Baldwin jhb at freebsd.org
Wed Nov 30 16:56:02 UTC 2011


On Friday, November 25, 2011 2:36:30 am Jason Hellenthal wrote:
> 
> Found a troubling result of the following and figured someone might want to 
take a look.
> 
> Pay close attention to the output and behavior.
> 
> sysctl net.inet.udp.blackhole=0
> sysctl net.inet.udp.blackhole
> sysctl -d net.inet.udp.blackhole=1
> sysctl net.inet.udp.blackhole
> 
> 
> Is this expected ? should it not just display the description instead of 
adjusting ? as well not display the description like it is adjusting the 
description too ?

Hah, cute.  It should probably fail with an error if you do something like 
that, yes.

-- 
John Baldwin


More information about the freebsd-hackers mailing list