1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 03:00:42 -04:00
ports/net/ntopng/files/patch-src_NetworkInterface.cpp
Guido Falsi a1b4f359a9 - Update ndpi to 2.6.d20181221
- Update ntopng to 3.8.d20181221
- Add USES=localbase to ndpi
- Silence portlint warnings
- Update WWW links
- Add UPDATING note about data directory change

nDPI changelog:
https://github.com/ntop/nDPI/blob/dev/CHANGELOG.md

ntopng changelog:
https://github.com/ntop/ntopng/blob/dev/CHANGELOG.md
2018-12-22 20:06:52 +00:00

14 lines
527 B
C++

--- src/NetworkInterface.cpp.orig 2018-12-21 18:58:17 UTC
+++ src/NetworkInterface.cpp
@@ -6772,7 +6772,11 @@ bool NetworkInterface::matchLiveCapture(struct ntopngL
|| (luactx->live_capture.matching_host == f->get_srv_host())) {
if(luactx->live_capture.bpfFilterSet) {
if(!bpf_filter(luactx->live_capture.fcode.bf_insns,
+#if __FreeBSD_version >= 1100514
(const u_char*)packet, h->caplen, h->caplen)) {
+#else
+ (u_char*)packet, h->caplen, h->caplen)) {
+#endif
return(false);
}
}