ipv4: Allow binding to non-local addresses if IP_TRANSPARENT is set
authorTóth László Attila <panther@balabit.hu>
Wed, 1 Oct 2008 14:31:24 +0000 (07:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Oct 2008 14:31:24 +0000 (07:31 -0700)
commitb9fb15067ce93497bef852c05e406d7a96212a9a
tree5d7054558b8c6d2433a692b7bcdfdf0868facca5
parentf5715aea4564f233767ea1d944b2637a5fd7cd2e
ipv4: Allow binding to non-local addresses if IP_TRANSPARENT is set

Setting IP_TRANSPARENT is not really useful without allowing non-local
binds for the socket. To make user-space code simpler we allow these
binds even if IP_TRANSPARENT is set but IP_FREEBIND is not.

Signed-off-by: Tóth László Attila <panther@balabit.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c