Fix small bugs in DLEP
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Thu, 26 Oct 2017 13:48:46 +0000 (15:48 +0200)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Thu, 26 Oct 2017 13:48:46 +0000 (15:48 +0200)
src-plugins/generic/dlep/dlep_reader.c
src-plugins/generic/dlep/ext_l2_statistics/l2_statistics.c

index f164167..e1b0577 100644 (file)
@@ -433,6 +433,9 @@ dlep_reader_status(enum dlep_status *status,
       text[text_length-1] = 0;
     }
   }
+  else if (text_length) {
+    *text = 0;
+  }
   return 0;
 }
 
index 72f2895..827567a 100644 (file)
@@ -138,6 +138,7 @@ static struct dlep_extension_tlv _tlvs[] = {
     { DLEP_BYTES_R_TLV, 8, 8 },
     { DLEP_BYTES_T_TLV, 8, 8 },
     { DLEP_THROUGHPUT_T_TLV, 8,8 },
+    { DLEP_CDRR_BC_TLV, 8,8 },
 };
 
 static struct dlep_neighbor_mapping _neigh_mappings[] = {