Hello community,

here is the log from the commit of package iputils for openSUSE:Factory checked 
in at 2018-01-16 09:25:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/iputils (Old)
 and      /work/SRC/openSUSE:Factory/.iputils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "iputils"

Tue Jan 16 09:25:16 2018 rev:41 rq:562249 version:s20161105

Changes:
--------
--- /work/SRC/openSUSE:Factory/iputils/iputils.changes  2017-12-13 
11:56:08.435131290 +0100
+++ /work/SRC/openSUSE:Factory/.iputils.new/iputils.changes     2018-01-16 
09:25:17.253652279 +0100
@@ -1,0 +2,6 @@
+Fri Jan  5 11:11:03 UTC 2018 - [email protected]
+
+- Backport iputils-ping-fix-pmtu-for-ipv6.patch from upstream
+  to fix PMTU discovery in ping6. (bsc#1072460)
+
+-------------------------------------------------------------------

New:
----
  iputils-ping-fix-pmtu-for-ipv6.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ iputils.spec ++++++
--- /var/tmp/diff_new_pack.tVdErU/_old  2018-01-16 09:25:17.861623834 +0100
+++ /var/tmp/diff_new_pack.tVdErU/_new  2018-01-16 09:25:17.865623648 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package iputils
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -29,6 +29,7 @@
 Patch9:         iputils-ping-interrupt.diff
 # PATCH-FIX-UPSTREAM 
iputils-remove-bogus-check-required-for-2.4.9-kernels.patch [email protected] - 
boo#927831
 Patch10:        iputils-remove-bogus-check-required-for-2.4.9-kernels.patch
+Patch11:        iputils-ping-fix-pmtu-for-ipv6.patch
 BuildRequires:  docbook_3
 BuildRequires:  iso_ent
 BuildRequires:  libcap-devel
@@ -66,6 +67,7 @@
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11
 
 %build
 

++++++ iputils-ping-fix-pmtu-for-ipv6.patch ++++++
commit 41874d564033b071b3ee323c96ee1e6458a2ca50
Author: Jan Synacek <[email protected]>
Date:   Mon May 15 12:07:59 2017 +0200

    ping: fix pmtu discovery for ipv6
    
    Fixes: #40

diff --git ping.c ping.c
index 0668a18d202f..0c8893d1ec0f 100644
--- ping.c
+++ ping.c
@@ -108,7 +108,7 @@ int cmsg_len;
 
 static struct sockaddr_in source = { .sin_family = AF_INET };
 char *device;
-static int pmtudisc = -1;
+int pmtudisc = -1;
 
 static void create_socket(socket_st *sock, int family, int socktype, int 
protocol, int requisite)
 {
@@ -510,8 +510,14 @@ main(int argc, char **argv)
 
        if (hints.ai_family != AF_INET6)
                create_socket(&sock4, AF_INET, hints.ai_socktype, IPPROTO_ICMP, 
hints.ai_family == AF_INET);
-       if (hints.ai_family != AF_INET)
+       if (hints.ai_family != AF_INET) {
                create_socket(&sock6, AF_INET6, hints.ai_socktype, 
IPPROTO_ICMPV6, sock4.fd == -1);
+               /* This may not be needed if both protocol versions always had 
the same value, but
+                * since I don't know that, it's better to be safe than sorry. 
*/
+               pmtudisc = pmtudisc == IP_PMTUDISC_DO   ? IPV6_PMTUDISC_DO :
+                          pmtudisc == IP_PMTUDISC_DONT ? IPV6_PMTUDISC_DONT :
+                          pmtudisc == IP_PMTUDISC_WANT ? IPV6_PMTUDISC_WANT : 
pmtudisc;
+       }
        disable_capability_raw();
 
        /* Limit address family on single-protocol systems */
diff --git ping.h ping.h
index 749f3ff86f0b..a0986694dbc2 100644
--- ping.h
+++ ping.h
@@ -168,6 +168,7 @@ extern volatile int status_snapshot;
 extern int confirm;
 extern int confirm_flag;
 extern char *device;
+extern int pmtudisc;
 
 extern volatile int in_pr_addr;                /* pr_addr() is executing */
 extern jmp_buf pr_addr_jmp;
diff --git ping6_common.c ping6_common.c
index 498e5908f50f..a2a5b230e6e1 100644
--- ping6_common.c
+++ ping6_common.c
@@ -101,7 +101,6 @@ void ping6_usage(unsigned) __attribute((noreturn));
 
 struct sockaddr_in6 source6 = { .sin6_family = AF_INET6 };
 char *device;
-int pmtudisc=-1;
 
 #if defined(USE_GCRYPT) || defined(USE_OPENSSL) || defined(USE_NETTLE)
 #include "iputils_md5dig.h"

Reply via email to