finished component: HopLimit

This commit is contained in:
free will committed 2021-03-09 17:11:52 +08:00
1 parent b19477dcf1
commit 9df4cf742a
7 files changed
+99 -7

No files matched your search

+2 -2
View File
@@ -82,9 +82,9 @@ public class CongestionMark implements TlvComponentBase,InitialAble, IEncodingAb
return false;
}
// 读取 interestLifeTime
// 读取 CongestionMark
long value=TLV.readNonNegativeInteger(block.getValue(),0,block.getLength().getVlIntValue2Int());
if(value==0){
if(value<0){
return false;
}
this.setCongestionLevel(value);