Commit c2fbe606 authored by garciay's avatar garciay
Browse files

Rename JSon into GSon

Remove old JNetPcap library
parent 1a79f5fe
################################################################################
#
# Copyright (C) 2007-2010 Sly Technologies, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
################################################################################
jNetPcap Package
Change Log
== Release 1.3.0 (2011-04-01) ==
* Fixes
- Fixed Bug#3240888 - WinPcapSendQueue throws BufferUnderflow exception
- Fixed Bug#3226590 - Flow API not working
- Fixed Bug#3226577 - Constant Pcap.LOOP_INFINATE miss-spelled
- Fixed Bug#3220271 - AbstractMessageHeader parser fails
- Fixed Bug#3220200 - NullPtr exception in multi-threaded pcap capture
* No further changes. Code is production ready.
== Release 1.3.b4 (2010-12-15) ==
* Fixes
- Memory swings - Object finalization is replaced with java Reference
cleanup. Memory is now managed through Reference and
ReferenceQueue mechanism.
- Various performance optimizations in JMemory and JBuffer class. Optimized
memory allocation path in JMemoryPool for certain object
types.
- Fixed boundary check in Checksum calculation with truncated jumbo
Ethernet frames.
- Fixed an issue when an JMemory based object tried to peer to itself.
- Fixed JMemory resize issue.
- Fixed Bug#3108615 - Ethernet FCS - FCS calculation and various Ethernet
header APIs that check for presence of FCS field, allow
verification, calculation and setting of new FCS value.
* Added
- Added a new management class named DisposableGC which runs in
a background system thread and schedules native memory
cleanup.
- Added several system properties (nio.mx, nio.ms, nio.blocksize) which
affect native memory allocation, limits and DisposableGC
behavior.
- PcapPacket.peerAndScan - convenience method peering header and buffer
to a PcapPacket object. Implements certain optimizations
to perform the task faster.
* Changes
- Changed the format of the debug output for
PcapPacket.State.toDebugString() method. The output produced
is more tabular with a table heading on top.
- Removed no longer used classes and directories from source such as
tests/beta1.5, JReference class, JMemory.references field
* Non-code changes
- Added complete MANIFEST to jnetpcap.jar file, which describes version
information of the jNetPcap library being used.
- Changed the native and java library files names to not include full
version information. The versioning is now fully accomplished
through the use of jnetpcap root distribution directory
instead. This allows easier switching between different
versions of jNetPcap.
- Updated file headers which reflects the proper copyright and license
agreement (LGPL v3)
- Updated all javadoc comments and tags for all classes
== Release 1.3.b3 (2010-10-01) ==
* Fixes
- Bug#3078703 - JMemory.transferTo(ByteBuffer) (array version)
- Bug#3078704 - Debug message coming from Tcp header when options are parsed
* Removed
- org.jnetpcap.package.dissect - left over and unusable package intended for
the native dissector feature which has been removed from 1.3
release
- SipHandler interface - left over from analyzer feature that has been
removed from 1.3 release
* Modifications/Updates
- org.jnetpcap.protocol.voip - updated javadocs, cleaned up warnings on all
the classes in this package
== Release 1.3.b2 (2010-09-26) ==
* Fixes
- Bug#3062026 - Scanner.reloadAll() in JPacket.scan()
- Bug#3062029 - Memory leak in native scanner reloadAll() tables
- Bug#3062031 - @Bind method with multiple same headers, gets wrong header
- Bug#3062035 - AnnotatedMethod doesn't open up method access perm
- Bug#3062037 - Checksum.pseudoUDP coredumps on invalid headers
- Bug#3062050 - Main scanner loop processes 0 length headers
- Bug#3062053 - @Deprecated JPacket.getScanner method
- Bug#3065968 - Missing sendPacket(JBuffer) implementation
- Bug#3066662 - UDP header missing setter methods
- Bug#3066959 - VLAN definition incorrectly assumes 802.1d as next header
- Bug#2353774 - Tcp header incomplete - missing tcp options
- Bug#3067088 - Ip4.Timestamp incorrectly initialized
- Bug#3067096 - JPacket.toString() exceptions consume all output in progress
- Bug#2933449 - SIP PRACK Message dosn't recognized
- Bug#3018072 - Wrong scanning Sdp headers in Linux
== Release 1.3 final (2010-08-24) ==
* No code changes (b1 code thoroughly tested and deployed for several months)
* Various build script changes
- Added x86_64 builds
== Release 1.3.b1 (2010-04-05) ==
* Fixes
- Bug#2981951 - Intermittent crashes in scanner
- Bug#2978441 - JRegistry.addBinding(JBinding) not working
- Bug#2890736 - reopened bug ConcurrentModificationException in JMemoryPool
- Bug#2906021 - Ethernet trailer end up in last header payload
- Bug#2908252 - JFormatter invalid state after exception during format output
- Bug#2908513 - exception thrown by Checksum for truncated or recursive ICMP
headers.
* Added
- Added testcase for Bug#2899902 ( buffer underflow on 64-bit systems)
== Release 1.3.a1 (2009-11-06) ==
* Fixes
- Bug#2890773 - PcapPacketHandler invalid PcapHeader peer
- Bug#2890736 - JMemoryPool concurrent mod exception
- Bug#2890094 - JPacket.toHexdump doesn't work on unintialized packets
- Bug#2878768 - JMemoryPacket(int) constructor doesn't work
- Bug#2857282 - Ip4.destination(byte[]) setter uses incorrect offset
- Bug#2897714 - invalid (char *) to (int) conversion in packet_protocol.cpp
* Added
- Feature#2848659 - Add frame counter reset on JScanner
== No Official 1.2 stable release ==
* Notes
- Release 1.2 branch was deprecated and replaced with stable 1.3 branch
== Release 1.2.rc5 (2009-3-18) ==
* Fixes
- #2688877 - reported that debian package is missing .so soft link to .so.rc4
main lib file. Will add that link in post-install to debian
package control file
- #2648427 - PcapDumper.dump() core-dumps. A patch is available upon request.
- #2557009 - LLC header problem
* Added
- Pcap.loop() and Pcap.dispatch() variation to allow the user to supply
JScanner. This allows JScanner internal buffer size to be changed by the
user
- Added JPacket.setMemoryPool(). This allows the user to change the default
allocation block size of JMemoryPool for packets that are copied via the
constructor and transferTo() methods
- Added analyzer support for Tcp/Ip family of protocols. This includes Ip
fragment reassembly, tcp segment sequencing and reassembly as well
- Added Http and Html as CORE jnetpcap protocols supported by native scanner
* Changed
- Moved org.jnetpcap.packet.header package to new org.jnetpcap.protocol
package. Protocols are grouped into families of protocols, which are stored
under appropriate protocol suite sub-packages.
== Release 1.2.rc4 (2009-1-4) ==
* Fixes
- #2469209 - Ip6 CORE protocol missing scanner
- #2469205 - Unchecked exceptions consumed in dispatch handlers
- #2469198 - PcapPacket.transferStateAndDataFrom(PcapPacket) not working
* Added
- JConfig class for managing configuration through properties
- Activated java's logging system for logging messages
- Address resolvers - resolve addresses and numbers to human labels such as
ip addresses to hostnames
* Changes
- Renamed annotation interface @FieldRuntime to @Dynamic
* TODO
- Mapped fields for protocols such as Http and SIP
== Release 1.2.rc3 (2008-12-22) ==
* Update to 1.2.rc2
* Fixes
- #2458371 - Serious memory leak in JMemory
- #2458376 - Invalid class name for an exception being thrown from JNI code
* Added
- Protocol to protocol binding and registration
- Protocol header annotations; makes protocol definitions much cleaner and
easier to write
- Protocols/java directory with some - new non core protocols being released;
Http and Html headers are included
- Added several static methods to JMemory class which report on native memory
usage for jNetPcap library; since native memory is not reported in any JRE
statictics, the user can rely on these JMemory methods for monitoring
native memory usage
- Added several getter methods to JBuffer class that retrieve UTF8 strings in
raw buffers
* Changes
- Main JNI scanner LOOP has been slightly rewritten to take advantage of
JHeaderScanner java objects, their bidnings and user written scanners
* TODO
- JField class still needs more cleanup; JFieldRuntime needs to be removed
completely
- Formatting styles for field values need to be redone; currently too limited
in functionality
- Add exception hooks; exception hooks rewrite exceptions being thrown to
include a lot more debug information that is useful when debugging a
protocol
== Release 1.2.rc2 (2008-12-06) ==
* Update to 1.2.rc1 released on 2008-11-24
* Fixed
- Fixed PcapPacket and JPacket class APIs
- Fixed various memory related issues found with JMemory
* Added
- Added sub-header capabilities to JHeader and formatters
- Added all Ip options to Ip4 header definition
- Added all missing ICMP sub-header types
* Known Issues
- TCP header definition is missing its optional sub-headers
- Java binding overrides are implemented but still not fully tested
- Numerous javadoc typos and blank type comments
== Release 1.2 (2008-11-24) ==
* Feature release
* Added
- #2292402 - Packet decoding framework
- #2292455 - Memory management
- #2292464 - Add a function to acquire network interface MAC address
- #2292515 - Simplify capturing packets in multi-threaded environment
- #2321006 - Deprecate: PcapHandler
- #2321014 - Deprecate: PcapPktHdr
- #2321017 - Deprecate: PcapInteger
- #2321024 - Deprecate: certain loop, dispatch functions
* Bugs
- #2219738 - WinPcap.sendQueue ignores its parameter.
WinPcapSendQueue(int size) constructor was ignoring size
parameter and using a constant.
- #2219729 - Memory leak in Pcap.loop().
Memory leak in Pcap.loop method. Local JNI references were
accumulating causing out of memory errors in Pcap.loop when it
was set to loop forever.
== Release 1.1 (2008-06-19) ==
* Maintenance release
* Provides packages for: Fedora Core 8 (Linux), Debian 4 (Linux), Win32 (WinXP/Vista)
* NO BUG FIXES - no bugs reported from the time of previous release
== Release 1.0 (2007-12-21) ==
* First production release
* Bug #1855589 - Win32 isInjectSupported returned incorrect value
== Release 1.0b4 (2007-08-21) ==
* Linux support
* Bug #1776380 - PcapBpfProgram exceptions on linux platform
* Added
- Pcap.inject, Pcap.isSendPacketSupported, Pcap.isInjectPacketSupported,
Pcap.lookupDev, Pcap.lookupNet
== Release 1.0b3 ==
* No bugs found or reported since previous release
* Additions to org.jnetpcap package
- All core 'libpcap' functions
- PcapClosedException, PcapExtensionNotAvailableException exceptions
* Addtions of and to jnetpcap.org.winpcap package - WinPcap extensions
+ Nearly all WinPcap based functions, very few exceptions
* Removed "commons-logging" dependency. Static initializers throw appropriate
exceptions directly during initialization failure.
== Release 1.0b2 ==
* Bug #1767744 - PcapHandler object ptr error in loop() and dispatch()
This is a critical bug, where PcapHandler objects clobers the
parent Pcap object data after invocation through loop() or
dispatch() method.
* Add a number of int constants to Pcap.java class to represent various return
codes, flags, and mode settings. Each constant has detailed explanation of
its usage and where it is be applicable.
* openLive() method will now also return "warning" messages in errbuf, even if
result code from the OK was 0, meaning no error had occured, as per pcap
specification.
* Possible issue uncovered, but not fixed in this release.
- setting the snaplen value on openLinve() call does not seem to cause a
return of a truncated packet buffer from next(), nextEx(), dispatch() or
loop(). The buffer always contains the entire packet. Significant
debugging effort does not point to a bug in jNetPcap software but in
underlying WinPcap library. This could be in issue with particular Network
Interface Card in use. The issue is still under investigation, but the fix
to critical bug #1767744 can not be delayed.
== Release 1.0b1 ==
* Initial release
This diff is collapsed.
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall