Mark Bednarczyk's blog

10 bugs in 1.3/1.4

Just a heads up for everyone. I'm working on about 10 bugs that came up, at the end of the summer. All but 3 are fixed. The changes are checked in to the jnetpcap/branches/branch-1.3.1 SVN branch and I do have test builds I have been letting testers to download for testing purposes.

Bug#DescriptionStatus
3414030Wrong header length on truncated packetsAccepted Fixed
3413081Semaphore exception in DispatchGCFixed
3407676Invalid TCP option throws exceptionFixed
3406732Excessive garbagecollection&negative reserved memFixed
3401623IllegalStateException out of nowhereFixed
3401549BufferUnderflowExceptionFixed
3394110improperly escaped quotes in xml outputFixed
3392593glibc detected double free or corruptionFixed
3383751JFlowKey compare problemAccepted
3321797Tcp.Flag.asSet() messes flags upAccepted

For detailed status on each of these click here.

If anyone would like to help out testing, send us an email to support@slytechs.com or use the websites contact form.

GXLib extension

As part of the new memory model, we tried to stay consistent with existing standards. The new memory model being implemented is partly based on glib library (available on all platforms.) Glib's superior memory allocation algorithm and portable multi-threading features turned out be essential in making jNetPcap 2.0 possible.

However we had to add a glib extension called GXLib which adds reference counting to allocated memory. This is a pure C implementation and does not rely on glib's object API.

So here is a link to the public API documantation for this pure native library:

http://slytechs.com/products/gxlib

The library is not currently available for download, as its still be tested, but it was developed to be a standalone dll/so. All new APIs and implementations are being developed from now on, as more or less standalone libraries that work together and provide additional capabilities.