wifi: filter out loopback traffic from myself
broadcast traffic was received back on the wire causing duplicate address detection to break with dmat proy as the rewritten broadcasts where observable. the fix is to just ignore packets from ourselfs received from the air. devether already handles loopback.
This commit is contained in:
parent
d682a6cb38
commit
2088f8c991
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ wifiiq(Wifi *wifi, Block *b)
|
|||
hdrlen = wifihdrlen(w);
|
||||
if(BLEN(b) < hdrlen)
|
||||
goto drop;
|
||||
if(memcmp(srcaddr(w), wifi->ether->ea, Eaddrlen) == 0)
|
||||
goto drop;
|
||||
if(w->fc[1] & 0x40){
|
||||
/* encrypted */
|
||||
qpass(wifi->iq, b);
|
||||
|
|
Loading…
Reference in a new issue