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) &&
|
&linkaddr_node_addr) &&
|
||||||
!packetbuf_holds_broadcast()) {
|
!packetbuf_holds_broadcast()) {
|
||||||
LOG_WARN("not for us\n");
|
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 {
|
} else {
|
||||||
int duplicate = 0;
|
int duplicate = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user