Skip to contentSkip to conversation

mac80211: use recent multicast table for all mesh multicast frames, not only broadcast

PATCH In review Luis Carlos Cobo 2 participants 3 messages Apr 1, 2008 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: use recent multicast table for all mesh multicast frames, not only broadcast

---
 net/mac80211/rx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/mac80211/rx.c +1 -1
index d9c6ed5..0ac6db5 100644
@@ -433,7 +433,7 @@ ieee80211_rx_mesh_check(struct ieee80211_rx_data *rx)
 		}
 
 	 } else if ((rx->fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA &&
-		    is_broadcast_ether_addr(hdr->addr1) &&
+		    is_multicast_ether_addr(hdr->addr1) &&
 		    mesh_rmc_check(hdr->addr4, msh_h_get(hdr, hdrlen), rx->dev))
 		return RX_DROP_MONITOR;
 #undef msh_h_get
Signature · 1 line
1.5.4.3
maintainer
#1 lore raw

Seems appropriate but I haven't checked the spec.

Quoted 18 lines · Luis Carlos Cobo
---
 net/mac80211/rx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/mac80211/rx.c +1 -1
index d9c6ed5..0ac6db5 100644
@@ -433,7 +433,7 @@ ieee80211_rx_mesh_check(struct ieee80211_rx_data *rx)
 		}
 
 	 } else if ((rx->fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA &&
-		    is_broadcast_ether_addr(hdr->addr1) &&
+		    is_multicast_ether_addr(hdr->addr1) &&
 		    mesh_rmc_check(hdr->addr4, msh_h_get(hdr, hdrlen), rx->dev))
 		return RX_DROP_MONITOR;
 #undef msh_h_get
#2 lore raw
Quoted 1 line · Johannes Berg

Seems appropriate but I haven't checked the spec.

=EF=BB=BFThis was a bug, it was meant to be multicast from the begginin= g.
Otherwise if a mesh node transmits a multicast (non-broadcast) frame an= d
there are N mesh peers around it, it is going to be retransmitted N^MESH_TTL times.

Quoted 11 lines · Luis Carlos Cobo

net/mac80211/rx.c ieee80211_rx_mesh_check(struct ieee80211_rx_dat=

Quoted 10 lines
---
 net/mac80211/rx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

=20

net/mac80211/rx.c +0 -0
index d9c6ed5..0ac6db5 100644
@@ -433,7 +433,7 @@ ieee80211_rx_mesh_check(struct ieee80211_rx_dat=

a *rx)

Quoted 3 lines
Quoted 3 lines
net/mac80211/rx.c +0 -0
 		}

=20
} else if ((rx->fc & IEEE80211_FCTL_FTYPE) =3D=3D IEEE80211_FTYP=

E_DATA &&

Quoted 5 lines

net/mac80211/rx.c ieee80211_rx_mesh_check(struct ieee80211_rx_data *rx) · line 439

Quoted 5 lines
net/mac80211/rx.c +1 -1
-		    is_broadcast_ether_addr(hdr->addr1) &&
+		    is_multicast_ether_addr(hdr->addr1) &&
 		    mesh_rmc_check(hdr->addr4, msh_h_get(hdr, hdrlen), rx->dev))
 		return RX_DROP_MONITOR;
 #undef msh_h_get

--=20
Luis Carlos Cobo Rus GnuPG ID: 44019B60
cozybit Inc.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html