[Mono-bugs] [Bug 49015][Wis] New - Creating an ICMP socket fails

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 29 Sep 2003 07:11:51 -0400 (EDT)


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 joergr@voelcker.com.

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

--- shadow/49015	2003-09-29 07:11:51.000000000 -0400
+++ shadow/49015.tmp.1441	2003-09-29 07:11:51.000000000 -0400
@@ -0,0 +1,62 @@
+Bug#: 49015
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Suse 8.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Creating an ICMP socket fails
+
+Description of Problem:
+We try to create an ICMP socket to ping another host. Mono on Linux throws
+an exception when the constructor of the Socket class is called.
+
+Sample code:
+
+using System;
+using System.Net;
+using System.Net.Sockets;
+
+namespace IcmpTest
+{
+	public class IcmpTest
+	{
+		public static void Main()
+		{
+			Socket IcmpSocket = new Socket(AddressFamily.InterNetwork,
+SocketType.Raw, ProtocolType.Icmp);
+		}
+	}
+}
+
+
+Actual Results:
+Unhandled Exception: System.Net.Sockets.SocketException: Some sort of w32
+error occurred: 0
+in (unmanaged)
+/home/viadmin/mono-cvs/install/lib/libmono.so.0(mono_raise_exception+0x22)
+[0x400aee26]
+in (unmanaged) /home/viadmin/mono-cvs/install/lib/libmono.so.0 [0x400d01c6]
+in [0x00035] (at
+/home/viadmin/mono-cvs/mcs/class/System/System.Net.Sockets/Socket.cs:417)
+00 System.Net.Sockets.Socket:.ctor
+(System.Net.Sockets.AddressFamily,System.Net.Sockets.SocketType,System.Net.Sockets.ProtocolType)
+in <0x00037> 00 IcmpTest.IcmpTest:Main ()
+
+
+Expected Results:
+No exception.
+
+How often does this happen? 
+Always.
+
+Additional Information: