Bugzilla – Bug 318619
[PATCH] Adding a check in configure.in and metadata/socket-io.c
Last modified: 2007-09-15 21:24:46 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>