Can I use “raw sockets” instead of Rawether or NDIS programming?
Perhaps. Microsoft Windows support for raw data sockets is inconsistent across the various platforms. On many Microsoft supports raw IGMP and ICMP sockets. Windows 2000 raw data sockets support is more extensive. However, for “security reasons” the use of raw sockets became much more limited on Windows XP and later platforms. Microsoft provides several Winsock sample applications as part of the Microsoft Platform SDK. The Platform SDK includes the RcvAll Winsock sample that illustrates how to use Windows 2000 Winsock ioctls and how to capture IP traffic on a specific network interface. The sample is under the Samples\NetDS\Winsock directory. For more information about Winsock, see the Winsock Programmers FAQ. Click here for information specifically about raw data sockets.