From a0252f6e79c2995ce2625f653afd92e03199a6ae Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Wed, 24 Jul 2013 21:36:02 +0200 Subject: [PATCH] Removed setsockopt IPV6_CHECKSUM, which shouldn't be set and breaks compiling on Solaris (reported by Juergen Arndt) --- ChangeLog | 5 +++++ src/fping.c | 10 ---------- 2 files changed, 5 insertions(+), 10 deletions(-) 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() ) ) -- 2.43.0