Hello community, here is the log from the commit of package netcat-openbsd for openSUSE:Factory checked in at 2020-12-18 19:52:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/netcat-openbsd (Old) and /work/SRC/openSUSE:Factory/.netcat-openbsd.new.5145 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "netcat-openbsd" Fri Dec 18 19:52:10 2020 rev:27 rq:856314 version:1.203 Changes: -------- --- /work/SRC/openSUSE:Factory/netcat-openbsd/netcat-openbsd.changes 2020-12-09 22:11:32.867074730 +0100 +++ /work/SRC/openSUSE:Factory/.netcat-openbsd.new.5145/netcat-openbsd.changes 2020-12-18 19:52:11.633600375 +0100 @@ -1,0 +2,12 @@ +Tue Dec 15 13:15:37 UTC 2020 - Cristian RodrÃguez <[email protected]> + +- Build with hidden visibility since no symbols should be exported + +------------------------------------------------------------------- +Tue Dec 15 13:05:05 UTC 2020 - Cristian RodrÃguez <[email protected]> + +- enable-udp-ip_recverr.patch: Enable IP_RECVERR on UDP sockets + to match *bsd behaviour and avoid long timeouts if an error + ocurrs. + +------------------------------------------------------------------- New: ---- enable-udp-ip_recverr.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ netcat-openbsd.spec ++++++ --- /var/tmp/diff_new_pack.B7vqZp/_old 2020-12-18 19:52:12.293601102 +0100 +++ /var/tmp/diff_new_pack.B7vqZp/_new 2020-12-18 19:52:12.297601106 +0100 @@ -40,6 +40,7 @@ Patch12: use-flags-to-specify-listen-address.patch Patch13: misc-failures-and-features.patch Patch14: port-select-on-connect.patch +Patch15: enable-udp-ip_recverr.patch BuildRequires: pkgconfig BuildRequires: pkgconfig(libbsd) Provides: nc6 = %{version} @@ -65,7 +66,7 @@ %build make %{?_smp_mflags} \ - CFLAGS="%{optflags}" + CFLAGS="%{optflags} -fvisibility=hidden" %install install -D -m0755 nc %{buildroot}%{_bindir}/nc ++++++ enable-udp-ip_recverr.patch ++++++ Index: netcat-openbsd-1.203/netcat.c =================================================================== --- netcat-openbsd-1.203.orig/netcat.c +++ netcat-openbsd-1.203/netcat.c @@ -1889,6 +1889,21 @@ udptest(int s) return 1; } +static int +enable_icmp_errors (int family, int fd) +{ + int one = 1; + switch (family) + { + case AF_INET: + return setsockopt (fd, SOL_IP, IP_RECVERR, &one, sizeof (one)); + case AF_INET6: + return setsockopt (fd, SOL_IPV6, IPV6_RECVERR, &one, sizeof (one)); + default: + return -1; + } +} + void set_common_sockopts(int s, const struct sockaddr* sa) { @@ -1982,6 +1997,8 @@ set_common_sockopts(int s, const struct errx(1, "can't set IPv6 min hop count (unavailable)"); #endif } + if(uflag) + enable_icmp_errors(af,s); } int _______________________________________________ openSUSE Commits mailing list -- [email protected] To unsubscribe, email [email protected] List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/[email protected]
