Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions ndn/app/tlv/definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ type Message struct {
DSKResponse *DSKResponse `tlv:"0xCC"`
//+field:struct:DSKACK
DSKACK *DSKACK `tlv:"0xCE"`
//+field:struct:RefreshPing
RefreshPing *RefreshPing `tlv:"0xD0"`
//+field:struct:RefreshAck
RefreshAck *RefreshAck `tlv:"0xD2"`
//+field:struct:RefreshRequest
RefreshRequest *RefreshRequest `tlv:"0xD4"`
}

type AeadBlock struct {
Expand Down Expand Up @@ -46,3 +52,36 @@ type DSKACK struct {
//+field:binary
X25519Peer []byte `tlv:"0x57A"`
}

type RefreshPing struct {
//+field:string
RequestId string `tlv:"0x5A0"`
//+field:string
Requester string `tlv:"0x5A2"`
//+field:string
SentAt string `tlv:"0x5A4"`
}

type RefreshAck struct {
//+field:string
RequestId string `tlv:"0x5A0"`
//+field:string
Requester string `tlv:"0x5A2"`
//+field:string
Responder string `tlv:"0x5A4"`
//+field:natural
Freshness uint64 `tlv:"0x5A6"`
//+field:string
SentAt string `tlv:"0x5A8"`
}

type RefreshRequest struct {
//+field:string
RequestId string `tlv:"0x5A0"`
//+field:string
Requester string `tlv:"0x5A2"`
//+field:string
Responder string `tlv:"0x5A4"`
//+field:string
SentAt string `tlv:"0x5A6"`
}
Loading
Loading