Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks,

I need to write a test application to encode and send packets for a protocol which is based on the TLV (Tag, Length, Value) binary format. The test app should also be able to decode the TLV packets as well.

Are there any perl modules that will help to deal with the TLV packing?

Thanks in advance.

Replies are listed 'Best First'.
Re: TLV encoding and decoding
by marto (Cardinal) on Jun 04, 2010 at 12:01 UTC

      Thanks for the quick answer. I did see the module description and it listed that it is for LLTD (Link Layer Topology Discovery) protocol.

      I am looking something which helps in the basic TLV format encoding and decoding. I am not sure if I can use the base module - Net::Frame::Layer and it will help me with what I want.

      Any other suggestions?

      Thanks