]> git.gsnw.org Git - fping.git/commitdiff
Removed setsockopt IPV6_CHECKSUM, which shouldn't be set and breaks compiling on...
authorDavid Schweikert <david@schweikert.ch>
Wed, 24 Jul 2013 19:36:02 +0000 (21:36 +0200)
committerDavid Schweikert <david@schweikert.ch>
Wed, 24 Jul 2013 19:36:02 +0000 (21:36 +0200)
ChangeLog
src/fping.c

index e4695dc7fe7b600c9ec48da4faf2d592b0cfd0df..8c29177eef970323fba436dffa6d9aff4acae6a1 100644 (file)
--- 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  <david@schweikert.ch>
   * Version 3.5
   * Fix sprint_tm buffer size crash (reported by Japheth Cleaver)
index 42152155fa6efb78ddc52ac37b455c5be1445f8b..4f6c97bb2e68e216b7caee04df3c57eac1c8b550 100644 (file)
@@ -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() ) )