public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/dosdetector/, net-analyzer/dosdetector/files/
@ 2016-01-24  9:29 Jeroen Roovers
  0 siblings, 0 replies; only message in thread
From: Jeroen Roovers @ 2016-01-24  9:29 UTC (permalink / raw
  To: gentoo-commits

commit:     3f16d8f3bcd465ac83a2df982070f8653012d654
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 24 09:29:26 2016 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sun Jan 24 09:29:43 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f16d8f3

net-analyzer/dosdetector: Drop bzero calls with wrong size argument since calloc will do the zeroing anyway.

Package-Manager: portage-2.2.27

 .../dosdetector/dosdetector-20060621-r1.ebuild     | 23 ++++++++++++++++++++++
 .../files/dosdetector-20060621-sizeof.patch        | 11 +++++++++++
 2 files changed, 34 insertions(+)

diff --git a/net-analyzer/dosdetector/dosdetector-20060621-r1.ebuild b/net-analyzer/dosdetector/dosdetector-20060621-r1.ebuild
new file mode 100644
index 0000000..ba113ec
--- /dev/null
+++ b/net-analyzer/dosdetector/dosdetector-20060621-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Tool to analyze and detect suspicious traffic from IP and alert about it"
+HOMEPAGE="http://dark-zone.eu/resources/unix/dosdetector/"
+SRC_URI="http://dark-zone.eu/resources/unix/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="net-libs/libpcap"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+	epatch \
+		"${FILESDIR}"/${P}-isdigit.patch \
+		"${FILESDIR}"/${P}-sizeof.patch
+}

diff --git a/net-analyzer/dosdetector/files/dosdetector-20060621-sizeof.patch b/net-analyzer/dosdetector/files/dosdetector-20060621-sizeof.patch
new file mode 100644
index 0000000..aea9cfb
--- /dev/null
+++ b/net-analyzer/dosdetector/files/dosdetector-20060621-sizeof.patch
@@ -0,0 +1,11 @@
+--- a/src/main.c
++++ b/src/main.c
+@@ -306,8 +306,6 @@
+     hosts = calloc(2, sizeof(struct host));
+     rules = calloc(1, sizeof(struct rule));
+     rules_num = 0;
+-    bzero(hosts, sizeof(hosts));
+-    bzero(rules, sizeof(rules));
+ 
+     /* Init rules table */
+     if (init_rules(opt.rules) != 0) {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-24  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-24  9:29 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/dosdetector/, net-analyzer/dosdetector/files/ Jeroen Roovers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox