pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/ndpi



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Jun 29 18:03:17 UTC 2023

Modified Files:
        pkgsrc/net/ndpi: Makefile distinfo
        pkgsrc/net/ndpi/patches: patch-src_lib_Makefile.in

Log Message:
ndpi: updated to 4.6

nDPI 4.6

New Features

New support for custom BPF protocol definition using nBPF (see example/protos.txt)
Improved dissection performance
Added fuzzing all over
New Supported Protocols and Services

Add protocol detection for:
Activision
AliCloud server access
AVAST
CryNetwork
Discord
EDNS
Elasticsearch
FastCGI
Kismet
Line App and Line VoIP calls
Meraki Cloud
Munin
NATPMP
Syncthing
TP-LINK Smart Home
TUYA LAN
SoftEther VPN
Tailscale
TiVoConnect
Improvements

Improve protocol detection for:
Anydesk
Bittorrent (fix confidence, detection over TCP)
DNS, add ability to decode DNS PTR records used for reverse address resolution
DTLS (handle certificate fragments)
Facebook Voip calls
FastCGI (dissect PARAMS)
FortiClient (update default ports)
Zoom
Add Zoom screen share detection
Add detection of Zoom peer-to-peer flows in STUN
Hangout/Duo Voip calls detection, optimize lookups in the protocol tree
HTTP
Handling of HTTP-Proxy and HTTP-Connect
HTTP subclassification
Check for empty/missing user-agent in HTTP
IRC (credentials check)
Jabber/XMPP
Kerberos (support for Krb-Error messages)
LDAP
MGCP
MONGODB (avoid false positives)
Postgres
POP3
QUIC (support for 0-RTT packets received before the initial)
Snapchat Voip calls
SIP
SNMP
SMB (support for messages split into multiple TCP segments)
SMTP (support for X-ANONYMOUSTLS command)
STUN
SKYPE (improve detection over UDP, remove detection over TCP)
Teamspeak3 (License/Weblist detection)
Threema Messenger
TINC (avoid processing SYN packets)
TLS
improve reassembler
handling of ALPN(s) and subclassification
ignore invalid Content Type values
WindowsUpdate
Add flow risk:
NDPI_HTTP_OBSOLETE_SERVER
NDPI_MINOR_ISSUES (generic/relevant information about issues found on traffic)
NDPI_HTTP_OBSOLETE_SERVER (Apache and nginx are supported)
NDPI_PERIODIC_FLOW (reserved bit to be used by apps based on nDPI)
NDPI_TCP_ISSUES
Improve detection of WebShell and PHP code in HTTP URLs that is reported via flow risk
Improve DGA detection
Improve AES-NI check
Improve nDPI JSON serialization
Improve export/print of L4 protocol information
Improve connection refused detection
Add statistics for Patricia tree, Ahocarasick automa, LRU cache
Add a generic (optional and configurable) expiration logic in LRU caches
Add RTP stream type in flow metadata
LRU cache is now IPv6 aware
Tools

ndpiReader
Add support for Linux Cooked Capture v2
Fix packet dissection (CAPWAP and TSO)
Fix Discarded bytes statistics
Fixes

Fix classification by-port
Fix exclusion of DTLS protocol
Fix undefined-behaviour in ahocorasick callback
Fix infinite loop when a custom rule has port 65535
Fix undefined-behavior when setting empty user-agent
Fix infinite loop in DNS dissector (due to an integer overflow)
Fix JSON export of IPv6 addresses
Fix memory corruptions in Bittorrent, HTTP, SoftEther, Florensia, QUIC, IRC, TFTP dissectors
Fix stop of extra dissection in HTTP, Bittorrent, Kerberos
Fix signed integer overflow in ASN1/BER dissector
Fix char/uchar bug in ahocorasick
Fix endianess in IP-Port lookup
Fix FastCGI memory allocation issue
Fix metadata extraction in NAT-PMP
Fix invalid unidirectional traffic alert for unidirectional protocols (e.g. sFlow)
Misc

Support for Rocky Linux 9
Enhance fuzzers to test nDPI configurations, memory allocation failures, serialization/deserialization, algorithms and data structures
GitHub Actions: update to Node.js 16
Size of LRU caches is now configurable


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/net/ndpi/Makefile pkgsrc/net/ndpi/distinfo
cvs rdiff -u -r1.5 -r1.6 pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/ndpi/Makefile
diff -u pkgsrc/net/ndpi/Makefile:1.10 pkgsrc/net/ndpi/Makefile:1.11
--- pkgsrc/net/ndpi/Makefile:1.10       Mon Mar 28 19:24:14 2022
+++ pkgsrc/net/ndpi/Makefile    Thu Jun 29 18:03:17 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2022/03/28 19:24:14 adam Exp $
+# $NetBSD: Makefile,v 1.11 2023/06/29 18:03:17 adam Exp $
 
-DISTNAME=      nDPI-4.2
+DISTNAME=      nDPI-4.6
 PKGNAME=       ${DISTNAME:tl}
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=ntop/}
@@ -17,6 +17,7 @@ USE_TOOLS+=           autoconf automake gmake pkg
 GNU_CONFIGURE=         yes
 PKGCONFIG_OVERRIDE=    libndpi.pc.in
 MAKE_ENV+=             OS=${OPSYS}
+TEST_TARGET=           check
 
 # Portable types
 CFLAGS.SunOS+=         -Du_int8_t=uint8_t
Index: pkgsrc/net/ndpi/distinfo
diff -u pkgsrc/net/ndpi/distinfo:1.10 pkgsrc/net/ndpi/distinfo:1.11
--- pkgsrc/net/ndpi/distinfo:1.10       Mon Mar 28 19:24:14 2022
+++ pkgsrc/net/ndpi/distinfo    Thu Jun 29 18:03:17 2023
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.10 2022/03/28 19:24:14 adam Exp $
+$NetBSD: distinfo,v 1.11 2023/06/29 18:03:17 adam Exp $
 
-BLAKE2s (nDPI-4.2.tar.gz) = 21811cc94f7ce332fd620642025508f3fecd9f85fa9186c541f411d669d8c4e7
-SHA512 (nDPI-4.2.tar.gz) = c58b228b7de2b5fa111234bb065f9be259cd0282d0058f5985180aab6567c9a18e3453ce9062bd3c057a096ec3dfdc21b7c9680e0148e34af10f707530d853b8
-Size (nDPI-4.2.tar.gz) = 126559327 bytes
+BLAKE2s (nDPI-4.6.tar.gz) = 43db6d82a24789622f8afe1f18ba3dcd33f5eb92b76f23932732789f47e50937
+SHA512 (nDPI-4.6.tar.gz) = 12dd50eeaae0aa5c2e3c89cb53cdb9989036759bd900312d3875eaba296646c2e42be31dc2b003cbc2401ccef8fbf8d2e460b9a604d7bece360f17f937d60cad
+Size (nDPI-4.6.tar.gz) = 29705235 bytes
 SHA1 (patch-src_include_ndpi__includes.h) = db5da9ca24ecf32fd8c264e193af280814dc74c6
-SHA1 (patch-src_lib_Makefile.in) = 0d6bf73f502203d8f9f77872d65cfcf8611201ee
+SHA1 (patch-src_lib_Makefile.in) = 2f0dd8c5bacf1f1036bfb81b1139e48131122592

Index: pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in
diff -u pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in:1.5 pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in:1.6
--- pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in:1.5       Mon Mar 28 19:24:14 2022
+++ pkgsrc/net/ndpi/patches/patch-src_lib_Makefile.in   Thu Jun 29 18:03:17 2023
@@ -1,10 +1,10 @@
-$NetBSD: patch-src_lib_Makefile.in,v 1.5 2022/03/28 19:24:14 adam Exp $
+$NetBSD: patch-src_lib_Makefile.in,v 1.6 2023/06/29 18:03:17 adam Exp $
 
 Fix building on Darwin.
 
