pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/ucspi-tcp6 Update to ucspi-tcp6-1.11.0. From the c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d03e838812b4
branches:  trunk
changeset: 345749:d03e838812b4
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Mon Dec 16 21:26:12 2019 +0000

description:
Update to ucspi-tcp6-1.11.0. From the changelog:

- Fixed incorrect behavior for IPv4 address given as hostname for
  tcpserver and tcpclient.
- Added tcprulescheck verbose info message.
- Requires fehQlibs-13.

diffstat:

 net/ucspi-tcp6/Makefile                      |   5 +-
 net/ucspi-tcp6/distinfo                      |  12 +++----
 net/ucspi-tcp6/patches/patch-src_tcpclient.c |  24 --------------
 net/ucspi-tcp6/patches/patch-src_tcpserver.c |  46 ----------------------------
 4 files changed, 7 insertions(+), 80 deletions(-)

diffs (108 lines):

diff -r 325060f4d817 -r d03e838812b4 net/ucspi-tcp6/Makefile
--- a/net/ucspi-tcp6/Makefile   Mon Dec 16 21:25:51 2019 +0000
+++ b/net/ucspi-tcp6/Makefile   Mon Dec 16 21:26:12 2019 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.18 2019/08/19 22:05:39 schmonz Exp $
+# $NetBSD: Makefile,v 1.19 2019/12/16 21:26:12 schmonz Exp $
 
-DISTNAME=              ucspi-tcp6-1.10.7
-PKGREVISION=           1
+DISTNAME=              ucspi-tcp6-1.11.0
 CATEGORIES=            net
 MASTER_SITES=          https://www.fehcom.de/ipnet/ucspi-tcp6/
 EXTRACT_SUFX=          .tgz
diff -r 325060f4d817 -r d03e838812b4 net/ucspi-tcp6/distinfo
--- a/net/ucspi-tcp6/distinfo   Mon Dec 16 21:25:51 2019 +0000
+++ b/net/ucspi-tcp6/distinfo   Mon Dec 16 21:26:12 2019 +0000
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.14 2019/08/19 22:05:39 schmonz Exp $
+$NetBSD: distinfo,v 1.15 2019/12/16 21:26:12 schmonz Exp $
 
-SHA1 (ucspi-tcp6-1.10.7.tgz) = 82d06361e8b69ca4a6df8106876c2d9041906d2a
-RMD160 (ucspi-tcp6-1.10.7.tgz) = 70fe5dd1e1aded55d3f1d58771eeef2fc32ceda5
-SHA512 (ucspi-tcp6-1.10.7.tgz) = 3ceb78d2a761156f7c0ee2b9ad36f728bcb78cad588bcd5f29e305a26b25fd1fc424b970dd0abfe4769680b756cfc4f60b1c60204e0eacce43d5ccc5f90fb85d
-Size (ucspi-tcp6-1.10.7.tgz) = 51200 bytes
-SHA1 (patch-src_tcpclient.c) = 12d4a7f4ae2b50b1c2357b1960306ad3296103da
-SHA1 (patch-src_tcpserver.c) = 922089930e9c05e6b8aecc22c1912fc212bd7ab3
+SHA1 (ucspi-tcp6-1.11.0.tgz) = a684d1bae50eb574f8e72427e690075c02a79a48
+RMD160 (ucspi-tcp6-1.11.0.tgz) = c16b18e4ff27179d7b02cc23d92ae3b0cb5c4cad
+SHA512 (ucspi-tcp6-1.11.0.tgz) = 4a791c02c1c6b1882e873cc74b6ce24aff9cd975f4a49e162e7f60986358b1f61c9eb216e29a087a5fb3793501a205859f176a79865938792dce33506b03e4ec
+Size (ucspi-tcp6-1.11.0.tgz) = 51200 bytes
diff -r 325060f4d817 -r d03e838812b4 net/ucspi-tcp6/patches/patch-src_tcpclient.c
--- a/net/ucspi-tcp6/patches/patch-src_tcpclient.c      Mon Dec 16 21:25:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-src_tcpclient.c,v 1.1 2019/08/19 22:05:39 schmonz Exp $
-
-Apply upstream patch to fix incorrect behavior in tcpclient when an IPv4
-address is given as the hostname.
-
---- src/tcpclient.c.orig       2019-07-19 17:32:34.000000000 +0000
-+++ src/tcpclient.c
-@@ -133,12 +133,10 @@ int main(int argc,char **argv)
- 
-   if (!*++argv) usage();
- 
--
--  if (ipv4socket) {
--     if (ip4_scan(hostname,ipremote)) {
--       if (!stralloc_copyb(&addresses,(char *)V4mappedprefix,12)) nomem();
--       byte_copy(addresses.s + 12,4,ipremote);
--     }
-+  if (ip4_scan(hostname,ipremote + 12)) {
-+    if (!stralloc_copys(&addresses,"")) nomem();
-+    byte_copy(addresses.s,12,V4mappedprefix);
-+    byte_copy(addresses.s + 12,4,ipremote + 12);
-   } else if (ip6_scan(hostname,ipremote))
-      if (!stralloc_copyb(&addresses,ipremote,16)) nomem();
- 
diff -r 325060f4d817 -r d03e838812b4 net/ucspi-tcp6/patches/patch-src_tcpserver.c
--- a/net/ucspi-tcp6/patches/patch-src_tcpserver.c      Mon Dec 16 21:25:51 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
-$NetBSD: patch-src_tcpserver.c,v 1.1 2019/08/19 22:05:39 schmonz Exp $
-
-Apply upstream patch to fix incorrect behavior in tcpserver when an IPv4
-address is given as the hostname.
-
---- src/tcpserver.c.orig       2019-07-14 10:16:33.000000000 +0000
-+++ src/tcpserver.c
-@@ -137,8 +137,9 @@ void doit(int t)
- {
-   uint32 netif;
-   int j;
--
--  ipv4socket = ip6_isv4mapped(remoteip);
-+ 
-+  if (!ipv4socket) 
-+    ipv4socket = ip6_isv4mapped(remoteip);
- 
-   if (socket_local(t,localip,&localport,&netif) == -1)
-     logmsg(WHO,111,FATAL,"unable to get local address");
-@@ -392,10 +393,11 @@ int main(int argc,char **argv)
- 
-   /* Name qualification */
- 
--  if (ip4_scan(hostname,localip)) {
-+  if (ip4_scan(hostname,localip + 12)) {
-     if (!stralloc_copys(&addresses,"")) drop_nomem();
-     byte_copy(addresses.s,12,V4mappedprefix);
--    byte_copy(addresses.s + 12,4,localip);
-+    byte_copy(addresses.s + 12,4,localip + 12);
-+    ipv4socket = 1;
-   } else if (ip6_scan(hostname,localip))
-     if (!stralloc_copyb(&addresses,localip,16)) drop_nomem();
- 
-@@ -403,10 +405,9 @@ int main(int argc,char **argv)
-     if (!stralloc_copys(&tmp,hostname)) drop_nomem();
-     if (!dns_ip6_qualify(&addresses,&fqdn,&tmp))
-       logmsg(WHO,111,FATAL,B("temporarily unable to figure out IP address for: ",(char *)hostname));
--    if (addresses.len < 16)
--      logmsg(WHO,111,FATAL,B("no IP address for: ",(char *)hostname));
-   }
--  byte_copy(localip,16,addresses.s);
-+  if (addresses.len < 16)
-+    logmsg(WHO,111,FATAL,B("no IP address for: ",(char *)hostname));
- 
-   s = socket_tcp();
-   if (s == -1)



Home | Main Index | Thread Index | Old Index