Click here to Skip to main content
15,887,450 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
Successfully wrote some code to read and parse an LLDP packet (SharpPcap). Want to now get the TLVs and print them out to screen.

output of code:
Console.WriteLine(Tlv);
Console.WriteLine("type:" + Tlv.GetType().ToString());


[ChassisId: SubType=MacAddress, SubTypeValue=F0921C8332C0]
type:PacketDotNet.Lldp.ChassisIdTlv


How can I read/access the value of SubTypeValue?

String ChassisIDMacAddress = LLDP.TlvCollecttion[0]????????

What I have tried:

tried different things without success.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900