[Mono-bugs] [Bug 75677][Min] New - [PATCH] Adding a check in configure.in and metadata/socket-io.c

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jul 31 07:42:02 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by julien.puydt at laposte.net.

http://bugzilla.ximian.com/show_bug.cgi?id=75677

--- shadow/75677	2005-07-31 07:42:02.000000000 -0400
+++ shadow/75677.tmp.15781	2005-07-31 07:42:02.000000000 -0400
@@ -0,0 +1,61 @@
+Bug#: 75677
+Product: Mono: Runtime
+Version: 1.1
+OS: All
+OS Details: source
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: io-layer
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: julien.puydt at laposte.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [PATCH] Adding a check in configure.in and metadata/socket-io.c
+
+There is a check for IP_PKTINFO, but none for IPV6_PKTINFO. The following
+patch adds one.
+diff -ur mono-1.1.8.2/configure.in mono-1.1.8.2.patched/configure.in
+--- mono-1.1.8.2/configure.in   2005-07-01 01:34:06.000000000 +0200
++++ mono-1.1.8.2.patched/configure.in   2005-07-31 13:23:56.000000000 +0200
+@@ -721,6 +721,20 @@
+                AC_MSG_RESULT(no)
+        ])
+
++       dnl *****************************
++       dnl *** Checks for IPV6_PKTINFO ***
++       dnl *****************************
++       AC_MSG_CHECKING(for IPV6_PKTINFO)
++       AC_TRY_COMPILE([#include <netdb.h>], [
++               int level = IPV6_PKTINFO;
++       ], [
++               # Yes, we have it...
++               AC_MSG_RESULT(yes)
++               AC_DEFINE(HAVE_IPV6_PKTINFO)
++       ], [
++               AC_MSG_RESULT(no)
++       ])
++
+        dnl *********************************
+        dnl *** Check for struct ip_mreqn ***
+        dnl *********************************
+diff -ur mono-1.1.8.2/mono/metadata/socket-io.c
+mono-1.1.8.2.patched/mono/metadata/socket-io.c
+--- mono-1.1.8.2/mono/metadata/socket-io.c      2005-06-19
+06:20:39.000000000 +0200
++++ mono-1.1.8.2.patched/mono/metadata/socket-io.c      2005-07-31
+13:23:56.000000000 +0200
+@@ -461,8 +461,10 @@
+                        *system_name = IPV6_LEAVE_GROUP;
+                        break;
+                case SocketOptionName_PacketInformation:
++#ifdef HAVE_IPV6_PKTINFO
+                        *system_name = IPV6_PKTINFO;
+                        break;
++#endif
+                case SocketOptionName_HeaderIncluded:
+                case SocketOptionName_IPOptions:
+                case SocketOptionName_TypeOfService:


More information about the mono-bugs mailing list