Skip to content

Latest commit

 

History

History
192 lines (163 loc) · 9.38 KB

CHANGES.md

File metadata and controls

192 lines (163 loc) · 9.38 KB

Future

New Features

  • Add SSH2 support.
  • Add PPP (RFC1661, RFC1662) support.
  • Issues#28: Support Linux cooked-mode capture (SLL).
  • Pluggability for FragmentedPacket and IpV6ExtUnknownPacket.
  • Add raw packet capture APIs:
  • byte[] org.pcap4j.core.PcapHandle.getNextRawPacket()
  • byte[] org.pcap4j.core.PcapHandle.getNextRawPacketEx()
  • void org.pcap4j.core.PcapHandle.loop(int, RawPacketListener)
  • void org.pcap4j.core.PcapHandle.loop(int, RawPacketListener, Executor)
  • int org.pcap4j.core.PcapHandle.dispatch(int, RawPacketListener)
  • int org.pcap4j.core.PcapHandle.dispatch(int, RawPacketListener, Executor)

Bug Fixes

  • Fix a typo (flagment -> fragment) in org.pcap4j.packet.IpV4Packet.
  • IpV4Header#getFlagmentOffset() -> IpV4Header#getFragmentOffset()
  • Builder#flagmentOffset -> Builder#fragmentOffset
  • Change the serialization format of IpV4Packet and IpV4Header.

Other Changes

  • The property org.pcap4j.packet.Packet.classFor.unknownNumber is changed to org.pcap4j.packet.Packet.classFor.org.pcap4j.packet.namednumber.NotApplicable.0.
  • Change serialization formats:
  • org.pcap4j.packet.UnknownPacket
  • org.pcap4j.packet.FragmentedPacket

Release 1.3.0 (4-Oct-2014)

New Features

  • Pulls#23: Add support for a data link type DLT_RAW.

Bug Fixes

  • Issues#27: TCP timestamp options are not captured correctly.

Other Changes

  • Constructors and static factory methods of all packet classes and packet factory classes now have additional arguments offset and length to specify data range in rawData.

Release 1.2.3 (4-Aug-2014)

New Features

  • Optimize mutually exclusive executions of methods in PcapHandle and PcapDumper.
  • Improve performance of PcapHandle#getStats().

Bug Fixes

  • Fix a bug in PcapHandle#listDatalinks().

Other Changes

  • PcapHandle#breakLoop() now throws NotOpenException.

Release 1.2.2 (31-Jul-2014)

New Features

  • Improved performance of PcapHandle#loop(), PcapHandle#getNextPacket(), and PcapHandle#getNextPacketEx().

Bug Fixes

Other Changes

Release 1.2.1 (4-Jul-2014)

New Features

Bug Fixes

  • org.pcap4j.core.PcapStat#getNumPacketsCaptured() doesn't return a valid value even on Windows.

Other Changes

  • Change a method name from org.pcap4j.core.PcapHandle#getStat() to getStats().

Release 1.2.0 (16-May-2014)

New Features

  • Upgrade JNA to 4.10.
  • Issues#17: Add PcapHandle.Builder, which internally uses pcap_create, pcap_set_snaplen, pcap_set_promisc, pcap_set_rfmon, pcap_set_timeout, pcap_set_buffer_size, and pcap_activate.
  • Issues#15: TSO support.
  • Add getTargetClass(N number) and getTargetClass() to org.pcap4j.packet.factory.PacketFactory.
  • Support TCP Window Scale option, TCP Sack-Permitted option, TCP Sack option, and TCP Timestamps option.

Bug Fixes

  • Change required libpcap version from 0.9.3 to 1.0.0 to solve Issues#16.
  • Issues#14: Fix some getters of Inet4Address and Inet6Address which cause endless recursion --> stack overflow.
  • Issues#18: Fix a bug where freed pointer may be accessed.
  • Issues#21: Fix VLAN ID discovery by Dot1qVlanTagPacket class.

Other Changes

  • Required Java version changes from 5 to 6.
  • Change org.pcap4j.packet.IllegalRawDataException to checked exception.
  • Change serialization formats:
  • Change org.pcap4j.packet.IllegalRawDataException
  • Make compareTo methods of NamedNumber's subclasses more reasonable.

Release 1.1.0 (7-Mar-2014)

New Features

  • Issues#2: Add FreeBSD support.
  • Mac address discovery on Linux, Mac OS X, and FreeBSD.
  • Add properties; org.pcap4j.af.inet, org.pcap4j.af.inet6, org.pcap4j.af.packet and org.pcap4j.af.link to specify address family numbers.

Bug Fixes

  • Issues#11: Correct IP address discovery on Mac OS X.

Other Changes

  • Change org.pcap4j.packet.AbstractPacket.measureLength() to org.pcap4j.packet.AbstractPacket.calcLength()
  • Change org.pcap4j.packet.AbstractPacket.AbstractHeader.measureLength() to org.pcap4j.packet.AbstractPacket.AbstractHeader.calcLength()
  • Change the return value of org.pcap4j.util.PropertiesLoader#getInteger() from int to Integer.
  • Change serialization formats:
  • org.pcap4j.util.MacAddress

Release 1.0.0 (20-Jun-2013)