---- src/lib/Makefile.in.orig   2022-02-01 08:14:05.000000000 +0000
+--- src/lib/Makefile.in.orig   2023-02-01 17:29:59.000000000 +0000
 +++ src/lib/Makefile.in
-@@ -22,8 +22,15 @@ OBJECTS   = $(patsubst protocols/%.c, pr
+@@ -25,8 +25,15 @@ OBJECTS   = $(patsubst protocols/%.c, pr
  HEADERS   = $(wildcard ../include/*.h)
  NDPI_VERSION_MAJOR   = @NDPI_MAJOR@
  NDPI_LIB_STATIC      = libndpi.a
@@ -18,32 +18,32 @@ Fix building on Darwin.
 +NDPI_LIB_SHARED_SHORT= $(NDPI_LIB_SHARED_BASE).@NDPI_MAJOR@
 +endif
  NDPI_LIBS            = $(NDPI_LIB_STATIC) $(NDPI_LIB_SHARED)
+ USE_HOST_LIBGCRYPT   = @USE_HOST_LIBGCRYPT@
  
- ifneq ($(OS),Windows_NT)
-@@ -32,8 +39,7 @@ endif
+@@ -41,8 +48,7 @@ endif
  BUILD_MINGW                    = @BUILD_MINGW@
  
  ifeq ($(OS),Darwin)
 -CC=clang
 -SONAME_FLAG=
-+SONAME_FLAG=-install_name $(libdir)/${NDPI_LIB_SHARED}
++SONAME_FLAG=-install_name $(PREFIX)$(libdir)/${NDPI_LIB_SHARED}
  else
  ifneq ($(BUILD_MINGW),)
  NDPI_LIB_SHARED_BASE = libndpi
-@@ -54,7 +60,7 @@ $(NDPI_LIB_STATIC): $(OBJECTS)
+@@ -63,7 +69,7 @@ $(NDPI_LIB_STATIC): $(OBJECTS)
  $(NDPI_LIB_SHARED): $(OBJECTS)
-       $(CC) -shared -fPIC $(SONAME_FLAG) -o $@ $(LDFLAGS) $(OBJECTS) $(LIBS)
+       $(CC) -shared -fPIC $(CFLAGS) $(SONAME_FLAG) -o $@ $(LDFLAGS) $(OBJECTS) $(LIBS)
        ln -fs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE)
 -      ln -fs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
 +      ln -fs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_SHORT)
  
  %.o: %.c $(HEADERS) Makefile
        $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
-@@ -78,6 +84,6 @@ install: $(NDPI_LIBS)
-       mkdir -p $(DESTDIR)$(libdir)
-       cp $(NDPI_LIBS) $(DESTDIR)$(libdir)/
-       cp -P $(NDPI_LIB_SHARED_BASE) $(DESTDIR)$(libdir)/
--      cp -P $(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR) $(DESTDIR)$(libdir)/
-+      cp -P $(NDPI_LIB_SHARED_SHORT) $(DESTDIR)$(libdir)/
-       mkdir -p $(DESTDIR)$(includedir)
-       cp ../include/*.h $(DESTDIR)$(includedir)
+@@ -94,6 +100,6 @@ install: $(NDPI_LIBS)
+       mkdir -p $(DESTDIR)$(PREFIX)$(libdir)
+       cp $(NDPI_LIBS) $(DESTDIR)$(PREFIX)$(libdir)/
+       cp -P $(NDPI_LIB_SHARED_BASE) $(DESTDIR)$(PREFIX)$(libdir)/
+-      cp -P $(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR) $(DESTDIR)$(PREFIX)$(libdir)/
++      cp -P $(NDPI_LIB_SHARED_SHORT) $(DESTDIR)$(PREFIX)$(libdir)/
+       mkdir -p $(DESTDIR)$(PREFIX)$(includedir)
+       cp ../include/*.h $(DESTDIR)$(PREFIX)$(includedir)



Home | Main Index | Thread Index | Old Index