// Set socket to promiscuous mode // setsockopt wont work ... dont even try it if ( WSAIoctl( sniff_socket, SIO_RCVALL_IPLEVEL, &optval, sizeof(optval), NULL, 0, &dwLen, NULL, NULL ) == SOCKET_ERROR ) {
#include "mstcpip.h"
SIO_RCVALL_IPLEVEL
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)