[Mono-dev] Mono C# + IOCTL

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Sat Dec 13 22:38:37 EST 2008


On Thu, 2008-12-11 at 19:26 -0800, Alex wrote:
> Just tried it out, it produced an exception.
> 
> Unhandled Exception: System.Net.Sockets.SocketException: Bad address
>           
>  Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Raw,
> ProtocolType.Ggp);
>  s.IOControl(0x8933, null, null);

This is not the way to use ioctl in C. You need additional parameters.
See netdevice(7).

-Gonzalo





More information about the Mono-devel-list mailing list