Click here to Skip to main content
15,886,789 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

after wasting nearly two days by searching for a solution I try my luck here.

I am using the sniffer from 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
Posted
Updated 5-Jun-11 23:53pm
v2

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?[^]
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900