pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/uftp uftp: Update to 4.10
details: https://anonhg.NetBSD.org/pkgsrc/rev/c5ac5a79f12d
branches: trunk
changeset: 339635:c5ac5a79f12d
user: nia <nia%pkgsrc.org@localhost>
date: Fri Sep 13 10:42:05 2019 +0000
description:
uftp: Update to 4.10
Note: this now supports OpenSSL 1.1.
Version 4.10 - 7/10/2019
Allow specifying transmission rates of up to 1 Tbps. This involved changing
a number of variables tracking the rate from 32 bit to 64 bit types. It
also changed the tracking of wait times between data packet transmissions
from microseconds to nanoseconds.
Fixed a bug when getting the list of network interfaces in the event that
an interface does not have an interface index number.
Version 4.9.11 - 5/13/2019
The error check added in 4.9.10 on chdir wasn't checking the correct value,
causing the client and proxy to not start in background mode. Bug fixed.
Version 4.9.10 - 5/9/2019
The initial CLR selection was picking the receiver with the lowest RTT
instead of the higest. Fixed to select the receiver with the highest RTT.
While the server is sending, check for CTRL-C by the user at least once a
second instead of waiting for a GRTT cycle if it is longer.
Fixed rate calculation bug when TFMCC is specified with -R -1.
Minor error checking / log format fixes
Version 4.9.9 - 2/17/2019
Fixed handling of min_time in TFMCC mode
Version 4.9.8 - 8/29/2018
When compiling with MSVC 2017, the IP_MTU_DISCOVER flag is defined but not
implemented, resulting in errors when attempting to set it. Added check
for the case if the flag is not implemented.
Machines with a blank IP address for the first interface were getting a
default UID of 0. When this happens, check for a non-blank interface
to derive the UID from.
Cleaned up setting of key exchange random numbers to avoid aliasing violation
Version 4.9.7 - 5/27/2018
Fixed delay in server sending thread causing transfer of large files to
time out. The block number to send was being incremented once per
iteration of the main sending loop. This main loop also locks and unlocks
a mutex to update data shared by the receiving thread. When a large
number of consecutive blocks do not need to be sent, the lock/unlock
cycles resulted in delays where no data was sent. Changed to increment
the block number until a block to send is found without reiterating
the main loop.
Version 4.9.6 - 4/17/2018
When a response proxy sends a PROXY_KEY message, send it on all public
multicast addresses, not just the first one
Version 4.9.5 - 12/16/2017
Upated encryption module to support OpenSSL 1.1.x and 1.0.x.
Removed support for OpenSSL 0.9.8
Changed install directory of uftpd uftpproxyd to /usr/bin
Added CPPFLAGS to makefile for build hardening as requested by Debian
Version 4.9.4 - 10/7/2017
When initializing TFMCC loss history, use datapacketsize if no recent packets
found or if counter wraps. This fixes a divide-by-zero bug.
Only run postreceive script when the incoming file has not yet been closed.
This prevents the script from running twice if a duplicate DONE is received.
Clarified documentation regarding incompatibility of temp dir and sync mode.
Version 4.9.3 - 1/21/2017
Fixed a race condition in the server between the sending and receiving
threads when building CONG_CTRL messages. The receiving thread was
not locking when placing messages on a queue. Added proper locking.
Minor updates to includes and typedefs to support 64-bit Windows builds.
Now requires Visual Studio 2015 or higher.
Changed manpage formatting and makefile options as suggested by Debian team.
Added missing include for sys/time.h
Version 4.9.2 - 4/3/2016
Under TFMCC when a client first experiences loss, it calculates the average
packet size of the packets received either in the last GRTT or the last
64K packets, whichever is less. In the event the sequence number of the
first lost packet is the same as the first packet received (which can
happen due to wraparound), this wasn't being captures properly resulting
in a divide by zero bug. Made a fix to properly account for sequence
number wraparound.
When calculating the average packet size above, a cast was used that could
result in a negative number being returned for this value. Removed the
offending cast.
Fixed off-by-one bug when counting the number of DONE messages sent by the
server before declaring clients as lost.
Version 4.9.1 - 3/15/2016
A bug was introduced in 4.8.1 when a fix was made for received files having
extra bytes appended when packets were received out of order. When a
file's size is an exact multiple of the block size, the last block was
getting truncated. Made a fix to account for this case.
Version 4.9 - 2/28/2016
Added the -a option to the server, which specifies the maximum number of
passes through transmitting a file before aborting any clients that have
not yet received the entire file.
When specifying TFMCC mode, the initial, minimum, and maximum rates were
being read as bytes per second instead of the documented Kbps. These
fields are now being properly read as Kbps.
In TFMCC mode, when the CLR received a CONG_CTRL message, it was responding
with a CC_ACK before updating its RTT value, resulting in the CLR reporting
an outdated RTT. Made a fix to first update the RTT, then send the CC_ACK.
Version 4.8.1 - 2/4/2016
When the last data block in the file arrived at the receiver out-of-order,
additional null bytes were being appended to the end of the file. This
was due to a bug in calculating the current cache size. Bug fixed.
Clients normally check for sufficient free space before attempting to receive
a file. This was not working correctly when -t was specified. Bug fixed.
Version 4.8 - 1/5/2016
Added support for initial and minimum rates for TFMCC as well as a max rate.
These may be specified as follows:
-C tfmcc:min=min_rate:init=init_rate:max=max_rate
See the man page for more details.
Changed logging level for "invalid message" messages from level 1 to level 4.
This should cut down on unnecessary log messages at lower levels.
Fixed man page typos.
Version 4.7 - 5/16/2015
Added group instance ID (i.e. restart number) to all log messages.
Make sure that the client flushes the disk cache when a session is aborted.
This wasn't being done previously, resulting in unnecessary retransmissions
on the subsequent restart session.
Previously, when a client registers via a proxy, the server added that client
to the list of clients serviced by that proxy. There was a bug that
allowed a client sending back multiple registers to be added to this list
multiple times, resulting in a buffer overrun if there are a large number
of clients registering via a given proxy. Fixed the bug by removing the
list altogether, since the server doesn't really care which proxy a
client registers via.
Version 4.6.1 - 3/15/2015
At the start of the transfer phase with congestion control enabled, the
server would sometimes select a client that had dropped out earlier in
the session as the initial CLR, slowing down the file transfer. Fixed.
In restart mode for a partially sent file, the server sends a DONE right
away before sending data to get NAKs from the clients. The clients
normally have a short delay before responding to a DONE to ensure that
out of order data packets arrive. In this case, since no data has been
sent yet, the clients will now respond right away to avoid the unneeded
delay.
When the clients joins or leaves a multicast group, it checks to see if any
other active sessions are using that group before doing so. Fixed a bug
that prevented the client from searching the whole list.
Version 4.6 - 12/30/2014
Added the -F option to the client to print status info to a file. Like
the server's -s option, passing in @LOG mixes this info with the regular
logging output.
The client now prints the hostname/IP address where an ANNOUNCE originates
from, which may be either the server itself or a proxy. The -q option
was added to prevent DNS lookups in the event it causes delays.
Several spelling fixes in documentation and code comments.
Fixed a memory leak in the fingerprint parsing routine.
Version 4.5.1 - 9/14/2014
On the rare occasion a seek call made by the client errors or returns a
file offset that was unexpected, a second call to seek is made to set the
destination file offset to the proper place. However, this second seek
was jumping to the wrong place in the file. This has been fixed, and
a similar fix was made on the server as well.
Allow the -s (status file) option on the server to take a special value of
@LOG, which allows status info to be mixed with the regular logging output.
This behavior is consistent with older versions that did this when sync
mode was enabled.
Version 4.5 - 8/26/2014
Added disk caching on the client, greatly improving high speed throughput.
The cache size is controlled via the -c option.
Changed logging levels on several log statements so that effectively
level 0 is "error" and level 1 is "warning". The default log level of 2
will continue to contain semi-detailed logging.
Increased client timeout for REG_CONF and DONE_CONF to 4*robust*grtt.
This helps to prevent client from timing out too early.
When the server receives a REGISTER or FILEINFO_ACK from a client and
calculates its round trip time, enforce a lower limit of 0.01 seconds.
This prevent client from timing out too quickly.
Occurrences of SIGPIPE while writing to a log could result in an infinite
loop. SIGPIPE is now ignored, relying on normal error handling instead.
Version 4.4 - 7/22/2014
Added max rate option to TFMCC implementation
Added -U option to server to specify the server's UID
Removed stale UFTP3 congestion control code
Version 4.3.1 - 7/3/2014
Have clients send an ABORT for all active sessions on shutdown
Fixed #ifs that enable dual mode sockets
Removed -O0 from BSD section of makefile
Version 4.3 - 5/27/2014
Added support for ECN (Explicit Congestion Notification) in the TFMCC
implementation in the server and client. Proxy support is forthcoming.
See the man pages for known supported systems.
Fixed warning in encrypt_openssl.c when compiling under FreeBSD x64.
Explicitly enable dual mode IPv4/IPv6 sockets when IPv6 is used on systems
that support it.
Version 4.2 - 5/12/2014
Added distinct exit codes for various error conditions
In client and proxy, check if private address is already in use before joining
Fixed log rolling under Windows
Version 4.1.5 - 3/1/2014
Fixed casting bug in server TFMCC operations when calculating client rate.
Fixed server proxy bug where group round trip time was being read from
client messages when it should only be read from server messages.
Version 4.1.4 - 12/5/2013
During a restart session, a bug caused the full file to be resent on the
first pass, and client wouldn't send back NAKs for the first session.
This has been fixed.
Fixed incorrect reading of client ID lists in DONE, DONE_CONF, and CONG_CTRL
messages.
Added group ID and file ID to server logging when timestamps are enabled.
Added more warning checks for Linux and corrected warnings.
Cleaned up error checking code for malloc and calloc calls.
Version 4.1.3 - 10/13/2013
Since 4.0, compilation failed on MacOSX. This has been fixed.
diffstat:
net/uftp/Makefile | 19 +++++++++++-----
net/uftp/distinfo | 13 +++++------
net/uftp/patches/patch-makefile | 42 ++++-------------------------------
net/uftp/patches/patch-uftp_common.c | 34 -----------------------------
4 files changed, 24 insertions(+), 84 deletions(-)
diffs (150 lines):
diff -r 0e92cc2d7010 -r c5ac5a79f12d net/uftp/Makefile
--- a/net/uftp/Makefile Fri Sep 13 10:25:14 2019 +0000
+++ b/net/uftp/Makefile Fri Sep 13 10:42:05 2019 +0000
@@ -1,23 +1,30 @@
-# $NetBSD: Makefile,v 1.5 2016/03/05 11:29:13 jperkin Exp $
+# $NetBSD: Makefile,v 1.6 2019/09/13 10:42:05 nia Exp $
-DISTNAME= uftp-4.1.2
-PKGREVISION= 2
+DISTNAME= uftp-4.10
CATEGORIES= net
MASTER_SITES= http://sourceforge.net/projects/uftp-multicast/files/source-tar/
-EXTRACT_SUFX= .tar
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= http://uftp-multicast.sourceforge.net/
-COMMENT= UFTP is an encrypted multicast file transfer program
+COMMENT= Encrypted multicast file transfer program
LICENSE= gnu-gpl-v3
USE_TOOLS+= gmake
NO_CONFIGURE= yes
MAKE_FILE= makefile
+MAKE_ENV+= LIB="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib"
+
+CPPFLAGS.NetBSD+= -DHAS_GETIFADDRS -DNO_DUAL -DNO_MCAST_JOIN
+
INSTALLATION_DIRS+= bin sbin ${PKGMANDIR}/man1
-MAKE_ENV+= LIB="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib"
+do-install:
+ cd ${WRKSRC} && ${INSTALL_PROGRAM} uftp ${DESTDIR}${PREFIX}/bin
+ cd ${WRKSRC} && ${INSTALL_PROGRAM} uftpd ${DESTDIR}${PREFIX}/sbin
+ cd ${WRKSRC} && ${INSTALL_PROGRAM} uftpproxyd ${DESTDIR}${PREFIX}/sbin
+ cd ${WRKSRC} && ${INSTALL_PROGRAM} uftp_keymgt ${DESTDIR}${PREFIX}/bin
+ cd ${WRKSRC} && ${INSTALL_MAN} uftp.1 uftpd.1 uftpproxyd.1 uftp_keymgt.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
diff -r 0e92cc2d7010 -r c5ac5a79f12d net/uftp/distinfo
--- a/net/uftp/distinfo Fri Sep 13 10:25:14 2019 +0000
+++ b/net/uftp/distinfo Fri Sep 13 10:42:05 2019 +0000
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.3 2015/11/04 00:35:42 agc Exp $
+$NetBSD: distinfo,v 1.4 2019/09/13 10:42:05 nia Exp $
-SHA1 (uftp-4.1.2.tar) = 11191127cc3716599a2554cfcc18329487757067
-RMD160 (uftp-4.1.2.tar) = eb8fdae3648de86976177fbf805099a43cff37ec
-SHA512 (uftp-4.1.2.tar) = eaa8a27a6deec81e8f4ca96e75c59b86df52c649225f789eeba9da32bd6743fbbdb8c39475f945d55405cd8a39b3b6bbbee297cd06fd91ad4f8f5ecd95f3b7c3
-Size (uftp-4.1.2.tar) = 1198080 bytes
-SHA1 (patch-makefile) = 116a202412b40076734caf3500566c60d31f33d0
-SHA1 (patch-uftp_common.c) = 87d3a6e4b1216d3cd81a55441412811152f0de3d
+SHA1 (uftp-4.10.tar.gz) = 535617c3c8e9ec87bfe67bf49ee728b70dc0b3e8
+RMD160 (uftp-4.10.tar.gz) = 1f4060bb04e2fcceb3d1d610883f26612aaead26
+SHA512 (uftp-4.10.tar.gz) = 204d1fa6134ca7481d2594cd0353cb53e84c5f25c28541a3b1f079ad86caea5cba056bf2a95a146c79df340bdc9c953c9333f8660991ae452c7fca4d7388bf7a
+Size (uftp-4.10.tar.gz) = 245436 bytes
+SHA1 (patch-makefile) = 407fe785876d34900e74c29583f0dce241eebcce
diff -r 0e92cc2d7010 -r c5ac5a79f12d net/uftp/patches/patch-makefile
--- a/net/uftp/patches/patch-makefile Fri Sep 13 10:25:14 2019 +0000
+++ b/net/uftp/patches/patch-makefile Fri Sep 13 10:42:05 2019 +0000
@@ -1,45 +1,13 @@
-$NetBSD: patch-makefile,v 1.2 2014/07/25 14:18:18 jperkin Exp $
+$NetBSD: patch-makefile,v 1.3 2019/09/13 10:42:05 nia Exp $
-Fixup install and add NetBSD
-
---- makefile.orig 2013-08-19 01:10:13.000000000 +0000
+--- makefile.orig 2017-12-16 21:03:16.000000000 +0000
+++ makefile
-@@ -53,6 +53,11 @@ ifeq ("FreeBSD", "$(UNAME_S)")
- OPTIONS=-g -Wall -DHAS_GETIFADDRS -DNO_DUAL -DNO_MCAST_JOIN $(ENC_OPTS)
- endif
-
-+# NetBSD
-+ifeq ("NetBSD", "$(UNAME_S)")
-+OPTIONS=-g -Wall -DHAS_GETIFADDRS -DNO_DUAL -DNO_MCAST_JOIN -DNOSIOCGIFINDEX $(ENC_OPTS)
-+endif
-+
- # OSX, aka Darwin
- ifeq ("Darwin", "$(UNAME_S)")
- OPTIONS=-g -Wall -DHAS_GETIFADDRS $(ENC_OPTS)
-@@ -64,7 +69,7 @@ CC = cc
- OPTIONS=-g -DBSD_COMP -DNO_DUAL $(ENC_OPTS)
+@@ -59,7 +59,7 @@ CC = cc
+ OPTIONS=-g -DBSD_COMP -DNO_DUAL -DNO_RECVMSG $(ENC_OPTS)
LDLIBS=-lnsl -lsocket -lm $(CRYPT_LIB)
- CFLAGS=`getconf LFS_CFLAGS`
+ CFLAGS+=`getconf LFS_CFLAGS`
-OPENSSL=/usr/sfw
+#OPENSSL=/usr/sfw
MTFLAGS=-mt
endif
-@@ -197,12 +202,9 @@ uftp_keymgt: $(UFTP_KEYMGT_OBJS)
- $(CC) $(OPTIONS) $(INCLUDE) $(CFLAGS) $(MTFLAGS) -c $<
-
- install: all
-- install -m 755 -d $(DESTDIR)/bin
-- install -m 755 -d $(DESTDIR)/usr/sbin
-- install -m 755 -d $(DESTDIR)/usr/share/man/man1
-- /bin/cp -p uftp $(DESTDIR)/bin
-- /bin/cp -p uftpd $(DESTDIR)/usr/sbin
-- /bin/cp -p uftpproxyd $(DESTDIR)/usr/sbin
-- /bin/cp -p uftp_keymgt $(DESTDIR)/bin
-- /bin/cp -p uftp.1 uftpd.1 uftpproxyd.1 uftp_keymgt.1 $(DESTDIR)/usr/share/man/man1
-+ ${BSD_INSTALL_PROGRAM} uftp $(DESTDIR)$(PREFIX)/bin
-+ ${BSD_INSTALL_PROGRAM} uftpd $(DESTDIR)$(PREFIX)/sbin
-+ ${BSD_INSTALL_PROGRAM} uftpproxyd $(DESTDIR)$(PREFIX)/sbin
-+ ${BSD_INSTALL_PROGRAM} uftp_keymgt $(DESTDIR)$(PREFIX)/bin
-+ ${BSD_INSTALL_MAN} uftp.1 uftpd.1 uftpproxyd.1 uftp_keymgt.1 $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
-
diff -r 0e92cc2d7010 -r c5ac5a79f12d net/uftp/patches/patch-uftp_common.c
--- a/net/uftp/patches/patch-uftp_common.c Fri Sep 13 10:25:14 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-$NetBSD: patch-uftp_common.c,v 1.1 2013/10/05 17:40:38 mspo Exp $
-netbsd does not have SIOCGIFINDEX
-
---- uftp_common.c-orig 2013-10-05 01:33:19.000000000 +0000
-+++ uftp_common.c
-@@ -141,11 +141,13 @@ void getiflist(struct iflist *list, int
- while (ifa_tmp && (*len < count)) {
- strncpy(ifr_tmp.ifr_name, ifa_tmp->ifa_name, sizeof(ifr_tmp.ifr_name));
- ifr_tmp.ifr_name[sizeof(ifr_tmp.ifr_name)-1] = '\x0';
-+#ifndef NOSIOCGIFINDEX
- if (ioctl(s, SIOCGIFINDEX, &ifr_tmp) == -1) {
- syserror(0, 0, "Error getting interface index for interface %s",
- ifa_tmp->ifa_name);
- continue;
- }
-+#endif
- if (ifa_tmp->ifa_addr && ((ifa_tmp->ifa_addr->sa_family == AF_INET) ||
- (ifa_tmp->ifa_addr->sa_family == AF_INET6)) &&
- ((ifa_tmp->ifa_flags & IFF_UP) != 0)) {
-@@ -156,11 +158,14 @@ void getiflist(struct iflist *list, int
- sizeof(struct sockaddr_storage));
- list[*len].isloopback = (ifa_tmp->ifa_flags & IFF_LOOPBACK) != 0;
- list[*len].ismulti = (ifa_tmp->ifa_flags & IFF_MULTICAST) != 0;
-+#ifndef NOSIOCGIFINDEX
-+ if (ioctl(s, SIOCGIFINDEX, &ifr_tmp) == -1) {
- #ifdef ifr_ifindex
- list[*len].ifidx = ifr_tmp.ifr_ifindex;
- #else
- list[*len].ifidx = ifr_tmp.ifr_index;
- #endif
-+#endif
-
- (*len)++;
- }
Home |
Main Index |
Thread Index |
Old Index