Skip to content

Latest commit

 

History

History
219 lines (115 loc) · 4.05 KB

CHANGES.md

File metadata and controls

219 lines (115 loc) · 4.05 KB

Changelog

All notable changes to this project will be documented in this file.

[1.5.1] - 2023-12-04

Added

  • Adding dll search path for Npcap. #295

Fixed

[1.5.0] - 2023-01-01

Added

  • Pcap.compile returns PacketFilter.
  • Pcap.setFilter by compiled PacketFilter.

Changed

  • Improve IP checksum calculation.
  • Improve hex to bytes.

Removed

  • Remove deprecated Arrays.toString(..).

[1.4.2] - 2022-09-13

Changed

  • Init null buffer on pcap.next(..).

Fixed

  • Set new poll file descriptor during cancellation on Unix.

[1.4.1] - 2021-12-31

Changed

  • Bump log4j2 from 2.17.0 to 2.17.1.

  • Javadocs fixes.

[1.4.0] - 2021-12-25

Added

  • Add BPF filter.

  • Add logback-classic and log4j-core into maven BOM.

Changed

  • Unreflect constructor for casting buffer to packet classes.

  • PacketBuffer null check params.

  • Remove incubating annotation for enhance I/O multiplexer.

Fixed

  • Accessing closed handle should throw exception.

  • Fix capacity of generated buffer from capture handle.

  • Fix pcap_dump buffer size validation.

[1.3.4] - 2021-11-15

Changed

  • Use String::format(..) instead of concatenate with +.

  • Use pcap-common logging instead of jdk logger.

  • Use Arrays.asList(..) insetead new ArrayList(..) for getFieldOrders().

Fixed

  • Fix Slf4j module name.

[1.3.3] - 2021-10-23

Changed

  • Remove incubating annotation for equals and hashCode (Fixed: force non-readable buffer to return false).

[1.3.2] - 2021-10-22

Changed

  • Use String#compareTo instead of String#equals for creating Service.

  • Remove incubating annotation on restricted methods.

Fixed

  • Fix IPv4 TTL.

  • Fix IPv4 checksum offset (#149).

[1.3.1] - 2021-05-22

Added

  • Add optional properties for character encoding when initializing library.

  • Add missing NULL/Loopback datalink type.

  • Add missing Sll datalink type.

  • Add @Restricted annotation (incubating).

  • Add restricted method such as PacketBuffer.memoryAddress and Selectable.id() annotated with @Restricted (incubating).

  • Add pcap interface flags.

  • Enhance Selector, reduce object creation, and support READ-WRITE operations.

[1.3.0] - 2021-05-02

Added

  • Add SLL (incubating) and NULL/Loopback (incubating) codec.

  • Add incubating Selection.

Changed

  • Remove @Incubating (AbstractPacket, Ethernet, Ip4, Ip6, Udp, Tcp, PacketBuffer#cast).

[1.2.2] - 2021-03-20

Added

  • Add equals() and hashCode() to reference objects.

Changed

  • Use function mapping (method proxy) for some native method instead of direct mapping for backward compatibility (java only not on native library).

[1.2.1] - 2021-03-12

Fixed

  • Remove strong object reference if the buffer object is GC'ed.

[1.2.0] - 2021-02-01

Added

  • I/O multiplexor.
  • Add NoSuchSelectableException.

Changed

  • Use NoSuchSelectableException on Selector#select(..) instead of NoSuchElementException.

[1.0.7] - 2021-03-12

Fixed

  • Remove object reference if the object is GC'ed.

[1.0.6] - 2021-01-30

Fixed

  • Fix dumper.

[1.0.5] - 2021-01-28

Changed

  • Backward compatibility for pcap_setmintocopy(..) and update error message (java only not on native library).

[1.0.4] - 2021-01-24

Changed

  • Validate packet header and buffer size on pcap_dump.

[1.0.3] - 2021-01-23

Fixed

  • Fix pcap_inject on Windows.
  • Update SPDX header copyright.

[1.0.2] - 2020-12-27

Changed

  • Only synchronize pcap_compile for before libpcap version 1.8.0.
  • Backward compatibility for immediate mode on Windows (pcap_setmintocopy, java only not on native library).
  • Backward compatibility for non blocking I/O (java only not on native library).

[1.0.1] - 2020-12-25

Fixed

  • Fix TCP maximum data offset value.

[1.0.0] - 2020-12-24

Added

  • Initial release.