mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
finished component: HopLimit
This commit is contained in:
1 parent
b19477dcf1
commit
9df4cf742a
7 files changed
+99
-7
No files matched your search
@@ -20,6 +20,7 @@ public class FreshnessPeriod implements TlvComponentBase,InitialAble, IEncodingA
|
||||
|
||||
public void setFreshnessPeriod(long freshnessPeriod) {
|
||||
this.freshnessPeriod = freshnessPeriod;
|
||||
this.doInitial();
|
||||
}
|
||||
|
||||
// 接口实现-变量区
|
||||
@@ -83,7 +84,7 @@ public class FreshnessPeriod implements TlvComponentBase,InitialAble, IEncodingA
|
||||
|
||||
// 读取 FreshnessPeriod
|
||||
long value=TLV.readNonNegativeInteger(block.getValue(),0,block.getLength().getVlIntValue2Int());
|
||||
if(value==0){
|
||||
if(value<0){
|
||||
return false;
|
||||
}
|
||||
this.setFreshnessPeriod(value);
|
||||
|
||||
Reference in new issue
Block a user