sysctl description spillover and also setting the sysctl ?

Jason Hellenthal jhell at DataIX.net
Fri Nov 25 07:36:47 UTC 2011


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 ?

# sysctl net.inet.udp.blackhole=0
net.inet.udp.blackhole: 0 -> 0
# sysctl net.inet.udp.blackhole
net.inet.udp.blackhole: 0
# sysctl -d net.inet.udp.blackhole=1
net.inet.udp.blackhole: Do not send port unreachables for refused connects -> Do not send port unreachables for refused connects
# sysctl net.inet.udp.blackhole
net.inet.udp.blackhole: 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20111125/068e8c2a/attachment.pgp


More information about the freebsd-hackers mailing list