ipv4: Make rt->fl.iif tests lest obscure.
authorDavid S. Miller <davem@davemloft.net>
Fri, 12 Nov 2010 01:07:48 +0000 (17:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Nov 2010 01:07:48 +0000 (17:07 -0800)
commitc753796769e4fb0cd813b6e5801b3c01f4681d4f
treef137ec0b76593a2aa1a6a263bcc1e4cf82bdf7b5
parented1deb7021b4dfee1d544b91edff4ef92f5c3b54
ipv4: Make rt->fl.iif tests lest obscure.

When we test rt->fl.iif against zero, we're seeing if it's
an output or an input route.

Make that explicit with some helper functions.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dn_route.h
include/net/route.h
net/decnet/dn_route.c
net/ipv4/icmp.c
net/ipv4/igmp.c
net/ipv4/ip_gre.c
net/ipv4/ipmr.c
net/ipv4/route.c
net/netfilter/ipvs/ip_vs_xmit.c