Mark Bednarczyk's blog

JMemory 2.0

com.slytechs.librarycom.slytechs.nioorg.jnetpcap.niocom.slytechs.nio

Status - Jan 25

I'm working on putting Solaris and FreeBSD platforms back in 1.4 codebase.

New library management package

I'm putting finishing touches on a new system library management package that allows native libraries to be handled better. The package com.slytechs.library facilitates loading of libraries (just like System.loadLibrary), adds annotations to JNI based java API. Also allows checking of dependency symbols such as Pcap.openLive has a dependency on pcap_open_live function call in libpcap library. Individual symbols can now be inspected and verified that they exist.

New library management package

I'm putting finishing touches on a new system library management package that allows native libraries to be handled better. The package com.slytechs.library facilitates loading of libraries (just like System.loadLibrary), adds annotations to JNI based java API. Also allows checking of dependency symbols such as Pcap.openLive has a dependency on pcap_open_live function call in libpcap library. Individual symbols can now be inspected and verified that they exist.

Here is some output:

/* Load the new jnetpcap-pcap100.dll library */
JNILibrary lib = JNILibrary.loadLibrary("jnetpcap-pcap100");
assertNotNull(lib);
assertTrue(lib.errors.toString(), lib.isLoaded());

System.out.println(lib);

And the output:
jnetpcap-pcap100@0x62a80000[9 symbols
 jnetpcap-pcap100.dll::Java_org_jnetpcap_Pcap_activate()I@0x62a81326[wpcap.dll::pcap_activate@0x10016630]
 jnetpcap-pcap100.dll::Java_org_jnetpcap_Pcap_setBufferSize(J)I@0x62a81372[wpcap.dll::pcap_set_buffer_size@0x100165f0]
 jnetpcap-pcap100.dll::Java_org_jnetpcap_Pcap_canSetRfmon()I@0x62a81366[pcap_can_set_rfmon!NOT_FOUND]
 jnetpcap-pcap100.dll::Java_org_jnetpcap_Pcap_setTimeout(I)I@0x62a81496[wpcap.dll::pcap_set_timeout@0x100165b0]
 jnetpcap-pcap100.dll::Java_org_jnetpcap_Pcap_create(Ljava/lang/String;Ljava/lang/StringBuilder;)Lorg/jnetpcap/Pcap;@0x62a81190[wpcap.dll::pcap_create@0x10016240]
 jnetpcap-pcap100.dll::Java_org_jnetpcap_Pcap_setSnaplen(I)I@0x62a81450[wpcap.dll::pcap_set_snaplen@0x10016530]
 jnetpcap-pcap100.dll::Java_org_jnetpcap_Pcap_setPromisc(I)I@0x62a813fe[wpcap.dll::pcap_set_promisc@0x10016570]
 jnetpcap-pcap100.dll::Java_org_jnetpcap_Pcap_setDirection(I)I@0x62a813b8[wpcap.dll::pcap_setdirection@0x10016f10]
 jnetpcap-pcap100.dll::Java_org_jnetpcap_Pcap_setRfmon(I)I@0x62a81444[pcap_set_rfmon!NOT_FOUND]
]

jNetPcap 1.3.b4 (beta 4) - Released to Testers

We just released version 1.3.b4 (beta 4) to our testing community. The purpose of this release is to test the distribution packages to make sure everything is included in them, before uploading to public distribution servers. The beta 4 code has already been tested and verified to be working correctly within the testing community. We are just making sure we didn't forget to include anything in the various distribution packages (even though its almost fully automatic process.)

Syndicate content