diff --git a/Makefile.ver b/Makefile.ver index 13c31091..b4695baa 100644 --- a/Makefile.ver +++ b/Makefile.ver @@ -1,4 +1,4 @@ -PANDORA_VERSION=1.11.0 +PANDORA_VERSION=1.11.1 BUILDNUMBER="$(shell date +%Y%m%d_%s)" diff --git a/include/counter_names.h b/include/counter_names.h index dbd572d9..35d73f72 100644 --- a/include/counter_names.h +++ b/include/counter_names.h @@ -23,6 +23,9 @@ enum packet_stats { PS_DAOACK_NO_DAGID_IGNORED, PS_DAOACK_WRONG_PARENT, PS_DAOACK_WRONG_SEQNO, + PS_RPL_UNKNOWN_CODE, + PS_DIS_PACKET_RECEIVED, + PS_DIS_PACKET_IGNORED, PS_MAX, }; diff --git a/lib/libndmgmt/iface.cpp b/lib/libndmgmt/iface.cpp index 132b4dd3..c37ba233 100644 --- a/lib/libndmgmt/iface.cpp +++ b/lib/libndmgmt/iface.cpp @@ -546,9 +546,17 @@ void network_interface::receive_packet(struct in6_addr ip6_src, icmp6->icmp6_data8, bytes_end - icmp6->icmp6_data8); break; + case ND_RPL_DAG_IS: + dag_network::globalStats[PS_DIS_PACKET_IGNORED]++; +#if 0 + this->receive_dis(ip6_src, ip6_dst, now, + icmp6->icmp6_data8, bytes_end - icmp6->icmp6_data8); +#endif + break; + default: - this->log_received_packet(ip6_src, ip6_dst); - logged=true; + this->log_received_packet(ip6_src, ip6_dst); logged=true; + dag_network::globalStats[PS_RPL_UNKNOWN_CODE]++; debug->warn("Got unknown RPL code: %u\n", icmp6->icmp6_code); break; }