Compare commits

..

No commits in common. "9f1de3eedfe40459787e24080e588b2ed6886b44" and "df20dc2b51041a4d68df782c9ace9be4d1ecb711" have entirely different histories.

5 changed files with 5 additions and 71 deletions

Binary file not shown.

View File

@ -1,20 +0,0 @@
--- ./src/nettest_omni.c.bak 2021-08-03 17:12:46.083392014 +0800
+++ ./src/nettest_omni.c 2021-08-03 17:13:38.299856016 +0800
@@ -456,15 +456,13 @@
/* different options for the sockets */
-int
+extern int
loc_nodelay, /* don't/do use NODELAY locally */
rem_nodelay, /* don't/do use NODELAY remotely */
loc_sndavoid, /* avoid send copies locally */
loc_rcvavoid, /* avoid recv copies locally */
rem_sndavoid, /* avoid send copies remotely */
- rem_rcvavoid; /* avoid recv_copies remotely */
-
-extern int
+ rem_rcvavoid, /* avoid recv_copies remotely */
loc_tcpcork,
rem_tcpcork,
local_connected,

View File

@ -2,16 +2,13 @@
Name: netperf
Version: 2.7.0
Release: 7
Release: 3
Summary: A Performance benchmark testing tool fro TCP/UDP
License: MIT
License: HP no-commercial
URL: http://github.com/HewlettPackard/netperf
Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz
Patch1: netperf-fix-multiple-definition.patch
Patch2: netserver-suppress-debug-log-by-default.patch
BuildRequires: gcc texinfo texinfo-tex
BuildRequires:texinfo texinfo-tex
%description
netperf is a collection of many different network performance benchmarking tools
@ -19,12 +16,10 @@ netperf is a collection of many different network performance benchmarking tool
%package_help
%prep
%setup -q -n %{name}-%{name}-%{version}
%patch1
%patch2
%setup -q
%build
%configure
%configure
%{__make} %{_smp_mflags}
%install
@ -55,18 +50,6 @@ netperf is a collection of many different network performance benchmarking tool
%{_mandir}/man1/*
%changelog
* Thu Apr 18 2024 baiguo <baiguo@kylinos.cn> - 2.7.0-7
- netserver: suppress debug log by default
* Fri Nov 11 2022 xu_ping <xuping33@h-partners.com> - 2.7.0-6
- change source pac
* Wed Aug 4 2021 shdluan <shdluan@163.com> - 2.7.0-5
- fix multiple defination of variable
* Thu Jun 03 2021 zhaoyao <zhaoyao32@huawei.com> - 2.7.0.-4
- fixs failed: gcc command not found.
* Sat Sep 26 2020 hushiyuan <hushiyuan@huawei.com> - 2.7.0-3
* Delete install-info in post and preun

View File

@ -1,4 +0,0 @@
version_control:github
src_repo:HewlettPackard/netperf
tar_prefix: "^netperf-"
seperator: "."

View File

@ -1,25 +0,0 @@
From ef83b1fda6a95a675f60e4d01ecbdf9d4f9d7fd2 Mon Sep 17 00:00:00 2001
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Date: Thu, 18 Apr 2024 21:01:19 +0800
Subject: [PATCH] netserver: suppress debug log by default
---
src/netserver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git ./src/netserver.c ./src/netserver.c
index 9534722..b8b8c49 100644
--- ./src/netserver.c
+++ ./src/netserver.c
@@ -196,7 +196,7 @@ int daemon_parent = 0;
int not_inetd;
int want_daemonize;
int spawn_on_accept;
-int suppress_debug = 0;
+int suppress_debug = 1;
extern char *optarg;
extern int optind, opterr;
--
2.27.0