add packet test: LpPacketTest

This commit is contained in:
free will committed 2021-04-08 11:22:42 +08:00
1 parent 56eeae6dd7
commit 43468b0999
23 files changed
+208 -16

No files matched your search

+11 -1
View File
@@ -34,12 +34,22 @@ import encoding.*;
// }
//
public class CPacket implements InteractWithField, IEncodingAble {
public MINPacket minPacket=new MINPacket();
private MINPacket minPacket=new MINPacket();
public TTL ttl=new TTL();
public Payload payload=new Payload();
public Identifier srcIdentifier=new Identifier();
public Identifier dstIdentifier=new Identifier();
public CPacket(){
}
public CPacket(Identifier srcIdentifier,Identifier dstIdentifier,
Payload payload,TTL ttl){
this.srcIdentifier=srcIdentifier;
this.dstIdentifier=dstIdentifier;
this.payload=payload;
this.ttl=ttl;
}
/**
* 获取源标识