aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipmr.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-11-11 20:07:48 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-11 20:07:48 -0500
commitc753796769e4fb0cd813b6e5801b3c01f4681d4f (patch)
treef137ec0b76593a2aa1a6a263bcc1e4cf82bdf7b5 /net/ipv4/ipmr.c
parented1deb7021b4dfee1d544b91edff4ef92f5c3b54 (diff)
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>
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r--net/ipv4/ipmr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index 86dd5691af46..ef2b0089e0ea 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -1654,7 +1654,7 @@ static int ip_mr_forward(struct net *net, struct mr_table *mrt,
1654 if (mrt->vif_table[vif].dev != skb->dev) { 1654 if (mrt->vif_table[vif].dev != skb->dev) {
1655 int true_vifi; 1655 int true_vifi;
1656 1656
1657 if (skb_rtable(skb)->fl.iif == 0) { 1657 if (rt_is_output_route(skb_rtable(skb))) {
1658 /* It is our own packet, looped back. 1658 /* It is our own packet, looped back.
1659 * Very complicated situation... 1659 * Very complicated situation...
1660 * 1660 *