mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-29 08:14:02 -05:00
proxyarp: Try multicast-to-unicast conversion only for authorized STAs
There is no point in trying to send the unicast converted version to a STA that is not in authorized state since the driver would be expected to drop normal TX Data frames in such state. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
67aeee118a
commit
df131d4597
@ -130,9 +130,12 @@ static void handle_dhcp(void *ctx, const u8 *src_addr, const u8 *buf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hapd->conf->disable_dgaf && is_broadcast_ether_addr(buf)) {
|
if (hapd->conf->disable_dgaf && is_broadcast_ether_addr(buf)) {
|
||||||
for (sta = hapd->sta_list; sta; sta = sta->next)
|
for (sta = hapd->sta_list; sta; sta = sta->next) {
|
||||||
|
if (!(sta->flags & WLAN_STA_AUTHORIZED))
|
||||||
|
continue;
|
||||||
x_snoop_mcast_to_ucast_convert_send(hapd, sta,
|
x_snoop_mcast_to_ucast_convert_send(hapd, sta,
|
||||||
(u8 *) buf, len);
|
(u8 *) buf, len);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,6 +136,8 @@ static void handle_ndisc(void *ctx, const u8 *src_addr, const u8 *buf,
|
|||||||
/* fall through */
|
/* fall through */
|
||||||
case NEIGHBOR_ADVERTISEMENT:
|
case NEIGHBOR_ADVERTISEMENT:
|
||||||
for (sta = hapd->sta_list; sta; sta = sta->next) {
|
for (sta = hapd->sta_list; sta; sta = sta->next) {
|
||||||
|
if (!(sta->flags & WLAN_STA_AUTHORIZED))
|
||||||
|
continue;
|
||||||
x_snoop_mcast_to_ucast_convert_send(hapd, sta,
|
x_snoop_mcast_to_ucast_convert_send(hapd, sta,
|
||||||
(u8 *) buf, len);
|
(u8 *) buf, len);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user