<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>PcapDotNet Discussions Rss Feed</title><link>http://pcapdotnet.codeplex.com/Thread/List.aspx</link><description>PcapDotNet Discussions Rss Description</description><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;I don't know why.&lt;br /&gt;
And yes, this is a good way to check it.&lt;br /&gt;
&lt;/div&gt;</description><author>Brickner</author><pubDate>Fri, 14 Jun 2013 13:53:24 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130614015324P</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;So why this large packets has bad checkum ?&lt;br /&gt;
&lt;br /&gt;
This is the way to check packet size ?&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://s7.postimg.org/p7ipnx5yz/123.png" alt="Image" /&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>gshhar</author><pubDate>Sat, 08 Jun 2013 12:02:38 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130608120238P</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;Usually Ethernet packet size don't exceed 1514 bytes (14 bytes for Ethernet header and 1500 for payload).&lt;br /&gt;
&lt;/div&gt;</description><author>Brickner</author><pubDate>Sat, 08 Jun 2013 10:06:08 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130608100608A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;I checked now with another computer and it seems that it works fine.&lt;br /&gt;
can you show me how to check and see this large packets ?&lt;br /&gt;
because this packets comes from VMware machine and maybe i can change the packet size, what is the packet limit that network card could send ?&lt;br /&gt;
&lt;/div&gt;</description><author>gshhar</author><pubDate>Sat, 08 Jun 2013 08:11:18 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130608081118A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;Have you seen such large packets go out from these machines?&lt;br /&gt;
&lt;/div&gt;</description><author>Brickner</author><pubDate>Sat, 08 Jun 2013 07:02:57 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130608070257A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;NO because i have check it with several machines and on all those machine the result was the same.&lt;br /&gt;
&lt;/div&gt;</description><author>gshhar</author><pubDate>Fri, 07 Jun 2013 14:30:10 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130607023010P</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;Packet length does seems suspicious large.&lt;br /&gt;
&lt;br /&gt;
It also seems that the original packets with the bad checksum are also very large.&lt;br /&gt;
It's possible that you can't send such large packets with your device.&lt;br /&gt;
&lt;br /&gt;
Boaz.&lt;br /&gt;
&lt;/div&gt;</description><author>Brickner</author><pubDate>Fri, 07 Jun 2013 11:47:53 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130607114753A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;After change to SendPacket:&lt;br /&gt;
&lt;br /&gt;
nvalidOperationException was caught&lt;br /&gt;
&lt;strong&gt;InnerException:&lt;/strong&gt; null&lt;br /&gt;
&lt;strong&gt;Message:&lt;/strong&gt; Failed writing to device. Packet length: 2974. WinPcap Error: send error: PacketSendPacket failed&lt;br /&gt;
&lt;strong&gt;StackTrace:&lt;/strong&gt; at PcapDotNet.Core.PacketCommunicator.SendPacket(Packet packet)&lt;br /&gt;
   at packetPlayer.Pcap.sendBuffer(PacketDevice packetDevice) in d:\Drivers\projects\PacketPlayer\PacketPlayer\classes\Pcap.cs:line 288&lt;br /&gt;
&lt;br /&gt;
i would say that the packet length is the reason ?&lt;br /&gt;
&lt;br /&gt;
this is my code (moved some irrelevant code):&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;            OfflinePacketDevice selectedInputDevice = new OfflinePacketDevice(&amp;quot;MyFile&amp;quot;);
            PacketDevice selectedOutputDevice; //my interface 

            using (PacketCommunicator inputCommunicator = selectedInputDevice.Open(65536, PacketDeviceOpenAttributes.Promiscuous, 1000))
            {
                using (PacketCommunicator mOutputCommunicator = selectedOutputDevice.Open(100, PacketDeviceOpenAttributes.Promiscuous, 1000))
                {
                    Packet packet;

                    while (inputCommunicator.ReceivePacket(out packet) == PacketCommunicatorReceiveResult.Ok) //fill the buffer with the packets from the file
                    {
                        using (PacketSendBuffer mSendBuffer = new PacketSendBuffer((uint)packet.Length * 4))
                        {
                            try
                            {
                                mOutputCommunicator.SendPacket(packet);
                            }
                            catch (Exception ex)
                            {

                            }
                        }
                    }
                }
            }&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>gshhar</author><pubDate>Sat, 01 Jun 2013 14:44:53 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130601024453P</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;According to the call stack, it seems you're using Transmit() and not SendPacket().&lt;br /&gt;
