CSMA: Discard frames that come from ourselves
This commit is contained in:
parent
74780d5962
commit
f71db7cc90
@ -72,6 +72,8 @@ input_packet(void)
|
||||
&linkaddr_node_addr) &&
|
||||
!packetbuf_holds_broadcast()) {
|
||||
LOG_WARN("not for us\n");
|
||||
} else if(linkaddr_cmp(packetbuf_addr(PACKETBUF_ADDR_SENDER), &linkaddr_node_addr)) {
|
||||
LOG_WARN("frame from ourselves\n");
|
||||
} else {
|
||||
int duplicate = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user