New Features

  • Add pcap APIs support: pcap_setnonblock, pcap_getnonblock, lookupNet, dispatch, pcap_compile_nopcap, pcap_compile, pcap_freecode, pcap_snapshot, pcap_is_swapped, pcap_major_version, pcap_minor_version, pcap_stats, pcap_dump_ftell, pcap_list_datalinks, pcap_free_datalinks, pcap_set_datalink, pcap_datalink_name_to_val, pcap_datalink_val_to_name, pcap_datalink_val_to_description, pcap_strerror, pcap_lib_version, pcap_dump_flush
  • Issues#10: Add Ubuntu support.
  • Add getReturnCode method to PcapNativeException.
  • Issues#3: Change to a multi-module project.

Bug Fixes

  • Fix org.pcap4j.packet.IpV6NeighborDiscoveryPrefixInformationOption#getRawData() to return correct prefixLength.
  • Fix invalid properties for IPv4 Internet TimestampOption.
  • Fix org.pcap4j.core.Pcaps.openDead() to return opened PcapHandle.

Other Changes

  • Modify org.pcap4j.core.PcapHandle and org.pcap4j.core.PcapDumper to throw NotOpenException instead of IllegalStateException.
  • Change a package of class: org.pcap4j.core.PcapHandle.BpfCompileMode -> org.pcap4j.core.BpfProgram.BpfCompileMode
  • Change class names:
  • org.pcap4j.packet.UnknownIpV4InternetTimestampData -> org.pcap4j.packet.UnknownIpV4InternetTimestampOptionData
  • org.pcap4j.packet.factory.PropertiesBasedIpV4InternetTimestampDataFactory -> org.pcap4j.packet.factory.PropertiesBasedIpV4InternetTimestampOptionDataFactory
  • Change method names:
  • org.pcap4j.core.Pcaps.getNifByName(String) -> org.pcap4j.core.Pcaps.getDevByName(String)
  • org.pcap4j.core.Pcaps.getNifByAddress(InetAddress) -> org.pcap4j.core.Pcaps.getDevByAddress(InetAddress)
  • Delete obsolete classes:
  • org.pcap4j.packet.factory.IpV4TosFactories
  • org.pcap4j.packet.factory.IpV4TosFactory
  • org.pcap4j.packet.factory.IpV6FlowLabelFactories
  • org.pcap4j.packet.factory.IpV6FlowLabelFactory
  • org.pcap4j.packet.factory.IpV6TrafficClassFactories
  • org.pcap4j.packet.factory.IpV6TrafficClassFactory
  • org.pcap4j.packet.factory.ClassifiedDataFactories
  • org.pcap4j.packet.factory.ClassifiedDataFactoriy

Release 0.9.15 (29-May-2013)

New Features

  • Add ICMPv6(RFC4443, RFC4861) support.

Bug Fixes

Other Changes

  • Change class names:
  • org.pcap4j.core.PcapIpv4Address -> org.pcap4j.core.PcapIpV4Address
  • org.pcap4j.core.PcapIpv6Address -> org.pcap4j.core.PcapIpV6Address
  • Change property names:
  • org.pcap4j.packet.icmpv4.calcChecksumAtBuild -> org.pcap4j.packet.icmpV4.calcChecksumAtBuild
  • org.pcap4j.packet.ipv4.calcChecksumAtBuild -> org.pcap4j.packet.ipV4.calcChecksumAtBuild
  • org.pcap4j.packet.tcpv4.calcChecksumAtBuild -> org.pcap4j.packet.tcpV4.calcChecksumAtBuild
  • org.pcap4j.packet.udpv4.calcChecksumAtBuild -> org.pcap4j.packet.udpV4.calcChecksumAtBuild
  • org.pcap4j.packet.tcpv6.calcChecksumAtBuild -> org.pcap4j.packet.tcpV6.calcChecksumAtBuild
  • org.pcap4j.packet.udpv6.calcChecksumAtBuild -> org.pcap4j.packet.udpV6.calcChecksumAtBuild
  • Change serialization formats:
  • org.pcap4j.packet.IcmpV4CommonPacket
  • org.pcap4j.packet.IcmpV4CommonPacket.IcmpV4CommonHeader
  • org.pcap4j.packet.IcmpV4DestinationUnreachablePacket
  • org.pcap4j.packet.IcmpV4DestinationUnreachablePacket.IcmpV4DestinationUnreachableHeader
  • org.pcap4j.packet.IcmpV4ParameterProblemPacket
  • org.pcap4j.packet.IcmpV4ParameterProblemPacket.IcmpV4ParameterProblemHeader
  • org.pcap4j.packet.IcmpV4RedirectPacket
  • org.pcap4j.packet.IcmpV4RedirectPacket.IcmpV4RedirectHeader
  • org.pcap4j.packet.IcmpV4SourceQuenchPacket
  • org.pcap4j.packet.IcmpV4SourceQuenchPacket.IcmpV4SourceQuenchHeader
  • org.pcap4j.packet.IcmpV4TimeExceededPacket
  • org.pcap4j.packet.IcmpV4TimeExceededPacket.IcmpV4TimeExceededHeader
  • Move invoking packet from header to payload:
  • org.pcap4j.packet.IcmpV4DestinationUnreachablePacket
  • org.pcap4j.packet.IcmpV4ParameterProblemPacket
  • org.pcap4j.packet.IcmpV4RedirectPacket
  • org.pcap4j.packet.IcmpV4SourceQuenchPacket
  • org.pcap4j.packet.IcmpV4TimeExceededPacket

Release 0.9.14 (13-Apr-2013)

New Features

  • The first release to the Maven Central Repository.
  • Issues#4: JNA 3.5+ Support. - @kaitoy

Bug Fixes