mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-11 01:38:25 +02:00
iptraf-ng: Update to version 1.2.1
Update includes several fixes and enhancements. The full overview of changes are located in here --> https://github.com/iptraf-ng/iptraf-ng/blob/master/CHANGES . rvnamed has been merged into iptraf-ng. Fix division by zero patch has been merged into new version, patch is not needed anymore. logrotate configuration for iptraf-ng has been included. Signed-off-by: Erik Kapfer <ummeegge@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
74a8a84316
commit
aa4ed7637c
@@ -1,12 +0,0 @@
|
||||
diff -Nur iptraf-ng-1.1.4-orig/src/tcptable.c iptraf-ng-1.1.4/src/tcptable.c
|
||||
--- iptraf-ng-1.1.4-orig/src/tcptable.c 2013-07-23 15:06:11.000000000 +0200
|
||||
+++ iptraf-ng-1.1.4/src/tcptable.c 2013-08-28 19:10:33.000000000 +0200
|
||||
@@ -444,6 +444,8 @@
|
||||
size_t bufsize)
|
||||
{
|
||||
time_t interval = time(NULL) - entry->conn_starttime;
|
||||
+ if (interval < 1)
|
||||
+ interval = 1;
|
||||
|
||||
char rbuf[64];
|
||||
rate_print(entry->bcount / interval, rbuf, sizeof(rbuf));
|
||||
12
src/patches/iptraf-ng_set_path.patch
Normal file
12
src/patches/iptraf-ng_set_path.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -Nur iptraf-ng-1.2.1.orig/Makefile iptraf-ng-1.2.1/Makefile
|
||||
--- iptraf-ng-1.2.1.orig/Makefile 2020-09-15 14:44:55.118508574 +0000
|
||||
+++ iptraf-ng-1.2.1/Makefile 2020-09-15 14:45:22.828358457 +0000
|
||||
@@ -25,7 +25,7 @@
|
||||
ALL_LDFLAGS = $(LDFLAGS)
|
||||
STRIP ?= strip
|
||||
|
||||
-prefix = $(HOME)
|
||||
+prefix = /usr
|
||||
sbindir_relative = sbin
|
||||
sbindir = $(prefix)/$(sbindir_relative)
|
||||
mandir = $(prefix)/share/man
|
||||
Reference in New Issue
Block a user