Menu ▾ ▴

#17 Index error when parsing packet

v1.0_(example)
open
nobody
index error (1)
1
2013-08-05
2013-01-04
Greg Smythe
No

For some reason I am getting an "Index was outside the bounds of the array" when I am parsing the packet. Please see attached screenshot. Any ideas on how I can prevent this?

Thanks,
Greg

1 Attachments

Related

Bugs: #17

Discussion

  • Chris Morgan

    Chris Morgan - 2013-01-04

    Hi Greg.

    What kind of packet is producing that exception? Invalid packets can result in exceptions being thrown. If it happens you can sometimes catch the packet using wireshark, thats how I normally debug issues like that.

     
  • Greg Smythe

    Greg Smythe - 2013-01-04

    It looks like an IPV6 packet. Since I'm not interested in those is there a way to just ignore them?

     
  • Chris Morgan

    Chris Morgan - 2013-01-04

    You could apply a packet filter at the sharppcap level to only include
    ipv4 packets or you could just catch and ignore those exceptions if
    thrown per c#.

    Chris

    On Fri, Jan 4, 2013 at 11:30 AM, Greg Smythe gsmythe@users.sf.net wrote:

    It looks like an IPV6 packet. Since I'm not interested in those is there a
    way to just ignore them?

    Attachment: packet.net Error2.jpg (37.1 kB; image/jpeg)


    [bugs:#17] Index error when parsing packet

    Status: open
    Labels: index error
    Created: Fri Jan 04, 2013 01:42 PM UTC by Greg Smythe
    Last Updated: Fri Jan 04, 2013 01:47 PM UTC
    Owner: nobody

    For some reason I am getting an "Index was outside the bounds of the array"
    when I am parsing the packet. Please see attached screenshot. Any ideas on
    how I can prevent this?

    Thanks,
    Greg


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/packetnet/bugs/17/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/prefs/

     

    Related

    Bugs: #17

  • Greg Smythe

    Greg Smythe - 2013-01-04

    Thank you for your help, setting a filter fixed it right up!

    Thanks,
    Greg

     
  • Douglas McLaughlin

    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.

     

Anonymous
Anonymous

Add attachments
Cancel