#include <iostream.h>
#include <stdio.h>
#include <Winsock2.h>
#include <ws2tcpip.h>
#pragma comment(lib,"Ws2_32.lib")
#define MAX_SIZE 65535
#define IO_RCVALL _WSAIOW(IOC_VENDOR,1)
struct iphead{
union{
unsigned char hl;
unsigned char version;
};
unsigned char tos;
unsigned short tot_len;
unsigned short id;
union{
unsigned short flags;
unsigned short off;
};
unsigned char ttl;
unsigned char protocol;
unsigned check;
unsigned int saddr;
unsigned int daddr;
};
void main(){
WORD rv;
WSADATA WSAData;
rv=MAKEWORD(2,2);
WSAStartup(rv,&WSAData);
SOCKET sockRaw=socket(AF_INET,SOCK_RAW,IPPROTO_IP);
BOOL optval=TRUE;
setsockopt(sockRaw,IPPROTO_IP,IP_HDRINCL,(char *)&optval,sizeof