vc++实现网路嗅探
摘要:
#include <stdio.h>#include <winsock2.h>#include <ws2tcpip.h>#pragma comment (lib,"ws2_32.lib")#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)struct IPHEAD{ unsigned char h_len:4;//4位首部长度+4位IP版本号 unsigned char ver:4; unsigned char tos;//8位服务类型TOS unsigned short total_len;//16位总长度 阅读全文
posted @ 2011-03-10 01:51 小宝哥哥 阅读(215) 评论(0) 推荐(0)
浙公网安备 33010602011771号