msantos / pkt

Erlang network protocol library
http://blog.listincomprehension.com/search/label/epcap
BSD 3-Clause "New" or "Revised" License
151 stars 44 forks source link

Fixed system_capability, port_desc, system_name and system_desc field #25

Closed shun159 closed 9 years ago

shun159 commented 9 years ago

Hi, @msantos

Fixed to more human readable, and replaced test case to more detailed data.

please merge

regards.

msantos commented 9 years ago

Thanks @shun159!

If pkt:lldp/1 decodes to a proplist, would it make sense to return 1-tuples as atoms? So:

[{organizationally_specific,<<0,128,194,4,0>>},  {end_of_lldpdu}]

Would become:

[{organizationally_specific,<<0,128,194,4,0>>},  end_of_lldpdu]