This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
注册名:pc6.com | |
注册码:KZT2TQZXJKASERKKN833 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; | |
typedef unsigned char u_char; | |
typedef unsigned short u_short; | |
// pcap header | |
typedef struct pcap_file_header { | |
__int32_t magic; // 标志位,默认为16进制的 0xa1b2c3d4 | |
__int16_t version_major; // 主版本号,默认为Ox2。返回写入被打开文件所使用的pcap函数的主版本号 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# project setup | |
# ****************************************************************************** | |
cmake_minimum_required(VERSION 3.0) | |
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/cmake") | |
include(Functions) | |
set(PROJECT_NAME "Toou2DExample") | |
set(CMAKE_AUTOMOC ON) |