Bug 318619 (MONO75677) - [PATCH] Adding a check in configure.in and metadata/socket-io.c
Summary: [PATCH] Adding a check in configure.in and metadata/socket-io.c
Status: RESOLVED FIXED
Alias: MONO75677
Product: Mono: Runtime
Classification: Mono
Component: io-layer (show other bugs)
Version: 1.1
Hardware: Other All
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-31 14:42 UTC by Julien Puydt
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:26:12 UTC


---- Reported by julien.puydt@laposte.net 2005-07-31 07:42:01 MST ----

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:



---- Additional Comments From vargaz@gmail.com 2005-08-02 12:48:52 MST ----

Patch checked in. Thanks.



Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>source</cf_op_sys_details>