Debian Patches

Status for ngrep/1.47+ds1-5

Patch Description Author Forwarded Bugs Origin Last update
configure-typo.diff no
libnet11.diff no
man-fixes.diff no
pcre2.diff commit cfcf1e6e9c4f8a2404810d8d1d90e6d1eaa0abdd

Port to PCRE2 API and enable JIT compilation

The original PCRE API provided on most systems by libpcre3 is no longer
maintained upstream and is superseded by the new PCRE2 API, which was
first released in 2015. pcre3 will be removed from Debian in 2023, as
noted in this bug report: https://bugs.debian.org/1000080

This commit replaces the existing PCRE implementation with a new one
using PCRE2, which is quite similar. One benefit is that PCRE2 provides
a JIT compiler which can replace the interpretive regular expression
evaluation code with native machine code on most modern platforms:
https://pcre.org/current/doc/html/pcre2jit.html

Depending on the length and complexity of the pattern used, enabling JIT
compilation makes Ngrep 50x to 150x faster, testing in quiet mode on a
multi-gigabyte PCAP file stored on tmpfs.

diff --git a/configure.in b/configure.in
index dbef39bcf5..0806a62066 100644
Romain Francoise <romain@rfr.io> no 2021-11-20
build-fixes.diff commit 8fc250f1d3a3b1a7a9451edd2d3750e92d0b3605

Fix various build warnings and minor problems

diff --git a/ngrep.c b/ngrep.c
index dcf05551ad..7c0b6c7294 100644
Romain Francoise <romain@rfr.io> no 2021-11-20

All known versions for source package 'ngrep'

Links