diff options
author | David S. Miller <davem@davemloft.net> | 2010-11-11 17:07:48 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-11 17:07:48 -0800 |
commit | c753796769e4fb0cd813b6e5801b3c01f4681d4f (patch) | |
tree | f137ec0b76593a2aa1a6a263bcc1e4cf82bdf7b5 /net/ipv4/ip_gre.c | |
parent | ed1deb7021b4dfee1d544b91edff4ef92f5c3b54 (diff) | |
download | blackbird-obmc-linux-c753796769e4fb0cd813b6e5801b3c01f4681d4f.tar.gz blackbird-obmc-linux-c753796769e4fb0cd813b6e5801b3c01f4681d4f.zip |
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/ip_gre.c')
-rw-r--r-- | net/ipv4/ip_gre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 70ff77f02eee..cab2057d5430 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -634,7 +634,7 @@ static int ipgre_rcv(struct sk_buff *skb) #ifdef CONFIG_NET_IPGRE_BROADCAST if (ipv4_is_multicast(iph->daddr)) { /* Looped back packet, drop it! */ - if (skb_rtable(skb)->fl.iif == 0) + if (rt_is_output_route(skb_rtable(skb))) goto drop; tunnel->dev->stats.multicast++; skb->pkt_type = PACKET_BROADCAST; |