Menu

#84 WinPcapSendQueue throws Bufferunderflow exception

Version 1.3
closed-fixed
API Issue (77)
5
2011-03-24
2011-03-24
No

The example on the website or any other usage of WinPcapSendQueue always throws a buffer under flow exception.

Discussion

  • Sly Technologies

    The problem was that the pcap_send_queue->len field was not properly initialized. The work around is to issue setLen(0) on the queue right after its created here is an example:

    WinPcapSendQueue queue = WinPcap.sendQueueAlloc(512);
    queue.setLen(0); // Temporary work around a bug in the implementation

    This should properly initialize the structure. This is fixed in next 1.3 update.

     
  • Sly Technologies

    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB