[Mono-bugs] [Bug 54565][Cri] Changed - Problems with raw sockets
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 19 Feb 2004 11:25:44 -0500 (EST)
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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=54565
--- shadow/54565 2004-02-19 03:51:36.000000000 -0500
+++ shadow/54565.tmp.4865 2004-02-19 11:25:44.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 54565
Product: Mono/Class Libraries
Version: unspecified
OS: Fedora 1.0
OS Details:
-Status: NEW
-Resolution:
-Severity:
+Status: RESOLVED
+Resolution: FIXED
+Severity: Unknown
Priority: Critical
Component: System
AssignedTo: mono-bugs@ximian.com
ReportedBy: giuseppe.greco@agamura.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -50,6 +50,28 @@
The attached test program works on M$ Windows.
------- Additional Comments From giuseppe.greco@agamura.com 2004-02-19 03:51 -------
Created an attachment (id=6731)
Tarball containing the source files to reproduce the problem.
+
+------- Additional Comments From gonzalo@ximian.com 2004-02-19 11:25 -------
+First, creating AF_INET, SOCK_RAW, 0 sockets do not work on unix and
+the error reported (Network subsystem is down) was wrong. That's
+already fixed.
+
+Then, I had to use a 4 (ip over ip) and run the receiver as root to be
+allowed creating a socket like that.
+
+Also Socket.IOControl wasn't implemented (it is now).
+
+And, finally,
+
+ int SIO_RCVALL = unchecked ((int) 0x98000001);
+
+is a Winsock 2.0 only ioctl to set promiscuous mode, as advised in
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/wsaioctl_2.asp
+
+So, all the bugs are fixed but this ioctl throws a SocketException
+('Invalid arguments') on non-windows platforms (see man ioctl_list on
+linux for a list on ioctls supported for sockets).
+