I've been following the guide over at http://www.codeproject.com/KB/IP/sharppcap.aspx for implementing a simple packet sniffer.
I am getting an error while converting 'PacketDotNet.EthernetPacket' to 'SharpPcap.RawCapture'. Following is the piece of code that does the conversion part.
SharpPcap.RawCapture nextPacket = (SharpPcap.RawCapture)(lvMessages.Items[packetIndex].Tag);
I am not getting any compilation errors with this code. How should i convert this successfully ? Thanks in advance.