Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:15.2
iputils
iputils-remove-bogus-check-required-for-2.4.9-k...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File iputils-remove-bogus-check-required-for-2.4.9-kernels.patch of Package iputils
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor