Josh Vance

Show:

What's happening?

  • Followup: RE: Almost... Arithmetic Overflow

    Its hard to know without seeing it myself, and popping through the stack in the debugger,... but I think you might be setting the following line incorrectly: udpMessage.UDPLength = msgBufferArray.Length - lLen; I never set that field myself when I made UDP packets. You may not need to, I think it probably gets automatically. I didn't notice anything else weird looking in your code. It...

    2009-08-11 02:56:11 UTC in SharpPcap

  • Followup: RE: System.InvalidOperationException

    source and destAddress, source/dest port, source/dest hardware address, all 6 of those and I think the ID, and TimeToLive are the 8 that are what I called "optional" you don't have to fill those in to be "valid". For my program I just needed a way to create packets of data from scratch, store them offline in offline pcap files, then open them up at a later time a read them...

    2009-08-07 01:43:36 UTC in SharpPcap

  • Followup: RE: System.InvalidOperationException

    All I can tell you is that you MUST fill in pretty much everything, to make the packet "valid". Otherwise when you call the functions for computing the checksums (which by the way, you MUST also do) they will freak out and throw lots of different exceptions. I have seen multiple different ones, but not that particular one you mention. I DO know however that the IP version MUST be...

    2009-08-06 22:09:02 UTC in SharpPcap

  • Followup: RE: Moving backwards in an offline file.

    OK, that's weird.... My new post was added to the end of a different thread, which is why I made that 2nd comment. Then is just appeared in it's own new thread - like it should have originally. Strange! Oh well.

    2009-08-04 14:17:39 UTC in SharpPcap

  • Followup: RE: Moving backwards in an offline file.

    CRAP. This should have started a NEW thread! NOT added to this one!

    2009-08-04 14:15:37 UTC in SharpPcap

  • Moving backwards in an offline file.

    When working with offline files, there exist 2 functions (that I am aware of) that retrieve packets from the file: GetNextPacket() Capture() Both of those only move forwards in the file. Is there a way to move BACKWARDS in a file? ~ Josh.

    2009-08-04 14:14:35 UTC in SharpPcap

  • Followup: RE: unable to load dll "wpcap"

    And again, you may (in some cases ) need to copy those files into a different directory. ie. your build directory, test directory, etc...

    2009-08-01 16:03:54 UTC in SharpPcap

  • Followup: RE: unable to load dll "wpcap"

    I got that exact same error. The file should be in ".../Windows/System32" directory. There are actually like 4 files you need, but the only error I ever saw was the wpcap error. If you have the latest WinPcap you should already have them. If you have WireShark installed that also depends on WinPcap, so again you should already have them. I used a program called InstallWatch...

    2009-08-01 16:02:17 UTC in SharpPcap

  • Followup: RE: UDP Packet Example

    packet.Data returns only the payload data bytes, and I think it is read-only. Use: packet.SetData( dataByteArray ); to SET the data. ~ Josh.

    2009-07-28 19:06:53 UTC in SharpPcap

  • Followup: RE: Manually Setting TimeStamps?

    Uh... not really. That was a direct copy from my code. And it worked for me. Are you using the initializer (with everything in one statement)? ~Josh.

    2009-07-28 03:38:46 UTC in SharpPcap

About Me

  • 2009-06-05 (5 months ago)
  • 2527431
  • jdv26c (My Site)
  • Josh Vance

Send me a message