C# Programming
05-09-2013, 10:26 PM
hi
how are you
as i see you answer many questions about the http packet
and if you can help me please i will be very thankful for you
i am new in the programing in c# language
i have a pcap file , i open it in wiresharh program.
i nead to read this pcap file (which it is saved on my pc in a specific folder) in c# and display specific fields( time of the packet, ip source , ip destination , info(as it apear in wireshark) )
but not for all pachets just for the http protocol(as it aprear in wireshark)
i am using the (Tamir.IPLib.Packets) library and i program this
private static void device_PcapOnPacketArrival(object sender, Packet packet)
{
if( packet is IPPacket)
{
IPPacket etherFrame = (IPPacket)packet;
Console.WriteLine("time {0}, source ip address {1}, destination ip address {2} ",
etherFrame.Timeval.Seconds,
etherFrame.SourceAddress,
etherFrame.DestinationAddress);
}
}
this program print the fields (time ,source ip ,detination ip) but for all the packets
how can i specific just for the http protocol ( as it appear in wireshark)
thanks for your time
can you answer me on my email
mais_irreem@yahoo.com
how are you
as i see you answer many questions about the http packet
and if you can help me please i will be very thankful for you
i am new in the programing in c# language
i have a pcap file , i open it in wiresharh program.
i nead to read this pcap file (which it is saved on my pc in a specific folder) in c# and display specific fields( time of the packet, ip source , ip destination , info(as it apear in wireshark) )
but not for all pachets just for the http protocol(as it aprear in wireshark)
i am using the (Tamir.IPLib.Packets) library and i program this
private static void device_PcapOnPacketArrival(object sender, Packet packet)
{
if( packet is IPPacket)
{
IPPacket etherFrame = (IPPacket)packet;
Console.WriteLine("time {0}, source ip address {1}, destination ip address {2} ",
etherFrame.Timeval.Seconds,
etherFrame.SourceAddress,
etherFrame.DestinationAddress);
}
}
this program print the fields (time ,source ip ,detination ip) but for all the packets
how can i specific just for the http protocol ( as it appear in wireshark)
thanks for your time
can you answer me on my email
mais_irreem@yahoo.com