All notable changes to this project will be documented in this file.
- Adding dll search path for Npcap. #295
- Fix typo #293
- Pcap.compile returns
PacketFilter
. - Pcap.setFilter by compiled
PacketFilter
.
- Improve IP checksum calculation.
- Improve hex to bytes.
- Remove deprecated Arrays.toString(..).
- Init null buffer on pcap.next(..).
- Set new poll file descriptor during cancellation on Unix.
-
Bump log4j2 from 2.17.0 to 2.17.1.
-
Javadocs fixes.
-
Add BPF filter.
-
Add logback-classic and log4j-core into maven BOM.
-
Unreflect constructor for casting buffer to packet classes.
-
PacketBuffer null check params.
-
Remove incubating annotation for enhance I/O multiplexer.
-
Accessing closed handle should throw exception.
-
Fix capacity of generated buffer from capture handle.
-
Fix pcap_dump buffer size validation.
-
Use String::format(..) instead of concatenate with
+
. -
Use pcap-common logging instead of jdk logger.
-
Use Arrays.asList(..) insetead new ArrayList(..) for getFieldOrders().
- Fix Slf4j module name.
- Remove incubating annotation for equals and hashCode (Fixed: force non-readable buffer to return false).
-
Use String#compareTo instead of String#equals for creating Service.
-
Remove incubating annotation on restricted methods.
-
Fix IPv4 TTL.
-
Fix IPv4 checksum offset (#149).
-
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.
-
Add SLL (incubating) and NULL/Loopback (incubating) codec.
-
Add incubating Selection.
- Remove @Incubating (AbstractPacket, Ethernet, Ip4, Ip6, Udp, Tcp, PacketBuffer#cast).
- Add equals() and hashCode() to reference objects.
- Use function mapping (method proxy) for some native method instead of direct mapping for backward compatibility (java only not on native library).
- Remove strong object reference if the buffer object is GC'ed.
- I/O multiplexor.
- Add NoSuchSelectableException.
- Use NoSuchSelectableException on Selector#select(..) instead of NoSuchElementException.
- Remove object reference if the object is GC'ed.
- Fix dumper.
- Backward compatibility for pcap_setmintocopy(..) and update error message (java only not on native library).
- Validate packet header and buffer size on pcap_dump.
- Fix pcap_inject on Windows.
- Update SPDX header copyright.
- 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).
- Fix TCP maximum data offset value.
- Initial release.