From: David Schweikert Date: Wed, 24 Jul 2013 19:36:02 +0000 (+0200) Subject: Removed setsockopt IPV6_CHECKSUM, which shouldn't be set and breaks compiling on... X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0252f6e79c2995ce2625f653afd92e03199a6ae;p=fping.git Removed setsockopt IPV6_CHECKSUM, which shouldn't be set and breaks compiling on Solaris (reported by Juergen Arndt) --- diff --git a/ChangeLog b/ChangeLog index e4695dc..8c29177 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +UNRELEASED + * Removed setsockopt IPV6_CHECKSUM, which shouldn't be set and breaks + compiling on Solaris (reported by Juergen Arndt) + + 2013-05-22 David Schweikert * Version 3.5 * Fix sprint_tm buffer size crash (reported by Japheth Cleaver) diff --git a/src/fping.c b/src/fping.c index 4215215..4f6c97b 100644 --- a/src/fping.c +++ b/src/fping.c @@ -467,16 +467,6 @@ int main( int argc, char **argv ) if (setsockopt(s, IPPROTO_IPV6, IPV6_HOPLIMIT, &opton, sizeof(opton))) err(1, "setsockopt(IPV6_HOPLIMIT)"); -#endif -#ifdef IPV6_CHECKSUM -#ifndef SOL_RAW -#define SOL_RAW IPPROTO_IPV6 -#endif - opton = 2; - if (setsockopt(s, SOL_RAW, IPV6_CHECKSUM, &opton, - sizeof(opton))) - err(1, "setsockopt(SOL_RAW,IPV6_CHECKSUM)"); -#endif #endif if( ( uid = getuid() ) )