⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 icmpgram.h

📁 这是一个嗅探器
💻 H
字号:
// ICMPGram.h: interface for the ICMPGram class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ICMPGRAM_H__C90039E9_91B3_44D8_BF03_3CFA973890B9__INCLUDED_)
#define AFX_ICMPGRAM_H__C90039E9_91B3_44D8_BF03_3CFA973890B9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class ICMPGram  
{
public:
	ICMPGram();
	ICMPGram(const unsigned char *buf,int buflen);
	virtual ~ICMPGram();
	void GetType(CString &str1,CString &str2);
	CString GetGateWay();
	CString GetAddrMask();

	int type;//类型
	int code;//代号
	int checksum;//校验和
	int datalen;//数据长度
	unsigned char *data;//数据
	//Not for All ICMP
	unsigned int gatewayaddr;//网关地址
	unsigned int identification;//标识
	unsigned int sequence;//顺序号
	unsigned int inittime;//初始时间戳
	unsigned int receivetime;//接收时间戳
	unsigned int sendtime;//发送时间戳
	unsigned int addrmask;//地址掩码
};

#endif // !defined(AFX_ICMPGRAM_H__C90039E9_91B3_44D8_BF03_3CFA973890B9__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -