|
|
|
@ -133,7 +133,7 @@ |
|
|
|
|
if (err)
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
@@ -1407,7 +1434,8 @@ br_multicast_leave_group(struct net_brid
|
|
|
|
|
@@ -1406,7 +1433,8 @@ br_multicast_leave_group(struct net_brid
|
|
|
|
|
struct net_bridge_port *port,
|
|
|
|
|
struct br_ip *group,
|
|
|
|
|
struct bridge_mcast_other_query *other_query,
|
|
|
|
@ -143,7 +143,7 @@ |
|
|
|
|
{
|
|
|
|
|
struct net_bridge_mdb_htable *mdb;
|
|
|
|
|
struct net_bridge_mdb_entry *mp;
|
|
|
|
|
@@ -1457,7 +1485,7 @@ br_multicast_leave_group(struct net_brid
|
|
|
|
|
@@ -1456,7 +1484,7 @@ br_multicast_leave_group(struct net_brid
|
|
|
|
|
for (pp = &mp->ports;
|
|
|
|
|
(p = mlock_dereference(*pp, br)) != NULL;
|
|
|
|
|
pp = &p->next) {
|
|
|
|
@ -152,7 +152,7 @@ |
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
rcu_assign_pointer(*pp, p->next);
|
|
|
|
|
@@ -1491,7 +1519,7 @@ br_multicast_leave_group(struct net_brid
|
|
|
|
|
@@ -1490,7 +1518,7 @@ br_multicast_leave_group(struct net_brid
|
|
|
|
|
for (p = mlock_dereference(mp->ports, br);
|
|
|
|
|
p != NULL;
|
|
|
|
|
p = mlock_dereference(p->next, br)) {
|
|
|
|
@ -161,7 +161,7 @@ |
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
if (!hlist_unhashed(&p->mglist) &&
|
|
|
|
|
@@ -1509,8 +1537,8 @@ out:
|
|
|
|
|
@@ -1508,8 +1536,8 @@ out:
|
|
|
|
|
|
|
|
|
|
static void br_ip4_multicast_leave_group(struct net_bridge *br,
|
|
|
|
|
struct net_bridge_port *port,
|
|
|
|
@ -172,7 +172,7 @@ |
|
|
|
|
{
|
|
|
|
|
struct br_ip br_group;
|
|
|
|
|
struct bridge_mcast_own_query *own_query;
|
|
|
|
|
@@ -1525,14 +1553,14 @@ static void br_ip4_multicast_leave_group
|
|
|
|
|
@@ -1524,14 +1552,14 @@ static void br_ip4_multicast_leave_group
|
|
|
|
|
br_group.vid = vid;
|
|
|
|
|
|
|
|
|
|
br_multicast_leave_group(br, port, &br_group, &br->ip4_other_query,
|
|
|
|
@ -189,7 +189,7 @@ |
|
|
|
|
{
|
|
|
|
|
struct br_ip br_group;
|
|
|
|
|
struct bridge_mcast_own_query *own_query;
|
|
|
|
|
@@ -1547,7 +1575,7 @@ static void br_ip6_multicast_leave_group
|
|
|
|
|
@@ -1546,7 +1574,7 @@ static void br_ip6_multicast_leave_group
|
|
|
|
|
br_group.vid = vid;
|
|
|
|
|
|
|
|
|
|
br_multicast_leave_group(br, port, &br_group, &br->ip6_other_query,
|
|
|
|
@ -198,7 +198,7 @@ |
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
@@ -1556,6 +1584,7 @@ static int br_multicast_ipv4_rcv(struct
|
|
|
|
|
@@ -1555,6 +1583,7 @@ static int br_multicast_ipv4_rcv(struct
|
|
|
|
|
struct sk_buff *skb,
|
|
|
|
|
u16 vid)
|
|
|
|
|
{
|
|
|
|
@ -206,7 +206,7 @@ |
|
|
|
|
struct sk_buff *skb2 = skb;
|
|
|
|
|
const struct iphdr *iph;
|
|
|
|
|
struct igmphdr *ih;
|
|
|
|
|
@@ -1629,7 +1658,7 @@ static int br_multicast_ipv4_rcv(struct
|
|
|
|
|
@@ -1628,7 +1657,7 @@ static int br_multicast_ipv4_rcv(struct
|
|
|
|
|
case IGMP_HOST_MEMBERSHIP_REPORT:
|
|
|
|
|
case IGMPV2_HOST_MEMBERSHIP_REPORT:
|
|
|
|
|
BR_INPUT_SKB_CB(skb)->mrouters_only = 1;
|
|
|
|
@ -215,7 +215,7 @@ |
|
|
|
|
break;
|
|
|
|
|
case IGMPV3_HOST_MEMBERSHIP_REPORT:
|
|
|
|
|
err = br_ip4_multicast_igmp3_report(br, port, skb2, vid);
|
|
|
|
|
@@ -1638,7 +1667,7 @@ static int br_multicast_ipv4_rcv(struct
|
|
|
|
|
@@ -1637,7 +1666,7 @@ static int br_multicast_ipv4_rcv(struct
|
|
|
|
|
err = br_ip4_multicast_query(br, port, skb2, vid);
|
|
|
|
|
break;
|
|
|
|
|
case IGMP_HOST_LEAVE_MESSAGE:
|
|
|
|
@ -224,7 +224,7 @@ |
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -1656,6 +1685,7 @@ static int br_multicast_ipv6_rcv(struct
|
|
|
|
|
@@ -1655,6 +1684,7 @@ static int br_multicast_ipv6_rcv(struct
|
|
|
|
|
struct sk_buff *skb,
|
|
|
|
|
u16 vid)
|
|
|
|
|
{
|
|
|
|
@ -232,7 +232,7 @@ |
|
|
|
|
struct sk_buff *skb2;
|
|
|
|
|
const struct ipv6hdr *ip6h;
|
|
|
|
|
u8 icmp6_type;
|
|
|
|
|
@@ -1765,7 +1795,8 @@ static int br_multicast_ipv6_rcv(struct
|
|
|
|
|
@@ -1764,7 +1794,8 @@ static int br_multicast_ipv6_rcv(struct
|
|
|
|
|
}
|
|
|
|
|
mld = (struct mld_msg *)skb_transport_header(skb2);
|
|
|
|
|
BR_INPUT_SKB_CB(skb)->mrouters_only = 1;
|
|
|
|
@ -242,7 +242,7 @@ |
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case ICMPV6_MLD2_REPORT:
|
|
|
|
|
@@ -1782,7 +1813,7 @@ static int br_multicast_ipv6_rcv(struct
|
|
|
|
|
@@ -1781,7 +1812,7 @@ static int br_multicast_ipv6_rcv(struct
|
|
|
|
|
goto out;
|
|
|
|
|
}
|
|
|
|
|
mld = (struct mld_msg *)skb_transport_header(skb2);
|
|
|
|
|