packetbuf: Use packetbuf_holds_broadcast() all-over

This commit is contained in:
kkrentz 2014-08-05 04:49:05 -07:00
parent 3e44e8b258
commit fb00a217f5
10 changed files with 15 additions and 33 deletions

View file

@ -433,7 +433,7 @@ send_packet(void)
/* If NETSTACK_CONF_BRIDGE_MODE is set, assume PACKETBUF_ADDR_SENDER is already set. */
packetbuf_set_addr(PACKETBUF_ADDR_SENDER, &linkaddr_node_addr);
#endif
if(linkaddr_cmp(packetbuf_addr(PACKETBUF_ADDR_RECEIVER), &linkaddr_null)) {
if(packetbuf_holds_broadcast()) {
is_broadcast = 1;
PRINTDEBUG("cxmac: send broadcast\n");
} else {