Please change it to SendPacket() so it's easier to debug.&lt;br /&gt;
Also, I'll need to take a look at the code you run and not just the packet creation method.&lt;br /&gt;
&lt;/div&gt;</description><author>Brickner</author><pubDate>Sat, 01 Jun 2013 13:36:28 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130601013628P</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;InvalidOperationException was caught&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;InnerException:&lt;/strong&gt; null&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Message:&lt;/strong&gt; Failed transmiting packets from queue. WinPcap Error: Error opening adapter: Error opening adapter: Error opening adapter: Error&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;StackTrace:&lt;/strong&gt;  at PcapDotNet.Core.PacketSendBuffer.Transmit(pcap* pcapDescriptor, Boolean isSync)&lt;br /&gt;
   at PcapDotNet.Core.LivePacketCommunicator.Transmit(PacketSendBuffer sendBuffer, Boolean isSync)&lt;br /&gt;
   at packetPlayer.Pcap.sendBuffer(PacketDevice packetDevice) in d:\Drivers\projects\MyApplication\classes\Pcap.cs:line 287&lt;br /&gt;
&lt;/div&gt;</description><author>gshhar</author><pubDate>Sat, 01 Jun 2013 06:51:59 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130601065159A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;Can you give the full exception description with the full call stack when you use OutputCommunicator?&lt;br /&gt;
&lt;/div&gt;</description><author>Brickner</author><pubDate>Sat, 01 Jun 2013 06:34:33 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130601063433A</guid></item><item><title>New Post: Cannot extract IP address from DNS answer field</title><link>http://pcapdotnet.codeplex.com/discussions/444536</link><description>&lt;div style="line-height: normal;"&gt;Thans Brickner for your help. &lt;br /&gt;
&lt;/div&gt;</description><author>sanz86</author><pubDate>Fri, 31 May 2013 12:19:38 GMT</pubDate><guid isPermaLink="false">New Post: Cannot extract IP address from DNS answer field 20130531121938P</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;Any solution ?&lt;br /&gt;
&lt;/div&gt;</description><author>gshhar</author><pubDate>Fri, 31 May 2013 11:32:40 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130531113240A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;Still the same error&lt;br /&gt;
&lt;/div&gt;</description><author>gshhar</author><pubDate>Fri, 31 May 2013 11:01:13 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130531110113A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;Using Transmit() can be a bit tricky.&lt;br /&gt;
Can you first try and use the simple SendPacket() method to see if this works?&lt;br /&gt;
&lt;/div&gt;</description><author>Brickner</author><pubDate>Fri, 31 May 2013 10:54:18 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130531105418A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;That is what i did now.&lt;br /&gt;
this link: &lt;a href="http://www.sendspace.com/file/mkpf3h" rel="nofollow"&gt;http://www.sendspace.com/file/mkpf3h&lt;/a&gt; contain 1 packets that successfully save after the fix (only save without send)&lt;br /&gt;
&lt;br /&gt;
when try to send this packet with the bad checksum and after this packet pass my &lt;strong&gt;fixBadChecksum&lt;/strong&gt; function -  i get an exception in &lt;strong&gt;OutputCommunicator.Transmit&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>gshhar</author><pubDate>Fri, 31 May 2013 10:36:15 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130531103615A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;I don't understand, do you get an exception? How is this stack trace helpful?&lt;br /&gt;
&lt;br /&gt;
I suggest you just try to save a single packet and not transmit it and see how it looks like in a pcap file.&lt;br /&gt;
&lt;/div&gt;</description><author>Brickner</author><pubDate>Fri, 31 May 2013 10:25:26 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130531102526A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;This is 1 packet after the fix and save as you ask: &lt;a href="http://www.sendspace.com/file/mkpf3h" rel="nofollow"&gt;http://www.sendspace.com/file/mkpf3h&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>gshhar</author><pubDate>Fri, 31 May 2013 10:25:09 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130531102509A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;&lt;strong&gt;Failed transmiting packets from queue. WinPcap Error: Error opening adapter: Error opening adapter: Error opening adapter: Error&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Ok this is the StackTrace from OutputCommunicator.Transmit(mSendBuffer, _isBurst);:    at PcapDotNet.Core.PacketSendBuffer.Transmit(pcap* pcapDescriptor, Boolean isSync)&lt;br /&gt;
   at PcapDotNet.Core.LivePacketCommunicator.Transmit(PacketSendBuffer sendBuffer, Boolean isSync)&lt;br /&gt;
   at packetPlayer.Pcap.playCapture(PacketDevice packetDevice) in d:\Drivers\PacketPlayer__\MyApplication\classes\Pcap.cs:line 275&lt;br /&gt;
&lt;/div&gt;</description><author>gshhar</author><pubDate>Fri, 31 May 2013 10:23:51 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130531102351A</guid></item><item><title>New Post: Fix bad checksum packet</title><link>http://pcapdotnet.codeplex.com/discussions/444769</link><description>&lt;div style="line-height: normal;"&gt;Can you show me how the packets look like if you save them to file instead of trying to transmit them?&lt;br /&gt;
&lt;/div&gt;</description><author>Brickner</author><pubDate>Fri, 31 May 2013 10:19:45 GMT</pubDate><guid isPermaLink="false">New Post: Fix bad checksum packet 20130531101945A</guid></item></channel></rss>