Skip to content
forked from Akagi201/tlv

A toolkit for working with TLV (Type-Length-Value) objects and TLV object List.

License

Notifications You must be signed in to change notification settings

broadcastle/tlv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TLV

PkgGoDev

TLV is the representative of type-length-value.

It might be found in a binary file format or a network protocol.

Brief

One TLV Object:

 1 Byte   2 Bytes  $Length Bytes
+-------+---------+-------------+
| Type  | Length  |    Value    |
+-------+---------+-------------+

Serial TLV Objects:

 1 Byte   2 Bytes  $Length Bytes 1 Byte   2 Bytes  $Length Bytes
+-------+---------+-------------+-------+---------+-------------+
| Type  | Length  |    Value    | Type  | Length  |    Value    | ...
+-------+---------+-------------+-------+---------+-------------+

Embedded TLV Objects:

 1 Byte   2 Bytes          $Length Bytes
                   1 Byte   2 Bytes  $Length Bytes
+-------+---------+-------+---------+-------------+
| Type  | Length  | Type  | Length  |    Value    |
+-------+---------+-------+---------+-------------+

Wireshark Plugin

  • Put wssdl and tlv.lua to ~/.config/wireshark/plugins
  • The UDP port 8327 will be decoded as tlv protocol.

Changes

  • Set TLV length to 2 bytes.
  • Added additional test.

About

A toolkit for working with TLV (Type-Length-Value) objects and TLV object List.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.7%
  • Lua 3.3%