Skip to content

Commit

Permalink
rm unnecessary DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
Lotterleben committed Jul 19, 2015
1 parent 461bfb4 commit f3d1fe2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sys/net/routing/aodvv2/aodv.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,15 +373,13 @@ static void *_aodv_receiver_thread(void *arg)

switch (msg.type) {
case NG_NETAPI_MSG_TYPE_RCV:
AODV_DEBUG("received data:");
ng_pktsnip_t *pkt = ((ng_pktsnip_t *)msg.content.ptr);
if (pkt->size <= UDP_BUFFER_SIZE) {
memcpy(buf_rcv, pkt->data, pkt->size);

if(pkt->next->next->type == NG_NETTYPE_IPV6) {
ipv6_addr_t_to_netaddr(&(((ng_ipv6_hdr_t*)(pkt->next->next->data))->src), &_sender);
}

if (netaddr_cmp(&_sender, &na_local) == 0) {
AODV_DEBUG("received our own packet, dropping it.\n");
}
Expand Down

0 comments on commit f3d1fe2

Please sign in to comment.