CSMA: Discard frames that come from ourselves

This commit is contained in:
kkrentz 2018-10-27 15:03:40 -07:00
parent 74780d5962
commit f71db7cc90
1 changed files with 2 additions and 0 deletions

View File

@ -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;