<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/packetnet/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/packetnet/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 16 Nov 2014 20:36:58 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/packetnet/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Problems when capture length is different of actual packet length</title><link>https://sourceforge.net/p/packetnet/bugs/22/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="http://sourceforge.net/p/packetnet/discussion/1045279/thread/af241173"&gt;http://sourceforge.net/p/packetnet/discussion/1045279/thread/af241173/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 16 Nov 2014 20:36:58 -0000</pubDate><guid>https://sourceforge.netda3ea912fecdbd68cc521496d1a7b42cd1a2909c</guid></item><item><title>#20 Attempting to set a negative length of -4</title><link>https://sourceforge.net/p/packetnet/bugs/20/?limit=25#3cdf</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Is there an update on this bug?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 18 Jul 2014 14:15:50 -0000</pubDate><guid>https://sourceforge.net1528bb167f3d227728a71470d529ef1b903bc073</guid></item><item><title>#21 Not able to set Time Stamps in TCp Hedaer Package.</title><link>https://sourceforge.net/p/packetnet/bugs/21/?limit=25#a1e5</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I'm the author of packet.net and sharppcap. Have you looked to see if any of the unit tests are covering testing that field? There could be an issue with that field or options parsing in general.&lt;/p&gt;
&lt;p&gt;I do have some available time to work on this, email me at chmorgan@gmail.com if you'd be interested in contracting with me to resolve the issue asap.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Morgan</dc:creator><pubDate>Fri, 25 Apr 2014 11:52:56 -0000</pubDate><guid>https://sourceforge.neta187a4d434fc70022128ed4e9775f4f16359932f</guid></item><item><title>Not able to set Time Stamps in TCp Hedaer Package.</title><link>https://sourceforge.net/p/packetnet/bugs/21/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello All,&lt;/p&gt;
&lt;p&gt;I am using SharpPcap 4.2 library to parse TCP ip packages,now i have problem for Windows client request.&lt;/p&gt;
&lt;p&gt;When ever i receive request from window client i am not able to get Time Stamp potion field from TCP header,so i have goggling and find if you are not able to receive packages from Client and Server set this Time Stamp fro ACK packet then all subsequent request you will receive the Time Stamp for that client packages,but i am not able to set this field from server.&lt;/p&gt;
&lt;p&gt;Below is code which i am using.&lt;/p&gt;
&lt;p&gt;Bytes [] by =new Bytes&lt;span&gt;[10]&lt;/span&gt;;&lt;/p&gt;
&lt;p&gt;tcp.OptionsCollection.Add(new PacketDotNet.Tcp.Option(by,1,10));&lt;br /&gt;
As this Option class is abstract ,so i am not able to add a new option,please help me it is needed as fast as possible.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jatin Chandarana</dc:creator><pubDate>Fri, 25 Apr 2014 10:05:11 -0000</pubDate><guid>https://sourceforge.net297004b5929e10abed711e7e3dc6e39a6521b3ec</guid></item><item><title>Attempting to set a negative length of -4</title><link>https://sourceforge.net/p/packetnet/bugs/20/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have attached a runnable test case including the offending packet TCP/IPv4/Ethernet packet. I have been collecting all network traffic on one of my servers and a few packets from China are crashing the parser.&lt;/p&gt;
&lt;p&gt;I have stripped the destination IP address and replaced it with 127.0.0.1. The source IP address is still accurate. It seems you can try to connect to that server on port 80 and it will send back a packet that crashes the parser, but it's pretty hit or miss.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 20 Feb 2014 00:22:45 -0000</pubDate><guid>https://sourceforge.netbbe009af614c3d6450d717c65775b1916eaa7b5c</guid></item><item><title>#11 InvalidOperationException</title><link>https://sourceforge.net/p/packetnet/bugs/11/?limit=50#1c28</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have encountered a similar error, but it involves a -4 length and TCP/IPv4/Ethernet. I have made my receiver dump packets when it crashes, so we'll see here in a few hours when I get another crash.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 19 Feb 2014 06:19:54 -0000</pubDate><guid>https://sourceforge.netfd830759d31c793ad1fb71d54e5dc2a89043a9ae</guid></item><item><title>#17 Index error when parsing packet</title><link>https://sourceforge.net/p/packetnet/bugs/17/?limit=25#89f2</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I, too, am getting this index error.  The previous version of Packet.Net did not have this issue.  I do need to see and parse TCPv6 packets so filtering them out is not an option.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Douglas McLaughlin</dc:creator><pubDate>Mon, 05 Aug 2013 19:31:06 -0000</pubDate><guid>https://sourceforge.net526eb64ad55c30a3a03ff4af20bccabc52e782ab</guid></item><item><title>IP fragmented data</title><link>https://sourceforge.net/p/packetnet/bugs/19/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Parsing this PCAP file i`m getting exception (attempting to set a negative length of -4) at second frame. PCAP contains two frames L2 Ethernet, L3 IPv4 segmented and L4 UDP. Inspection this PCAP in Wireshark and Network Monitor frame seems to be OK.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pluskal Jan</dc:creator><pubDate>Sat, 15 Jun 2013 10:06:10 -0000</pubDate><guid>https://sourceforge.netff1b73f133b7c1a63e1a06e179fe3f6342fa4189</guid></item><item><title>#11 InvalidOperationException</title><link>https://sourceforge.net/p/packetnet/bugs/11/?limit=25#b2dd</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Chris,&lt;/p&gt;
&lt;p&gt;I too found a similar problem when using PacketDotNet for parsing a pcap file. I got the "Attempting to set negative length" exception when using my pcap file in "ReadingCaptureFile" example code from SharpCap. Sorry, but I can't upload the pcap file sample.&lt;/p&gt;
&lt;p&gt;From what I was able to debug using the PacketDotNet source code, it seems that this occurs when a UDP datagram is fragmented on the IP layer. In this case only the 1st packet has the UDP header. For subsequent packets the parser assumes that there is a UDP header and when it tries to create a ByteArraySegment, it may encounter a -ve length. In cases where it doesn't throw the exception, due to the size of the data in the 2nd packet being more, then the data in the assumed UDP header is wrong for the 2 packet.&lt;/p&gt;
&lt;p&gt;Example-&lt;br /&gt;
UDP Data of 1485 bytes split in 2 frames&lt;br /&gt;
Frame1-&lt;br /&gt;
FrameTotalBytes-1514&lt;br /&gt;
EthBytes-1514 (14 header + 1500 data)&lt;br /&gt;
IPBytes-1500  (20 header + 1480 data)&lt;br /&gt;
UDPBytes-1480 (08 header + 1472 data)&lt;/p&gt;
&lt;p&gt;Frame2-&lt;br /&gt;
FrameTotalBytes-60&lt;br /&gt;
EthBytes-60  (14 header + 25 data + 21 padding)&lt;br /&gt;
IPbytes-25   (20 header + 5 data)&lt;br /&gt;
UDPbytes-0&lt;/p&gt;
&lt;p&gt;For Frame2, PacketDotNet parser assumes presence of UDP header when calculating the ByteArraySegments.&lt;/p&gt;
&lt;p&gt;I hope this explanation is good enough to help you identify the problem.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
SB&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 16 Apr 2013 14:44:15 -0000</pubDate><guid>https://sourceforge.net6333d58760e0a0a382da6436d8275bdda244075e</guid></item><item><title>#18 Incorrect Return type for TcpPacket.CalculateTCPChecksum</title><link>https://sourceforge.net/p/packetnet/bugs/18/?limit=25#9d75</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Update:&lt;br /&gt;
Lines 400 - 417 of TcpPacket.cs ver. 0.13 refer:&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;/// &lt;br /&gt;
/// Computes the TCP checksum. Does not update the current checksum value&lt;br /&gt;
/// &lt;br /&gt;
///  The calculated TCP checksum.&lt;br /&gt;
public &lt;strong&gt;int&lt;/strong&gt; CalculateTCPChecksum()&lt;br /&gt;
{&lt;br /&gt;
     var newChecksum = CalculateChecksum(TransportChecksumOption.AttachPseudoIPHeader);&lt;br /&gt;
     return newChecksum;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;/// &lt;br /&gt;
/// Update the checksum value.&lt;br /&gt;
/// &lt;br /&gt;
public void UpdateTCPChecksum()&lt;br /&gt;
{&lt;br /&gt;
     log.Debug("");&lt;br /&gt;
     this.Checksum = &lt;strong&gt;(ushort)&lt;/strong&gt;CalculateTCPChecksum();&lt;br /&gt;
}&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;As seen in the UpdateTCPChecksum() function, the &lt;em&gt;int&lt;/em&gt; value of the Checksum is unnatural, and only the CalculateTCPChecksum() makes use of the value as an integer. The CheckUDPChecksum() in UdpPacket.cs function also uses &lt;em&gt;int&lt;/em&gt;, which is then typecast back to &lt;em&gt;ushort&lt;/em&gt; elsewhere. The IPv4Packet.cs only uses the &lt;em&gt;ushort&lt;/em&gt; form of the Checksum value.&lt;/p&gt;
&lt;p&gt;I have not gone through all code, and I know this is easily fixed in-line during end-user implementations with a typecast, but this feels counter-intuitive to the level of abstraction being sought. I cannot find any comment as to why these two functions are the only Checksum related functions to return &lt;em&gt;int&lt;/em&gt; values.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marcel Saturnyne</dc:creator><pubDate>Tue, 12 Mar 2013 21:23:08 -0000</pubDate><guid>https://sourceforge.net32280c3b8c0ce7c6aee77aa3a13f9167cbb4de51</guid></item></channel></rss>