From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 527bc5af18b7eefab2aac8f27a1c8be71c379b0f
Date: Fri, 30 Aug 2013 15:48:12 +0200 [thread overview]
Message-ID: <20130830134812.EABCA208D3@argus.ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2729 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via 527bc5af18b7eefab2aac8f27a1c8be71c379b0f (commit)
from 6ffa1bef03b981142217aecb02c6f00d4217a8ee (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 527bc5af18b7eefab2aac8f27a1c8be71c379b0f
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Fri Aug 30 15:43:30 2013 +0200
iptraf-ng: Fix FPE.
http://lists.ipfire.org/pipermail/development/2013-August/000420.html
https://bugzilla.ipfire.org/show_bug.cgi?id=10408
-----------------------------------------------------------------------
Summary of changes:
lfs/iptraf-ng | 3 ++-
src/patches/iptraf-ng-1.1.4-tcplog_flowrate_msg.patch | 12 ++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
create mode 100644 src/patches/iptraf-ng-1.1.4-tcplog_flowrate_msg.patch
Difference in files:
diff --git a/lfs/iptraf-ng b/lfs/iptraf-ng
index d049173..e962b2c 100644
--- a/lfs/iptraf-ng
+++ b/lfs/iptraf-ng
@@ -17,7 +17,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = iptraf-ng
-PAK_VER = 1
+PAK_VER = 2
DEPS = ""
@@ -63,6 +63,7 @@ $(subst %,%_MD5,$(objects)) :
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xzf $(DIR_DL)/$(DL_FILE)
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/iptraf-ng-1.1.4-tcplog_flowrate_msg.patch
cd $(DIR_APP) && ./configure \
--prefix=/usr
diff --git a/src/patches/iptraf-ng-1.1.4-tcplog_flowrate_msg.patch b/src/patches/iptraf-ng-1.1.4-tcplog_flowrate_msg.patch
new file mode 100644
index 0000000..24a6ce4
--- /dev/null
+++ b/src/patches/iptraf-ng-1.1.4-tcplog_flowrate_msg.patch
@@ -0,0 +1,12 @@
+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));
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2013-08-30 13:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130830134812.EABCA208D3@argus.ipfire.org \
--to=git@ipfire.org \
--cc=ipfire-scm@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox