]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/igmp.c
[IPV4]: Add 'rtable' field in struct sk_buff to alias 'dst' and avoid casts
[net-next-2.6.git] / net / ipv4 / igmp.c
index d3f34a772f3b84dc7d7c7b68e2ea7f56e526ef3a..6a4ee8da69942d2764edd0f9a80b1d57dd2f9cf8 100644 (file)
@@ -948,7 +948,7 @@ int igmp_rcv(struct sk_buff *skb)
        case IGMPV2_HOST_MEMBERSHIP_REPORT:
        case IGMPV3_HOST_MEMBERSHIP_REPORT:
                /* Is it our report looped back? */
-               if (((struct rtable*)skb->dst)->fl.iif == 0)
+               if (skb->rtable->fl.iif == 0)
                        break;
                /* don't rely on MC router hearing unicast reports */
                if (skb->pkt_type == PACKET_MULTICAST ||