how can I parse a UDP packet in .NET?
问题 how can I parse a UDP packet in .NET? I'm using PCap.Net to capture packets, in this case UDP packets, which I can access from the PCap.net object via (PcapDotNet.packets.Ethernet.IpV4.Udp). How can I take the results, the Udp packet, and parse this? In particular to unbundle DNS requests and responses that occur that are housed within a UDP packet. Is there a library that could help here? EDIT : To be more specific what I want to be able to do is extract the IP address from the DNS response,