forked from pool/iputils
2671b3941c
- Update to version s20161105 (Changes taken from the RELNOTES file) * ping: eliminate deadcode & simplify * ping: do not allow oversized packets to root * correctly initialize first hop * ping: fix ping -6 -I * arping,doc: fix documentation of -I * ping: fix error message when getting EACCES from connect() * renamed INSTALL to INSTALL.md * (re)structured INSTALL.md and transformed into markdown; added hint that installation into prefix has to be done with DESTDIR make variable and that there's no prefix support in configure, close #21 * ping: Silence GCC warnings when building with -fstrict-aliasing * tftpd: Drop supplementary groups for root * libgcrypt: fix static linking * doc: Inserted a missing word * tracepath6: avoid redundant family variable * tracepath: borrow everything good from tracepath6 * tracepath: switch to dual-stack operation * tracepath: remove now redundant tracepath6 * docs: fix parallel build of manpages * ping: remove assignments of values that are never read * docs: remove references to ping6 and traceroute6 * ping: work with older kernels that don't support ping sockets * Revert "ping_common.c: fix message flood when EPERM is encountered in ping" * reorder -I option parsing (boo#1057664) * ping: also bind the ICMP socket to the specific device - tracepath6 is now symlink to tracepath. OBS-URL: https://build.opensuse.org/request/show/522166 OBS-URL: https://build.opensuse.org/package/show/network:utilities/iputils?expand=0&rev=48
36 lines
980 B
Diff
36 lines
980 B
Diff
From 5bb0f0a8b0ed6f111a329c0d6911dfa516ab1d42 Mon Sep 17 00:00:00 2001
|
|
From: Noah Meyerhans <noahm@debian.org>
|
|
Date: Fri, 18 Apr 2014 15:47:29 +0200
|
|
Subject: [PATCH] remove bogus check required for < 2.4.9 kernels
|
|
|
|
Debian bug: #709052
|
|
---
|
|
ping.c | 11 -----------
|
|
1 file changed, 11 deletions(-)
|
|
|
|
diff --git a/ping.c b/ping.c
|
|
index 75420b8..0668a18 100644
|
|
--- a/ping.c
|
|
+++ b/ping.c
|
|
@@ -968,17 +968,6 @@ int ping4_receive_error_msg(socket_st *sock)
|
|
|
|
acknowledge(ntohs(icmph.un.echo.sequence));
|
|
|
|
- if (sock->socktype == SOCK_RAW && !sock->working_recverr) {
|
|
- struct icmp_filter filt;
|
|
- sock->working_recverr = 1;
|
|
- /* OK, it works. Add stronger filter. */
|
|
- filt.data = ~((1<<ICMP_SOURCE_QUENCH)|
|
|
- (1<<ICMP_REDIRECT)|
|
|
- (1<<ICMP_ECHOREPLY));
|
|
- if (setsockopt(sock->fd, SOL_RAW, ICMP_FILTER, (char*)&filt, sizeof(filt)) == -1)
|
|
- perror("\rWARNING: setsockopt(ICMP_FILTER)");
|
|
- }
|
|
-
|
|
net_errors++;
|
|
nerrors++;
|
|
if (options & F_QUIET)
|
|
--
|
|
2.14.1
|
|
|