WSAIoctl在Windows Server 2003上失败 [英] WSAIoctl fails on Windows Server 2003

查看:90
本文介绍了WSAIoctl在Windows Server 2003上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

通过寻找解决方案浪费了将近两天后,我在这里试试运气.

我正在使用使用WSA套接字(Windows套接字)的小嗅探器 [ ^ ].

我的问题是,在WSAIoctl中的调用在Windows Server 2003(NOR R2 !!!),SP2下返回WSAEINVAL(10022)(问题同时出现在x64和x86中).我没有修改上面链接中示例的代码.

这一切在Win7,Win Server 2008,Win Server 2003 R2(是的,在这里起作用!),Win2K上都可以很好地工作. (我还没有机会测试XP)

因此,现在,WSAIoctl无法正常工作的Win2K3 Server有什么问题?有人知道这个问题吗?

TIA
Hannes

解决方案

文档说MS的网络监视器? [A Little Sniffer that Uses WSA Sockets (Windows Sockets)[^].

My problem is that the call in WSAIoctl returns WSAEINVAL (10022) under Windows Server 2003 (NOT R2!!!), SP2 (the problem occures in both x64 and x86). I did not modify the code from the sample in the link above.

This all works well on Win7, Win Server 2008, Win Server 2003 R2 (yes, here it works!), Win2K. (I didn''t have the opportunity to test XP yet)

So now, what is wrong with Win2K3 Server that WSAIoctl does not work? Anyone knowing this problem?

TIA
Hannes

解决方案

the docs say Setting this IOCTL requires Administrator privilege on the local computer[^]

It may be that the network card you have doesn''t support promiscuous mode - either way, have you established it is possible on that server with something like MS''s Network Monitor?[^]


after keeping searching and testing it seems that Win2K3 is not the problem. Either MS Network Monitor, also Wireshark do not work in any way with this hardware.


这篇关于WSAIoctl在Windows Server 2003上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