Date: Sat, 24 Feb 2024 10:10:31 +0100 From: Daniel Engberg <daniel.engberg.lists@pyret.net> To: Gleb Popov <arrowd@FreeBSD.org> Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: Re: git: 36c21f98ff44 - main - benchmarks/ttcp: Update to 1.13 Message-ID: <c3ddafc7035aca09ed4be08afec4baec@mail.infomaniak.com> In-Reply-To: <202402240847.41O8lN0C026751@gitrepo.freebsd.org> References: <202402240847.41O8lN0C026751@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--_=_swift_1708765831_baac66a2834ff01fd98eedf0631e7cc4_=_ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2024-02-24T09:47:23.000+01:00, Gleb Popov <arrowd@FreeBSD.org> wrote:= >=C2=A0The=C2=A0branch=C2=A0main=C2=A0has=C2=A0been=C2=A0updated= =C2=A0by=C2=A0arrowd: >=C2=A0 >=C2=A0URL:=C2=A0https://cgit.FreeBSD.org= /ports/commit/?id=3D36c21f98ff445e373ab61726ee8b64e02f8984f7 >=C2=A0 >= =C2=A0commit=C2=A036c21f98ff445e373ab61726ee8b64e02f8984f7 >=C2=A0 >= =C2=A0Author:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Chris=C2=A0Hutchinson=C2=A0<port= master@bsdforge.com> >=C2=A0 >=C2=A0AuthorDate:=C2=A02024-02-24=C2= =A008:43:41=C2=A0+0000 >=C2=A0 >=C2=A0Commit:=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0Gleb=C2=A0Popov=C2=A0<arrowd@FreeBSD.org> >=C2=A0 >=C2=A0Commi= tDate:=C2=A02024-02-24=C2=A008:46:30=C2=A0+0000 >=C2=A0 >=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0benchmarks/ttcp:=C2=A0Update=C2=A0to=C2=A01.13 >= =C2=A0 >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 >=C2=A0 >=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0PR:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0276759 >=C2=A0 >=C2=A0--- >=C2=A0 >=C2=A0= =C2=A0benchmarks/ttcp/Makefile=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A029=C2=A0++--- >=C2=A0 >=C2=A0= =C2=A0benchmarks/ttcp/distinfo=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A0=C2=A09=C2=A0+- >=C2=A0 >=C2=A0= =C2=A0benchmarks/ttcp/files/patch-ttcp.c=C2=A0|=C2=A0257=C2=A0-------------= ------------------------ >=C2=A0 >=C2=A0=C2=A0benchmarks/ttcp/pkg-plist= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2= =A0=C2=A03=C2=A0- >=C2=A0 >=C2=A0=C2=A04=C2=A0files=C2=A0changed,=C2= =A015=C2=A0insertions(+),=C2=A0283=C2=A0deletions(-) >=C2=A0 >=C2=A0dif= f=C2=A0--git=C2=A0a/benchmarks/ttcp/Makefile=C2=A0b/benchmarks/ttcp/Makefil= e >=C2=A0 >=C2=A0index=C2=A0364903c075df..32a074aa304f=C2=A0100644 >= =C2=A0 >=C2=A0---=C2=A0a/benchmarks/ttcp/Makefile >=C2=A0 >=C2=A0+++= =C2=A0b/benchmarks/ttcp/Makefile >=C2=A0 >=C2=A0@@=C2=A0-1,29=C2=A0+1,2= 4=C2=A0@@ >=C2=A0 >=C2=A0=C2=A0PORTNAME=3D=C2=A0=C2=A0=C2=A0=C2=A0ttcp= >=C2=A0 >=C2=A0-PORTVERSION=3D=C2=A0=C2=A0=C2=A0=C2=A01.12 >=C2= =A0 >=C2=A0-PORTREVISION=3D=C2=A0=C2=A0=C2=A0=C2=A03 >=C2=A0 >=C2= =A0+PORTVERSION=3D=C2=A0=C2=A0=C2=A0=C2=A01.13 >=C2=A0 >=C2=A0=C2=A0CAT= EGORIES=3D=C2=A0=C2=A0=C2=A0=C2=A0benchmarks=C2=A0net >=C2=A0 >=C2= =A0-MASTER_SITES=3D=C2=A0=C2=A0=C2=A0=C2=A0https://BSDforge.com/projects/so= urce/benchmarks/ttcp/ >=C2=A0 >=C2=A0-DISTFILES=3D=C2=A0=C2=A0=C2=A0= =C2=A0ttcp.c=C2=A0ttcp.1=C2=A0README >=C2=A0 >=C2=A0-DIST_SUBDIR=3D= =C2=A0=C2=A0=C2=A0=C2=A0${PORTNAME} >=C2=A0 >=C2=A0-EXTRACT_ONLY=3D= =C2=A0=C2=A0=C2=A0=C2=A0#=C2=A0none >=C2=A0 >=C2=A0+MASTER_SITES=3D= =C2=A0=C2=A0=C2=A0=C2=A0https://codeberg.org/BSDforge/${PORTNAME}/archive/= >=C2=A0 >=C2=A0=C2=A0 >=C2=A0 >=C2=A0=C2=A0MAINTAINER=3D=C2=A0= =C2=A0=C2=A0=C2=A0portmaster@BSDforge.com >=C2=A0 >=C2=A0=C2=A0COMMENT= =3D=C2=A0=C2=A0=C2=A0=C2=A0Benchmarking=C2=A0tool=C2=A0for=C2=A0analysing= =C2=A0TCP=C2=A0and=C2=A0UDP=C2=A0performance >=C2=A0 >=C2=A0-WWW=3D= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0https://ftp.arl.army.mil/~m= ike/ttcp.html >=C2=A0 >=C2=A0+WWW=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0https://codeberg.org/BSDforge/ttcp/ >=C2=A0 >=C2= =A0=C2=A0 >=C2=A0 >=C2=A0-LICENSE=3D=C2=A0=C2=A0=C2=A0=C2=A0PD >= =C2=A0 >=C2=A0+LICENSE=3D=C2=A0=C2=A0=C2=A0=C2=A0BSD0CLAUSE >=C2=A0 >= =C2=A0=C2=A0 >=C2=A0 >=C2=A0-DEPRECATED=3D=C2=A0=C2=A0=C2=A0=C2=A0Aband= onware,=C2=A0no=C2=A0release=C2=A0in=C2=A0over=C2=A020=C2=A0years.=C2=A0Con= sider=C2=A0using=C2=A0benchmarks/iperf3=C2=A0or=C2=A0benchmarks/nttcp >= =C2=A0 >=C2=A0-EXPIRATION_DATE=3D2024-02-29 >=C2=A0 >=C2=A0- >= =C2=A0 >=C2=A0-NO_WRKSUBDIR=3D=C2=A0=C2=A0=C2=A0=C2=A0yes >=C2=A0 >= =C2=A0+CFLAGS+=3D=C2=A0=C2=A0=C2=A0=C2=A0-Wno-strict-prototypes >=C2= =A0 >=C2=A0=C2=A0 >=C2=A0 >=C2=A0+PLIST_FILES=3D=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0bin/ttcp=C2=A0share/m= an/man1/ttcp.1.gz >=C2=A0 >=C2=A0+PORTDOCS_PLIST_FILES=3D=C2=A0=C2= =A0=C2=A0=C2=A0share/doc/ttcp/README=C2=A0share/doc/ttcp/CHANGES=C2=A0\ >= =C2=A0 >=C2=A0+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0share/doc/ttcp/LICENSE >=C2=A0 >=C2=A0+PORTDOCS=3D= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0README=C2=A0CHANGES=C2= =A0LICENSE >=C2=A0 >=C2=A0=C2=A0OPTIONS_DEFINE=3D=C2=A0=C2=A0=C2=A0= =C2=A0DOCS >=C2=A0 >=C2=A0- >=C2=A0 >=C2=A0+#=C2=A0because=C2=A0the= =C2=A0ports=C2=A0framework=C2=A0doesn't=C2=A0cope=C2=A0well=C2=A0with=C2= =A0bare=C2=A0${PORTNAME}=C2=A0${WRKSRC} >=C2=A0 >=C2=A0=C2=A0post-extra= ct: >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0${CP}=C2=A0${DISTDIR}/${DIS= T_SUBDIR}/ttcp.c=C2=A0${WRKSRC} >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0= =C2=A0${CP}=C2=A0${DISTDIR}/${DIST_SUBDIR}/ttcp.1=C2=A0${WRKSRC} >=C2= =A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0${CP}=C2=A0${DISTDIR}/${DIST_SUBDIR}/= README=C2=A0${WRKSRC} >=C2=A0 >=C2=A0+=C2=A0=C2=A0=C2=A0=C2=A0${MV}= =C2=A0${WRKDIR}/${PORTNAME}=C2=A0${WRKDIR}/${PORTNAME}-${PORTVERSION} >= =C2=A0 >=C2=A0=C2=A0 >=C2=A0 >=C2=A0=C2=A0do-build: >=C2=A0 >= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0${CC}=C2=A0${CFLAGS}=C2=A0-o=C2=A0${WRK= SRC}/ttcp=C2=A0${WRKSRC}/ttcp.c >=C2=A0 >=C2=A0@@=C2=A0-34,6=C2=A0+29,6= =C2=A0@@=C2=A0do-install: >=C2=A0 >=C2=A0=C2=A0 >=C2=A0 >=C2=A0= =C2=A0do-install-DOCS-on: >=C2=A0 >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0@${MKDIR}=C2=A0${STAGEDIR}${DOCSDIR} >=C2=A0 >=C2=A0-=C2=A0=C2=A0= =C2=A0=C2=A0${INSTALL_DATA}=C2=A0${WRKSRC}/README=C2=A0${STAGEDIR}${DOCSDIR= } >=C2=A0 >=C2=A0+=C2=A0=C2=A0=C2=A0=C2=A0${INSTALL_DATA}=C2=A0${PORTDO= CS:S,^,${WRKSRC}/,}=C2=A0${STAGEDIR}${DOCSDIR} >=C2=A0 >=C2=A0=C2=A0 = >=C2=A0 >=C2=A0=C2=A0.include=C2=A0<bsd.port.mk>=C2=A0[http://bsd.port.mk= >]; >=C2=A0 >=C2=A0diff=C2=A0--git=C2=A0a/benchmarks/ttcp/distinfo= =C2=A0b/benchmarks/ttcp/distinfo >=C2=A0 >=C2=A0index=C2=A03415da392dd6= ..20f0333e9396=C2=A0100644 >=C2=A0 >=C2=A0---=C2=A0a/benchmarks/ttcp/di= stinfo >=C2=A0 >=C2=A0+++=C2=A0b/benchmarks/ttcp/distinfo >=C2=A0 >= =C2=A0@@=C2=A0-1,6=C2=A0+1,3=C2=A0@@ >=C2=A0 >=C2=A0-SHA256=C2=A0(ttcp/= ttcp.c)=C2=A0=3D=C2=A0e630a95788efacfee226dff3550e58ed908987ef96817efc8ad48= 62657a60c3b >=C2=A0 >=C2=A0-SIZE=C2=A0(ttcp/ttcp.c)=C2=A0=3D=C2=A019170= >=C2=A0 >=C2=A0-SHA256=C2=A0(ttcp/ttcp.1)=C2=A0=3D=C2=A0edb5dbc156c065= 84d7a73b6ffdb0049dca1b819f0c79aa2289005d60acaddbc9 >=C2=A0 >=C2=A0-SIZE= =C2=A0(ttcp/ttcp.1)=C2=A0=3D=C2=A03885 >=C2=A0 >=C2=A0-SHA256=C2=A0(ttc= p/README)=C2=A0=3D=C2=A0a5c033bcfdcbca3cfe82c36b8c82d8b25d7bc1968a5a664f610= 52bfe31a1a531 >=C2=A0 >=C2=A0-SIZE=C2=A0(ttcp/README)=C2=A0=3D=C2=A0781= >=C2=A0 >=C2=A0+TIMESTAMP=C2=A0=3D=C2=A01706864630 >=C2=A0 >=C2= =A0+SHA256=C2=A0(ttcp-1.13.tar.gz)=C2=A0=3D=C2=A0809214c535175139897afba784= e2e6d1eff02efc3d7b90a67f1bb52fb5082027 >=C2=A0 >=C2=A0+SIZE=C2=A0(ttcp-= 1.13.tar.gz)=C2=A0=3D=C2=A010959 >=C2=A0 >=C2=A0diff=C2=A0--git=C2= =A0a/benchmarks/ttcp/files/patch-ttcp.c=C2=A0b/benchmarks/ttcp/files/patch-= ttcp.c >=C2=A0 >=C2=A0deleted=C2=A0file=C2=A0mode=C2=A0100644 >=C2= =A0 >=C2=A0index=C2=A0a055bfeef7ee..000000000000 >=C2=A0 >=C2=A0---= =C2=A0a/benchmarks/ttcp/files/patch-ttcp.c >=C2=A0 >=C2=A0+++=C2=A0/dev= /null >=C2=A0 >=C2=A0@@=C2=A0-1,257=C2=A0+0,0=C2=A0@@ >=C2=A0 >= =C2=A0----=C2=A0ttcp.c.orig=C2=A0=C2=A0=C2=A0=C2=A02016-07-27=C2=A015:06:14= =C2=A0UTC >=C2=A0 >=C2=A0-+++=C2=A0ttcp.c >=C2=A0 >=C2=A0-@@=C2= =A0-55,6=C2=A0+55,9=C2=A0@@=C2=A0static=C2=A0char=C2=A0RCSid[]=C2=A0=3D= =C2=A0"ttcp.c=C2=A0$Revision: >=C2=A0 >=C2=A0-=C2=A0#include=C2=A0<arpa= /inet.h> >=C2=A0 >=C2=A0-=C2=A0#include=C2=A0<netdb.h> >=C2=A0 >= =C2=A0-=C2=A0#include=C2=A0<sys/time.h>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0/*=C2=A0struct=C2=A0timeval=C2=A0*/ >=C2=A0 >=C2=A0-+#in= clude=C2=A0<unistd.h> >=C2=A0 >=C2=A0-+#include=C2=A0<string.h> >= =C2=A0 >=C2=A0-+#include=C2=A0<stdlib.h> >=C2=A0 >=C2=A0-=C2=A0 >= =C2=A0 >=C2=A0-=C2=A0#if=C2=A0defined(SYSV) >=C2=A0 >=C2=A0-=C2=A0#in= clude=C2=A0<sys/times.h> >=C2=A0 >=C2=A0-@@=C2=A0-133,7=C2=A0+136,7= =C2=A0@@=C2=A0double=C2=A0cput,=C2=A0realt;=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0/*=C2=A0user,=C2=A0real=C2=A0time=C2=A0 >=C2=A0 >= =C2=A0-=C2=A0 >=C2=A0 >=C2=A0-=C2=A0void=C2=A0err(); >=C2=A0 >= =C2=A0-=C2=A0void=C2=A0mes(); >=C2=A0 >=C2=A0--int=C2=A0pattern(); >= =C2=A0 >=C2=A0-+void=C2=A0pattern(); >=C2=A0 >=C2=A0-=C2=A0void=C2= =A0prep_timer(); >=C2=A0 >=C2=A0-=C2=A0double=C2=A0read_timer(); >= =C2=A0 >=C2=A0-=C2=A0int=C2=A0Nread(); >=C2=A0 >=C2=A0-@@=C2=A0-147,6= =C2=A0+150,7=C2=A0@@=C2=A0sigpipe() >=C2=A0 >=C2=A0-=C2=A0{ >=C2= =A0 >=C2=A0-=C2=A0} >=C2=A0 >=C2=A0-=C2=A0 >=C2=A0 >=C2=A0-+int= >=C2=A0 >=C2=A0-=C2=A0main(argc,argv) >=C2=A0 >=C2=A0-=C2=A0int= =C2=A0argc; >=C2=A0 >=C2=A0-=C2=A0char=C2=A0**argv; >=C2=A0 >=C2= =A0-@@=C2=A0-249,6=C2=A0+253,7=C2=A0@@=C2=A0char=C2=A0**argv; >=C2=A0 >= =C2=A0-=C2=A0#endif=C2=A0/*=C2=A0cray=C2=A0*/ >=C2=A0 >=C2=A0-=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0} >=C2=A0 >=C2=A0-= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0sinhim.sin_port=C2= =A0=3D=C2=A0htons(port); >=C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0sinme.sin_family=C2=A0=3D=C2=A0AF_INET;=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0/*=C2=A0Solaris=C2=A0needs=C2=A0this=C2=A0*/ >=C2= =A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0sinme.s= in_port=C2=A0=3D=C2=A00;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0/*= =C2=A0free=C2=A0choice=C2=A0*/ >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0}=C2=A0else=C2=A0{ >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0/*=C2=A0rcvr=C2=A0*/ >=C2=A0 >=C2=A0-@@= =C2=A0-263,29=C2=A0+268,31=C2=A0@@=C2=A0char=C2=A0**argv; >=C2=A0 >= =C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if=C2=A0(=C2=A0(buf=C2=A0=3D=C2=A0(cha= r=C2=A0*)malloc(buflen+bufalign))=C2=A0=3D=3D=C2=A0(char=C2=A0*)NULL) >= =C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0err(= "malloc"); >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if=C2=A0(bufal= ign=C2=A0!=3D=C2=A00) >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0buf=C2=A0+=3D(bufalign=C2=A0-=C2=A0((int)buf=C2=A0%= =C2=A0bufalign)=C2=A0+=C2=A0bufoffset)=C2=A0%=C2=A0bufalign; >=C2=A0 >= =C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0buf=C2=A0+=3D=C2= =A0(bufalign >=C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0-((unsigned=C2=A0long)buf=C2=A0%=C2= =A0bufalign) >=C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0+=C2=A0bufoffset)=C2=A0%=C2=A0bufalign;= >=C2=A0 >=C2=A0-=C2=A0 >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0if=C2=A0(trans)=C2=A0{ >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stdout, >=C2=A0 >=C2=A0-+=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stderr, >=C2=A0 >= =C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0"ttcp-t:=C2= =A0buflen=3D%d,=C2=A0nbuf=3D%d,=C2=A0align=3D%d/%d,=C2=A0port=3D%d", >= =C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0bufl= en,=C2=A0nbuf,=C2=A0bufalign,=C2=A0bufoffset,=C2=A0port); >=C2=A0 >= =C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if=C2= =A0(sockbufsize) >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0fprintf(stdout,=C2=A0",=C2=A0sockbufsize=3D%d",=C2= =A0sockbufsize); >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0fprintf(stdout,=C2=A0"=C2=A0=C2=A0%s=C2=A0=C2=A0->= =C2=A0%s\n",=C2=A0udp?"udp":"tcp",=C2=A0host); >=C2=A0 >=C2=A0-+=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stderr,=C2=A0",= =C2=A0sockbufsize=3D%d",=C2=A0sockbufsize); >=C2=A0 >=C2=A0-+=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stderr,=C2=A0"= =C2=A0=C2=A0%s=C2=A0=C2=A0->=C2=A0%s\n",=C2=A0udp?"udp":"tcp",=C2=A0host);= >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}=C2=A0else=C2=A0{ >= =C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0fprintf(s= tdout, >=C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0fprintf(stderr, >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0"ttcp-r:=C2=A0buflen=3D%d,=C2=A0nbuf=3D%d,= =C2=A0align=3D%d/%d,=C2=A0port=3D%d", >=C2=A0 >=C2=A0-=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0buflen,=C2=A0nbuf,=C2=A0buf= align,=C2=A0bufoffset,=C2=A0port); >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if=C2=A0(sockbufsize) >= =C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0fpr= intf(stdout,=C2=A0",=C2=A0sockbufsize=3D%d",=C2=A0sockbufsize); >=C2= =A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0fprint= f(stdout,=C2=A0"=C2=A0=C2=A0%s\n",=C2=A0udp?"udp":"tcp"); >=C2=A0 >= =C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stder= r,=C2=A0",=C2=A0sockbufsize=3D%d",=C2=A0sockbufsize); >=C2=A0 >=C2= =A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stderr,= =C2=A0"=C2=A0=C2=A0%s\n",=C2=A0udp?"udp":"tcp"); >=C2=A0 >=C2=A0-=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0} >=C2=A0 >=C2=A0-=C2=A0 >=C2=A0 >=C2= =A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if=C2=A0((fd=C2=A0=3D=C2=A0socket(AF_INET= ,=C2=A0udp?SOCK_DGRAM:SOCK_STREAM,=C2=A00))=C2=A0<=C2=A00) >=C2=A0 >= =C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0err("socket");= >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0mes("socket"); >=C2= =A0 >=C2=A0-=C2=A0 >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0if=C2= =A0(bind(fd,=C2=A0&sinme,=C2=A0sizeof(sinme))=C2=A0<=C2=A00) >=C2=A0 >= =C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0if=C2=A0(bind(fd,=C2=A0(struct=C2=A0sockadd= r=C2=A0*)=C2=A0&sinme,=C2=A0sizeof(sinme))=C2=A0<=C2=A00) >=C2=A0 >= =C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0err("bind");= >=C2=A0 >=C2=A0-=C2=A0 >=C2=A0 >=C2=A0-=C2=A0#if=C2=A0defined(SO_S= NDBUF)=C2=A0||=C2=A0defined(SO_RCVBUF) >=C2=A0 >=C2=A0-@@=C2=A0-326,7= =C2=A0+333,7=C2=A0@@=C2=A0char=C2=A0**argv; >=C2=A0 >=C2=A0-=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0mes= ("nodelay"); >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0} >=C2=A0 >=C2=A0-=C2=A0#endif >=C2=A0 >=C2=A0--= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if(connect(fd,=C2=A0&sinhim= ,=C2=A0sizeof(sinhim)=C2=A0)=C2=A0<=C2=A00) >=C2=A0 >=C2=A0-+=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if(connect(fd,=C2=A0(struct=C2= =A0sockaddr*)&sinhim,=C2=A0sizeof(sinhim)=C2=A0)=C2=A0<=C2=A00) >=C2= =A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0err("connect"); >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0mes("connect"); >=C2=A0 >=C2= =A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}=C2=A0else=C2= =A0{ >=C2=A0 >=C2=A0-@@=C2=A0-348,11=C2=A0+355,11=C2=A0@@=C2=A0char= =C2=A0**argv; >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0} >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0fromlen=C2=A0=3D=C2=A0sizeof(frominet); >=C2= =A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0domain= =C2=A0=3D=C2=A0AF_INET; >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0if((fd=3Daccept(fd,=C2=A0&frominet,=C2=A0&fromlen)= =C2=A0)=C2=A0<=C2=A00) >=C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0if((fd=3Daccept(fd,=C2=A0(struct=C2=A0sockaddr*)&fromi= net,=C2=A0&fromlen)=C2=A0)=C2=A0<=C2=A00) >=C2=A0 >=C2=A0-=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0err("a= ccept"); >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0{=C2=A0struct=C2=A0sockaddr_in=C2=A0peer; >=C2=A0 >=C2= =A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0int= =C2=A0peerlen=C2=A0=3D=C2=A0sizeof(peer); >=C2=A0 >=C2=A0--=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if=C2=A0(getpeername(fd,= =C2=A0(struct=C2=A0sockaddr_in=C2=A0*)=C2=A0&peer,=C2=A0 >=C2=A0 >= =C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if= =C2=A0(getpeername(fd,=C2=A0(struct=C2=A0sockaddr*)=C2=A0&peer,=C2=A0 >= =C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0&peerlen)=C2=A0<=C2=A00)= =C2=A0{ >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0err("getpeername"); >=C2=A0 >=C2= =A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0} >= =C2=A0 >=C2=A0-@@=C2=A0-412,25=C2=A0+419,25=C2=A0@@=C2=A0char=C2=A0**argv= ; >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0} >=C2=A0 >=C2= =A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if(=C2=A0cput=C2=A0<=3D=C2=A00.0=C2= =A0)=C2=A0=C2=A0cput=C2=A0=3D=C2=A00.001; >=C2=A0 >=C2=A0-=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0if(=C2=A0realt=C2=A0<=3D=C2=A00.0=C2=A0)=C2=A0= =C2=A0realt=C2=A0=3D=C2=A00.001; >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0= =C2=A0fprintf(stdout, >=C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0fprintf(= stderr, >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0"ttcp%s:=C2=A0%.0f=C2=A0bytes=C2=A0in=C2=A0%.2f=C2=A0real=C2= =A0seconds=C2=A0=3D=C2=A0%s/sec=C2=A0+++\n", >=C2=A0 >=C2=A0-=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0trans?"-t":"-r", >=C2= =A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0nbytes,= =C2=A0realt,=C2=A0outfmt(nbytes/realt)); >=C2=A0 >=C2=A0-=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0if=C2=A0(verbose)=C2=A0{ >=C2=A0 >=C2=A0--=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stdout, >=C2=A0 >= =C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stderr, >= =C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0"ttc= p%s:=C2=A0%.0f=C2=A0bytes=C2=A0in=C2=A0%.2f=C2=A0CPU=C2=A0seconds=C2=A0=3D= =C2=A0%s/cpu=C2=A0sec\n", >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0trans?"-t":"-r", >=C2=A0 >=C2=A0-=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0nbytes,=C2=A0cput,=C2= =A0outfmt(nbytes/cput)); >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0} >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stdout, >=C2= =A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stderr, >=C2=A0 >=C2= =A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0"ttcp%s:=C2=A0%d= =C2=A0I/O=C2=A0calls,=C2=A0msec/call=C2=A0=3D=C2=A0%.2f,=C2=A0calls/sec= =C2=A0=3D=C2=A0%.2f\n", >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0trans?"-t":"-r", >=C2=A0 >=C2=A0-=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0numCalls, >=C2=A0 >= =C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A01024.0=C2= =A0*=C2=A0realt/((double)numCalls), >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0((double)numCalls)/realt); >=C2= =A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stdout,"ttcp%s:=C2=A0%s\n",= =C2=A0trans?"-t":"-r",=C2=A0stats); >=C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2= =A0=C2=A0fprintf(stderr,"ttcp%s:=C2=A0%s\n",=C2=A0trans?"-t":"-r",=C2=A0sta= ts); >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if=C2=A0(verbose)= =C2=A0{ >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0fprintf(stdout, >=C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0fprintf(stderr, >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0"ttcp%s:=C2=A0buffer=C2=A0address= =C2=A0%#x\n", >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0trans?"-t":"-r", >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0buf); >=C2=A0 >=C2=A0-@@=C2= =A0-459,6=C2=A0+466,7=C2=A0@@=C2=A0char=C2=A0*s; >=C2=A0 >=C2=A0-=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0fprintf(stderr,"ttcp%s:=C2=A0%s\n",=C2=A0trans?"= -t":"-r",=C2=A0s); >=C2=A0 >=C2=A0-=C2=A0} >=C2=A0 >=C2=A0-=C2= =A0 >=C2=A0 >=C2=A0-+void >=C2=A0 >=C2=A0-=C2=A0pattern(=C2=A0cp,= =C2=A0cnt=C2=A0) >=C2=A0 >=C2=A0-=C2=A0register=C2=A0char=C2=A0*cp; >= =C2=A0 >=C2=A0-=C2=A0register=C2=A0int=C2=A0cnt; >=C2=A0 >=C2=A0-@@= =C2=A0-614,13=C2=A0+622,13=C2=A0@@=C2=A0prusage(r0,=C2=A0r1,=C2=A0e,=C2= =A0b,=C2=A0outp) >=C2=A0 >=C2=A0-=C2=A0 >=C2=A0 >=C2=A0-=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0case=C2=A0'U': >=C2=A0 = >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0tvsub(&tdiff,=C2=A0&r1->ru_utime,=C2=A0&r0->ru_utime); >= =C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0sprintf(outp,"%d.%01d",=C2=A0tdiff.tv_sec,=C2=A0tdiff.tv_= usec/100000); >=C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0sprintf(outp,"%ld.%01ld",=C2=A0tdiff.tv= _sec,=C2=A0tdiff.tv_usec/100000); >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0END(outp); >= =C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0break; >=C2=A0 >=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C2=A0=C2=A0=C2=A0=C2=A0=C2=A0sprintf(outp= ,"%d",=C2=A0r1->ru_inblock-r0->ru_inblock); >=C2=A0 >=C2=A0-+=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0sprintf(o= utp,"%ld",=C2=A0r1->ru_inblock-r0->ru_inblock); >=C2=A0 >=C2=A0-=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0END(outp); >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0break; >=C2=A0 >=C2=A0-=C2= =A0 >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0case=C2=A0'O': >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0sprintf(outp,"%d",=C2=A0r1->ru_ou= block-r0->ru_oublock); >=C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0sprintf(outp,"%ld",=C2=A0r1->r= u_oublock-r0->ru_oublock); >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0END(outp); >=C2= =A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0break; >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0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=C2= =A0void=C2=A0*buf; >=C2=A0 >=C2=A0-@@=C2=A0-752,7=C2=A0+761,7=C2=A0@@= =C2=A0int=C2=A0count; >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0int= =C2=A0len=C2=A0=3D=C2=A0sizeof(from); >=C2=A0 >=C2=A0-=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0register=C2=A0int=C2=A0cnt; >=C2=A0 >=C2=A0-=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0if(=C2=A0udp=C2=A0)=C2=A0=C2=A0{ >=C2=A0 >= =C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0cnt=C2=A0=3D=C2= =A0recvfrom(=C2=A0fd,=C2=A0buf,=C2=A0count,=C2=A00,=C2=A0&from,=C2=A0&len= =C2=A0); >=C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0cnt=C2=A0=3D=C2=A0recvfrom(=C2=A0fd,=C2=A0buf,=C2=A0count,=C2=A00,= =C2=A0(struct=C2=A0sockaddr=C2=A0*)&from,=C2=A0&len=C2=A0); >=C2=A0 >= =C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0numCalls++; = >=C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}=C2=A0else=C2=A0{ >= =C2=A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if(= =C2=A0b_flag=C2=A0) >=C2=A0 >=C2=A0-@@=C2=A0-774,6=C2=A0+783,7=C2=A0@@= =C2=A0int=C2=A0count; >=C2=A0 >=C2=A0-=C2=A0/* >=C2=A0 >=C2=A0-= =C2=A0=C2=A0*=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0N=C2=A0W=C2=A0R=C2=A0I=C2=A0T=C2=A0E >=C2=A0 >=C2=A0-= =C2=A0=C2=A0*/ >=C2=A0 >=C2=A0-+int >=C2=A0 >=C2=A0-=C2=A0Nwrite(= =C2=A0fd,=C2=A0buf,=C2=A0count=C2=A0) >=C2=A0 >=C2=A0-=C2=A0int=C2= =A0fd; >=C2=A0 >=C2=A0-=C2=A0void=C2=A0*buf; >=C2=A0 >=C2=A0-@@= =C2=A0-782,7=C2=A0+792,7=C2=A0@@=C2=A0int=C2=A0count; >=C2=A0 >=C2= =A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0register=C2=A0int=C2=A0cnt; >=C2=A0 >= =C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if(=C2=A0udp=C2=A0)=C2=A0=C2=A0{ >= =C2=A0 >=C2=A0-=C2=A0again: >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0cnt=C2=A0=3D=C2=A0sendto(=C2=A0fd,=C2=A0buf,= =C2=A0count,=C2=A00,=C2=A0&sinhim,=C2=A0sizeof(sinhim)=C2=A0); >=C2=A0 = >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0cnt=C2=A0=3D=C2= =A0sendto(=C2=A0fd,=C2=A0buf,=C2=A0count,=C2=A00,=C2=A0(struct=C2=A0sockadd= r=C2=A0*)&sinhim,=C2=A0sizeof(sinhim)=C2=A0); >=C2=A0 >=C2=A0-=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0numCalls++; >=C2=A0 >= =C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if(=C2=A0cnt<0= =C2=A0&&=C2=A0errno=C2=A0=3D=3D=C2=A0ENOBUFS=C2=A0)=C2=A0=C2=A0{ >=C2= =A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0delay(18000); >=C2=A0 >=C2=A0-@@=C2=A0-803,7=C2= =A0+813,7=C2=A0@@=C2=A0delay(us) >=C2=A0 >=C2=A0-=C2=A0 >=C2=A0 >= =C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tv.tv_sec=C2=A0=3D=C2=A00; >=C2= =A0 >=C2=A0-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tv.tv_usec=C2=A0=3D=C2=A0us; = >=C2=A0 >=C2=A0--=C2=A0=C2=A0=C2=A0=C2=A0(void)select(=C2=A01,=C2=A0(char= =C2=A0*)0,=C2=A0(char=C2=A0*)0,=C2=A0(char=C2=A0*)0,=C2=A0&tv=C2=A0); >= =C2=A0 >=C2=A0-+=C2=A0=C2=A0=C2=A0=C2=A0(void)select(=C2=A01,=C2=A0NULL,= =C2=A0NULL,=C2=A0NULL,=C2=A0&tv=C2=A0); >=C2=A0 >=C2=A0-=C2=A0} >= =C2=A0 >=C2=A0-=C2=A0 >=C2=A0 >=C2=A0-=C2=A0/* >=C2=A0 >=C2=A0dif= f=C2=A0--git=C2=A0a/benchmarks/ttcp/pkg-plist=C2=A0b/benchmarks/ttcp/pkg-pl= ist >=C2=A0 >=C2=A0deleted=C2=A0file=C2=A0mode=C2=A0100644 >=C2=A0 = >=C2=A0index=C2=A09e771280ae35..000000000000 >=C2=A0 >=C2=A0---=C2= =A0a/benchmarks/ttcp/pkg-plist >=C2=A0 >=C2=A0+++=C2=A0/dev/null >= =C2=A0 >=C2=A0@@=C2=A0-1,3=C2=A0+0,0=C2=A0@@ >=C2=A0 >=C2=A0-bin/ttcp= >=C2=A0 >=C2=A0-man/man1/ttcp.1.gz >=C2=A0 >=C2=A0-%%PORTDOCS%%%%D= OCSDIR%%/README Hi, Can try to be consistent in the tree? ht= tps://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276759#c2 wasn't addres= sed at all and now we have 3 ports (where 2 being Chris's) not following = suit. As others have pointed out I'm not sure about the license changes h= e's done in several of his "forks" in general. Best regards, Dani= el --_=_swift_1708765831_baac66a2834ff01fd98eedf0631e7cc4_=_ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <div>On 2024-02-24T09:47:23.000+01:00, Gleb Popov <arrowd@FreeBSD.org>= ; wrote:<br></div><div class=3D"ik_mail_quote answerContentMessage"><blockq= uote class=3D"ws-ng-quote"><pre style=3D"white-space: normal;"><div>The bra= nch main has been updated by arrowd:<br></div><div><br></div><div>URL: <a d= ata-ik=3D"ik-secure" rel=3D"noopener noreferrer" class=3D"defaultMailLink" = href=3D"https://cgit.FreeBSD.org/ports/commit/?id=3D36c21f98ff445e373ab6172= 6ee8b64e02f8984f7" target=3D"_blank">https://cgit.FreeBSD.org/ports/commit/= ?id=3D36c21f98ff445e373ab61726ee8b64e02f8984f7</a><br></div><div><br></div>= <div>commit 36c21f98ff445e373ab61726ee8b64e02f8984f7<br></div><div>Author: = Chris Hutchinson <<a class=3D"defaultMailLink" href=3D"mailto:portma= ster@bsdforge.com">portmaster@bsdforge.com</a>><br></div><div>AuthorDate= : 2024-02-24 08:43:41 +0000<br></div><div>Commit: Gleb Popov <<a cla= ss=3D"defaultMailLink" href=3D"mailto:arrowd@FreeBSD.org">arrowd@FreeBSD.or= g</a>><br></div><div>CommitDate: 2024-02-24 08:46:30 +0000<br></div><div= ><br></div><div> benchmarks/ttcp: Update to 1.13<br></div><div> <br><= /div><div> PR: 276759<br></div><div>---<br></div><div> bench= marks/ttcp/Makefile | 29 ++---<br></div><div> benchmarks/ttcp/di= stinfo | 9 +-<br></div><div> benchmarks/ttcp/files/patch-ttcp.c= | 257 -------------------------------------<br></div><div> benchmarks/ttcp= /pkg-plist | 3 -<br></div><div> 4 files changed, 15 insertions(+= ), 283 deletions(-)<br></div><div><br></div><div>diff --git a/benchmarks/tt= cp/Makefile b/benchmarks/ttcp/Makefile<br></div><div>index 364903c075df..32= a074aa304f 100644<br></div><div>--- a/benchmarks/ttcp/Makefile<br></div><di= v>+++ b/benchmarks/ttcp/Makefile<br></div><div>@@ -1,29 +1,24 @@<br></div><= div> PORTNAME=3D=09ttcp<br></div><div>-PORTVERSION=3D=091.12<br></div><div>= -PORTREVISION=3D=093<br></div><div>+PORTVERSION=3D=091.13<br></div><div> CA= TEGORIES=3D=09benchmarks net<br></div><div>-MASTER_SITES=3D=09<a data-ik=3D= "ik-secure" rel=3D"noopener noreferrer" class=3D"defaultMailLink" href=3D"h= ttps://BSDforge.com/projects/source/benchmarks/ttcp/" target=3D"_blank">htt= ps://BSDforge.com/projects/source/benchmarks/ttcp/</a><br></div><div>-DISTF= ILES=3D=09ttcp.c ttcp.1 README<br></div><div>-DIST_SUBDIR=3D=09${PORTNAME}<= br></div><div>-EXTRACT_ONLY=3D=09# none<br></div><div>+MASTER_SITES=3D=09<a= data-ik=3D"ik-secure" rel=3D"noopener noreferrer" class=3D"defaultMailLink= " href=3D"https://codeberg.org/BSDforge/" target=3D"_blank">https://codeber= g.org/BSDforge/</a>${PORTNAME}/archive/<br></div><div> <br></div><div> MAIN= TAINER=3D=09<a class=3D"defaultMailLink" href=3D"mailto:portmaster@BSDforge= .com">portmaster@BSDforge.com</a><br></div><div> COMMENT=3D=09Benchmarking = tool for analysing TCP and UDP performance<br></div><div>-WWW=3D=09=09<a da= ta-ik=3D"ik-secure" rel=3D"noopener noreferrer" class=3D"defaultMailLink" h= ref=3D"https://ftp.arl.army.mil/~mike/ttcp.html" target=3D"_blank">https://= ftp.arl.army.mil/~mike/ttcp.html</a><br></div><div>+WWW=3D=09=09<a data-ik= =3D"ik-secure" rel=3D"noopener noreferrer" class=3D"defaultMailLink" href= =3D"https://codeberg.org/BSDforge/ttcp/" target=3D"_blank">https://codeberg= .org/BSDforge/ttcp/</a><br></div><div> <br></div><div>-LICENSE=3D=09PD<br><= /div><div>+LICENSE=3D=09BSD0CLAUSE<br></div><div> <br></div><div>-DEPRECATE= D=3D=09Abandonware, no release in over 20 years. Consider using benchmarks/= iperf3 or benchmarks/nttcp<br></div><div>-EXPIRATION_DATE=3D2024-02-29<br><= /div><div>-<br></div><div>-NO_WRKSUBDIR=3D=09yes<br></div><div>+CFLAGS+=3D= =09-Wno-strict-prototypes<br></div><div> <br></div><div>+PLIST_FILES=3D=09= =09=09bin/ttcp share/man/man1/ttcp.1.gz<br></div><div>+PORTDOCS_PLIST_FILES= =3D=09share/doc/ttcp/README share/doc/ttcp/CHANGES \<br></div><div>+=09=09= =09share/doc/ttcp/LICENSE<br></div><div>+PORTDOCS=3D=09=09README CHANGES LI= CENSE<br></div><div> OPTIONS_DEFINE=3D=09DOCS<br></div><div>-<br></div><div= >+# because the ports framework doesn't cope well with bare ${PORTNAME} ${W= RKSRC}<br></div><div> post-extract:<br></div><div>-=09${CP} ${DISTDIR}/${DI= ST_SUBDIR}/ttcp.c ${WRKSRC}<br></div><div>-=09${CP} ${DISTDIR}/${DIST_SUBDI= R}/ttcp.1 ${WRKSRC}<br></div><div>-=09${CP} ${DISTDIR}/${DIST_SUBDIR}/READM= E ${WRKSRC}<br></div><div>+=09${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTN= AME}-${PORTVERSION}<br></div><div> <br></div><div> do-build:<br></div><div>= =09${CC} ${CFLAGS} -o ${WRKSRC}/ttcp ${WRKSRC}/ttcp.c<br></div><div>@@ -34= ,6 +29,6 @@ do-install:<br></div><div> <br></div><div> do-install-DOCS-on:<= br></div><div> =09@${MKDIR} ${STAGEDIR}${DOCSDIR}<br></div><div>-=09${INSTA= LL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}<br></div><div>+=09${INSTALL= _DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}<br></div><div> <br= ></div><div> .include <<a data-ik=3D"ik-secure" rel=3D"noopener noreferr= er" class=3D"defaultMailLink" href=3D"http://bsd.port.mk>" target=3D"_blank= ">bsd.port.mk></a>;<br></div><div>diff --git a/benchmarks/ttcp/distinfo = b/benchmarks/ttcp/distinfo<br></div><div>index 3415da392dd6..20f0333e9396 1= 00644<br></div><div>--- a/benchmarks/ttcp/distinfo<br></div><div>+++ b/benc= hmarks/ttcp/distinfo<br></div><div>@@ -1,6 +1,3 @@<br></div><div>-SHA256 (t= tcp/ttcp.c) =3D e630a95788efacfee226dff3550e58ed908987ef96817efc8ad4862657a= 60c3b<br></div><div>-SIZE (ttcp/ttcp.c) =3D 19170<br></div><div>-SHA256 (tt= cp/ttcp.1) =3D edb5dbc156c06584d7a73b6ffdb0049dca1b819f0c79aa2289005d60acad= dbc9<br></div><div>-SIZE (ttcp/ttcp.1) =3D 3885<br></div><div>-SHA256 (ttcp= /README) =3D a5c033bcfdcbca3cfe82c36b8c82d8b25d7bc1968a5a664f61052bfe31a1a5= 31<br></div><div>-SIZE (ttcp/README) =3D 781<br></div><div>+TIMESTAMP =3D 1= 706864630<br></div><div>+SHA256 (ttcp-1.13.tar.gz) =3D 809214c535175139897a= fba784e2e6d1eff02efc3d7b90a67f1bb52fb5082027<br></div><div>+SIZE (ttcp-1.13= .tar.gz) =3D 10959<br></div><div>diff --git a/benchmarks/ttcp/files/patch-t= tcp.c b/benchmarks/ttcp/files/patch-ttcp.c<br></div><div>deleted file mode = 100644<br></div><div>index a055bfeef7ee..000000000000<br></div><div>--- a/b= enchmarks/ttcp/files/patch-ttcp.c<br></div><div>+++ /dev/null<br></div><div= >@@ -1,257 +0,0 @@<br></div><div>---- ttcp.c.orig=092016-07-27 15:06:14 UTC= <br></div><div>-+++ ttcp.c<br></div><div>-@@ -55,6 +55,9 @@ static char RCS= id[] =3D "ttcp.c $Revision:<br></div><div>- #include <arpa/inet.h><br= ></div><div>- #include <netdb.h><br></div><div>- #include <sys/tim= e.h>=09=09/* struct timeval */<br></div><div>-+#include <unistd.h>= <br></div><div>-+#include <string.h><br></div><div>-+#include <std= lib.h><br></div><div>- <br></div><div>- #if defined(SYSV)<br></div><div>= - #include <sys/times.h><br></div><div>-@@ -133,7 +136,7 @@ double cp= ut, realt;=09=09/* user, real time <br></div><div>- <br></div><div>- void e= rr();<br></div><div>- void mes();<br></div><div>--int pattern();<br></div><= div>-+void pattern();<br></div><div>- void prep_timer();<br></div><div>- do= uble read_timer();<br></div><div>- int Nread();<br></div><div>-@@ -147,6 +1= 50,7 @@ sigpipe()<br></div><div>- {<br></div><div>- }<br></div><div>- <br><= /div><div>-+int<br></div><div>- main(argc,argv)<br></div><div>- int argc;<b= r></div><div>- char **argv;<br></div><div>-@@ -249,6 +253,7 @@ char **argv;= <br></div><div>- #endif /* cray */<br></div><div>- =09=09}<br></div><div>- = =09=09sinhim.sin_port =3D htons(port);<br></div><div>-+=09=09sinme.sin_fami= ly =3D AF_INET; /* Solaris needs this */<br></div><div>- =09=09sinme.si= n_port =3D 0;=09=09/* free choice */<br></div><div>- =09} else {<br></div><= div>- =09=09/* rcvr */<br></div><div>-@@ -263,29 +268,31 @@ char **argv;<br= ></div><div>- =09if ( (buf =3D (char *)malloc(buflen+bufalign)) =3D=3D (cha= r *)NULL)<br></div><div>- =09=09err("malloc");<br></div><div>- =09if (bufal= ign !=3D 0)<br></div><div>--=09=09buf +=3D(bufalign - ((int)buf % bufalign)= + bufoffset) % bufalign;<br></div><div>-+=09=09buf +=3D (bufalign<br></div= ><div>-+=09=09=09-((unsigned long)buf % bufalign)<br></div><div>-+=09=09=09= + bufoffset) % bufalign;<br></div><div>- <br></div><div>- =09if (trans) {<b= r></div><div>--=09 fprintf(stdout,<br></div><div>-+=09 fprintf(stderr= ,<br></div><div>- =09 "ttcp-t: buflen=3D%d, nbuf=3D%d, align=3D%d/%d, po= rt=3D%d",<br></div><div>- =09=09buflen, nbuf, bufalign, bufoffset, port);<b= r></div><div>- =09 if (sockbufsize)<br></div><div>-- =09=09fprintf(stdo= ut, ", sockbufsize=3D%d", sockbufsize);<br></div><div>-- =09 fprintf(std= out, " %s -> %s\n", udp?"udp":"tcp", host);<br></div><div>-+ =09=09fpr= intf(stderr, ", sockbufsize=3D%d", sockbufsize);<br></div><div>-+ =09 fp= rintf(stderr, " %s -> %s\n", udp?"udp":"tcp", host);<br></div><div>- = =09} else {<br></div><div>--=09 fprintf(stdout,<br></div><div>-+=09 f= printf(stderr,<br></div><div>- =09 "ttcp-r: buflen=3D%d, nbuf=3D%d, ali= gn=3D%d/%d, port=3D%d",<br></div><div>- =09=09buflen, nbuf, bufalign, bufo= ffset, port);<br></div><div>- =09 if (sockbufsize)<br></div><div>-- =09= =09fprintf(stdout, ", sockbufsize=3D%d", sockbufsize);<br></div><div>-- =09= fprintf(stdout, " %s\n", udp?"udp":"tcp");<br></div><div>-+ =09=09fpri= ntf(stderr, ", sockbufsize=3D%d", sockbufsize);<br></div><div>-+ =09 fpr= intf(stderr, " %s\n", udp?"udp":"tcp");<br></div><div>- =09}<br></div><div= >- <br></div><div>- =09if ((fd =3D socket(AF_INET, udp?SOCK_DGRAM:SOCK_STRE= AM, 0)) < 0)<br></div><div>- =09=09err("socket");<br></div><div>- =09mes= ("socket");<br></div><div>- <br></div><div>--=09if (bind(fd, &sinme, si= zeof(sinme)) < 0)<br></div><div>-+=09if (bind(fd, (struct sockaddr *) &a= mp;sinme, sizeof(sinme)) < 0)<br></div><div>- =09=09err("bind");<br></di= v><div>- <br></div><div>- #if defined(SO_SNDBUF) || defined(SO_RCVBUF)<br><= /div><div>-@@ -326,7 +333,7 @@ char **argv;<br></div><div>- =09=09=09mes("n= odelay");<br></div><div>- =09=09}<br></div><div>- #endif<br></div><div>--= =09=09if(connect(fd, &sinhim, sizeof(sinhim) ) < 0)<br></div><div>-+= =09=09if(connect(fd, (struct sockaddr*)&sinhim, sizeof(sinhim) ) < 0= )<br></div><div>- =09=09=09err("connect");<br></div><div>- =09=09mes("conne= ct");<br></div><div>- =09 } else {<br></div><div>-@@ -348,11 +355,11 @@ = char **argv;<br></div><div>- =09=09}<br></div><div>- =09=09fromlen =3D size= of(frominet);<br></div><div>- =09=09domain =3D AF_INET;<br></div><div>--=09= =09if((fd=3Daccept(fd, &frominet, &fromlen) ) < 0)<br></div><div= >-+=09=09if((fd=3Daccept(fd, (struct sockaddr*)&frominet, &fromlen)= ) < 0)<br></div><div>- =09=09=09err("accept");<br></div><div>- =09=09{ = struct sockaddr_in peer;<br></div><div>- =09=09 int peerlen =3D sizeof(pee= r);<br></div><div>--=09=09 if (getpeername(fd, (struct sockaddr_in *) &= ;peer, <br></div><div>-+=09=09 if (getpeername(fd, (struct sockaddr*) &= ;peer, <br></div><div>- =09=09=09=09&peerlen) < 0) {<br></div><div>-= =09=09=09err("getpeername");<br></div><div>- =09=09 }<br></div><div>-@@ -= 412,25 +419,25 @@ char **argv;<br></div><div>- =09}<br></div><div>- =09if( = cput &lt;=3D 0.0 ) cput =3D 0.001;<br></div><div>- =09if( realt &l= t;=3D 0.0 ) realt =3D 0.001;<br></div><div>--=09fprintf(stdout,<br></div><= div>-+=09fprintf(stderr,<br></div><div>- =09=09"ttcp%s: %.0f bytes in %.2f = real seconds =3D %s/sec +++\n",<br></div><div>- =09=09trans?"-t":"-r",<br><= /div><div>- =09=09nbytes, realt, outfmt(nbytes/realt));<br></div><div>- =09= if (verbose) {<br></div><div>--=09 fprintf(stdout,<br></div><div>-+=09 = fprintf(stderr,<br></div><div>- =09=09"ttcp%s: %.0f bytes in %.2f CPU sec= onds =3D %s/cpu sec\n",<br></div><div>- =09=09trans?"-t":"-r",<br></div><di= v>- =09=09nbytes, cput, outfmt(nbytes/cput));<br></div><div>- =09}<br></div= ><div>--=09fprintf(stdout,<br></div><div>-+=09fprintf(stderr,<br></div><div= >- =09=09"ttcp%s: %d I/O calls, msec/call =3D %.2f, calls/sec =3D %.2f\n",<= br></div><div>- =09=09trans?"-t":"-r",<br></div><div>- =09=09numCalls,<br><= /div><div>- =09=091024.0 * realt/((double)numCalls),<br></div><div>- =09=09= ((double)numCalls)/realt);<br></div><div>--=09fprintf(stdout,"ttcp%s: %s\n"= , trans?"-t":"-r", stats);<br></div><div>-+=09fprintf(stderr,"ttcp%s: %s\n"= , trans?"-t":"-r", stats);<br></div><div>- =09if (verbose) {<br></div><div>= --=09 fprintf(stdout,<br></div><div>-+=09 fprintf(stderr,<br></div><d= iv>- =09=09"ttcp%s: buffer address %#x\n",<br></div><div>- =09=09trans?"-t"= :"-r",<br></div><div>- =09=09buf);<br></div><div>-@@ -459,6 +466,7 @@ char = *s;<br></div><div>- =09fprintf(stderr,"ttcp%s: %s\n", trans?"-t":"-r", s);<= br></div><div>- }<br></div><div>- <br></div><div>-+void<br></div><div>- pat= tern( cp, cnt )<br></div><div>- register char *cp;<br></div><div>- register= int cnt;<br></div><div>-@@ -614,13 +622,13 @@ prusage(r0, r1, e, b, outp)<= br></div><div>- <br></div><div>- =09=09case 'U':<br></div><div>- =09=09=09t= vsub(&tdiff, &r1->ru_utime, &r0->ru_utime);<br></div><div= >--=09=09=09sprintf(outp,"%d.%01d", tdiff.tv_sec, tdiff.tv_usec/100000);<br= ></div><div>-+=09=09=09sprintf(outp,"%ld.%01ld", tdiff.tv_sec, tdiff.tv_use= c/100000);<br></div><div>- =09=09=09END(outp);<br></div><div>- =09=09=09bre= ak;<br></div><div>- <br></div><div>- =09=09case 'S':<br></div><div>- =09=09= =09tvsub(&tdiff, &r1->ru_stime, &r0->ru_stime);<br></div>= <div>--=09=09=09sprintf(outp,"%d.%01d", tdiff.tv_sec, tdiff.tv_usec/100000)= ;<br></div><div>-+=09=09=09sprintf(outp,"%ld.%01ld", tdiff.tv_sec, tdiff.tv= _usec/100000);<br></div><div>- =09=09=09END(outp);<br></div><div>- =09=09= =09break;<br></div><div>- <br></div><div>-@@ -642,49 +650,49 @@ prusage(r0,= r1, e, b, outp)<br></div><div>- =09=09=09break;<br></div><div>- <br></div>= <div>- =09=09case 'X':<br></div><div>--=09=09=09sprintf(outp,"%d", t =3D=3D= 0 ? 0 : (r1->ru_ixrss-r0->ru_ixrss)/t);<br></div><div>-+=09=09=09spr= intf(outp,"%ld", t =3D=3D 0 ? 0 : (r1->ru_ixrss-r0->ru_ixrss)/t);<br>= </div><div>- =09=09=09END(outp);<br></div><div>- =09=09=09break;<br></div><= div>- <br></div><div>- =09=09case 'D':<br></div><div>--=09=09=09sprintf(out= p,"%d", t =3D=3D 0 ? 0 :<br></div><div>-+=09=09=09sprintf(outp,"%ld", t =3D= =3D 0 ? 0 :<br></div><div>- =09=09=09 (r1->ru_idrss+r1->ru_isrss-(= r0->ru_idrss+r0->ru_isrss))/t);<br></div><div>- =09=09=09END(outp);<b= r></div><div>- =09=09=09break;<br></div><div>- <br></div><div>- =09=09case = 'K':<br></div><div>--=09=09=09sprintf(outp,"%d", t =3D=3D 0 ? 0 :<br></div>= <div>-+=09=09=09sprintf(outp,"%ld", t =3D=3D 0 ? 0 :<br></div><div>- =09=09= =09 ((r1->ru_ixrss+r1->ru_isrss+r1->ru_idrss) -<br></div><div>-= =09=09=09 (r0->ru_ixrss+r0->ru_idrss+r0->ru_isrss))/t);<br></d= iv><div>- =09=09=09END(outp);<br></div><div>- =09=09=09break;<br></div><div= >- <br></div><div>- =09=09case 'M':<br></div><div>--=09=09=09sprintf(outp,"= %d", r1->ru_maxrss/2);<br></div><div>-+=09=09=09sprintf(outp,"%ld", r1-&= gt;ru_maxrss/2);<br></div><div>- =09=09=09END(outp);<br></div><div>- =09=09= =09break;<br></div><div>- <br></div><div>- =09=09case 'F':<br></div><div>--= =09=09=09sprintf(outp,"%d", r1->ru_majflt-r0->ru_majflt);<br></div><d= iv>-+=09=09=09sprintf(outp,"%ld", r1->ru_majflt-r0->ru_majflt);<br></= div><div>- =09=09=09END(outp);<br></div><div>- =09=09=09break;<br></div><di= v>- <br></div><div>- =09=09case 'R':<br></div><div>--=09=09=09sprintf(outp,= "%d", r1->ru_minflt-r0->ru_minflt);<br></div><div>-+=09=09=09sprintf(= outp,"%ld", r1->ru_minflt-r0->ru_minflt);<br></div><div>- =09=09=09EN= D(outp);<br></div><div>- =09=09=09break;<br></div><div>- <br></div><div>- = =09=09case 'I':<br></div><div>--=09=09=09sprintf(outp,"%d", r1->ru_inblo= ck-r0->ru_inblock);<br></div><div>-+=09=09=09sprintf(outp,"%ld", r1->= ru_inblock-r0->ru_inblock);<br></div><div>- =09=09=09END(outp);<br></div= ><div>- =09=09=09break;<br></div><div>- <br></div><div>- =09=09case 'O':<br= ></div><div>--=09=09=09sprintf(outp,"%d", r1->ru_oublock-r0->ru_oublo= ck);<br></div><div>-+=09=09=09sprintf(outp,"%ld", r1->ru_oublock-r0->= ru_oublock);<br></div><div>- =09=09=09END(outp);<br></div><div>- =09=09=09b= reak;<br></div><div>- =09=09case 'C':<br></div><div>--=09=09=09sprintf(outp= ,"%d+%d", r1->ru_nvcsw-r0->ru_nvcsw,<br></div><div>-+=09=09=09sprintf= (outp,"%ld+%ld", r1->ru_nvcsw-r0->ru_nvcsw,<br></div><div>- =09=09=09= =09r1->ru_nivcsw-r0->ru_nivcsw );<br></div><div>- =09=09=09END(outp);= <br></div><div>- =09=09=09break;<br></div><div>-@@ -743,6 +751,7 @@ registe= r char *cp;<br></div><div>- /*<br></div><div>- *=09=09=09N R E A D<br></di= v><div>- */<br></div><div>-+int<br></div><div>- Nread( fd, buf, count )<br= ></div><div>- int fd;<br></div><div>- void *buf;<br></div><div>-@@ -752,7 += 761,7 @@ int count;<br></div><div>- =09int len =3D sizeof(from);<br></div><= div>- =09register int cnt;<br></div><div>- =09if( udp ) {<br></div><div>--= =09=09cnt =3D recvfrom( fd, buf, count, 0, &from, &len );<br></div>= <div>-+=09=09cnt =3D recvfrom( fd, buf, count, 0, (struct sockaddr *)&f= rom, &len );<br></div><div>- =09=09numCalls++;<br></div><div>- =09} els= e {<br></div><div>- =09=09if( b_flag )<br></div><div>-@@ -774,6 +783,7 @@ i= nt count;<br></div><div>- /*<br></div><div>- *=09=09=09N W R I T E<br></di= v><div>- */<br></div><div>-+int<br></div><div>- Nwrite( fd, buf, count )<b= r></div><div>- int fd;<br></div><div>- void *buf;<br></div><div>-@@ -782,7 = +792,7 @@ int count;<br></div><div>- =09register int cnt;<br></div><div>- = =09if( udp ) {<br></div><div>- again:<br></div><div>--=09=09cnt =3D sendto= ( fd, buf, count, 0, &sinhim, sizeof(sinhim) );<br></div><div>-+=09=09c= nt =3D sendto( fd, buf, count, 0, (struct sockaddr *)&sinhim, sizeof(si= nhim) );<br></div><div>- =09=09numCalls++;<br></div><div>- =09=09if( cnt<= ;0 && errno =3D=3D ENOBUFS ) {<br></div><div>- =09=09=09delay(1800= 0);<br></div><div>-@@ -803,7 +813,7 @@ delay(us)<br></div><div>- <br></div>= <div>- =09tv.tv_sec =3D 0;<br></div><div>- =09tv.tv_usec =3D us;<br></div><= div>--=09(void)select( 1, (char *)0, (char *)0, (char *)0, &tv );<br></= div><div>-+=09(void)select( 1, NULL, NULL, NULL, &tv );<br></div><div>-= }<br></div><div>- <br></div><div>- /*<br></div><div>diff --git a/benchmark= s/ttcp/pkg-plist b/benchmarks/ttcp/pkg-plist<br></div><div>deleted file mod= e 100644<br></div><div>index 9e771280ae35..000000000000<br></div><div>--- a= /benchmarks/ttcp/pkg-plist<br></div><div>+++ /dev/null<br></div><div>@@ -1,= 3 +0,0 @@<br></div><div>-bin/ttcp<br></div><div>-man/man1/ttcp.1.gz<br></di= v><div>-%%PORTDOCS%%%%DOCSDIR%%/README<br></div></pre></blockquote></div><d= iv><div><div><br></div></div><div>Hi,<br></div><div><div><br></div></div><d= iv>Can try to be consistent in the tree?<br></div><div><div><br></div></div= ><div><a data-ik=3D"ik-secure" rel=3D"noopener noreferrer" href=3D"https://= bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276759#c2" target=3D"_blank">ht= tps://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276759#c2</a> wasn't addr= essed at all and now we have 3 ports (where 2 being Chris's) not following = suit. As others have pointed out I'm not sure about the license changes he'= s done in several of his "forks" in general.<br></div><div><div><br></div><= /div><div>Best regards,<br></div><div>Daniel<br></div><div><br></div></div>= <div ><div><br></div></div> --_=_swift_1708765831_baac66a2834ff01fd98eedf0631e7cc4_=_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c3ddafc7035aca09ed4be08afec4baec>