]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r276751:
authorloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Feb 2015 11:42:35 +0000 (11:42 +0000)
committerloos <loos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Feb 2015 11:42:35 +0000 (11:42 +0000)
commit2d79752646220574050bb7e87a07255394e02f5b
tree7b34d1d55784de7c64db1eb59dac7db459dcee54
parentecd95e21b9632abd8f33968a324420c309cbd9bd
MFC r276751:

Remove the check that prevent carp(4) advskew to be set to '0'.

CARP devices are created with advskew set to '0' and once you set it to
any other value in the valid range (0..254) you can't set it back to zero.

The code in question is also used to prevent that zeroed values overwrite
the CARP defaults when a new CARP device is created.  Since advskew already
defaults to '0' for newly created devices and the new value is guaranteed
to be within the valid range, it is safe to overwrite it here.

PR: 194672
Reported by: cmb@pfsense.org

git-svn-id: svn://svn.freebsd.org/base/stable/10@278075 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/ip_carp.c