31dee10b86
Update Can you just please review if the binaries are installed in the right place ? Thanks OBS-URL: https://build.opensuse.org/request/show/347011 OBS-URL: https://build.opensuse.org/package/show/network:utilities/iputils?expand=0&rev=40
36 lines
973 B
Diff
36 lines
973 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 | 25 +------------------------
|
|
1 file changed, 1 insertion(+), 24 deletions(-)
|
|
|
|
diff --git a/ping.c b/ping.c
|
|
index b9d649531621..f9f4a28f5dc1 100644
|
|
--- a/ping.c
|
|
+++ b/ping.c
|
|
@ -898,17 +898,6 @@
|
|
|
|
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.3.5
|
|
|