]> err.no Git - linux-2.6/commit
[IPV4]: When possible test for IFF_LOOPBACK and not dev == loopback_dev
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 27 Sep 2007 05:10:06 +0000 (22:10 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:52:48 +0000 (16:52 -0700)
commit0cc217e16cb8ca8ef2544363571fce94259900e0
tree05d7ef10fd9971fffa3f3870a4c3e66077bb1dc2
parent5967789dbc8aafdba5813fa8e8cfce3c90516f83
[IPV4]: When possible test for IFF_LOOPBACK and not dev == loopback_dev

Now that multiple loopback devices are becoming possible it makes
the code a little cleaner and more maintainable to test if a deivice
is th a loopback device by testing dev->flags & IFF_LOOPBACK instead
of dev == loopback_dev.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c
net/ipv4/ipconfig.c
net/ipv4/ipvs/ip_vs_core.c