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>
This commit is contained in:
parent
ed1deb7021
commit
c753796769
9 changed files with 42 additions and 20 deletions
|
@ -961,7 +961,7 @@ int igmp_rcv(struct sk_buff *skb)
|
|||
case IGMP_HOST_MEMBERSHIP_REPORT:
|
||||
case IGMPV2_HOST_MEMBERSHIP_REPORT:
|
||||
/* Is it our report looped back? */
|
||||
if (skb_rtable(skb)->fl.iif == 0)
|
||||
if (rt_is_output_route(skb_rtable(skb)))
|
||||
break;
|
||||
/* don't rely on MC router hearing unicast reports */
|
||||
if (skb->pkt_type == PACKET_MULTICAST ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue