📄 moicmp.h
字号:
/*! \file MoIcmp.h \brief ICMP僾儘僩僐儖幚憰僋儔僗 僿僢僟 Copyright (c) 2004 Yamami All rights reserved. License=MIT/X Licnese \author Yamami \version $Revision: 1.1 $ \date create:2004/09/20 update:$Date: 2004/09/20 15:29:03 $*/#ifndef _MONA_MOICMP_#define _MONA_MOICMP_#include <sys/types.h>#include <sys/HashMap.h>#include <monapi.h>#include "MoPacUtl.h"#include "MonesDefine.h"#include "AbstractMonic.h"#include "MoIp.h"/*! * \struct ICMP_HEADER * \brief ICMP僿僢僟峔憿懱 */typedef struct{ unsigned char type; /* ICMP僞僀僾丅 */ unsigned char code; /* ICMP僐乕僪丅 */ unsigned short chksum; /* 僠僃僢僋僒儉丅 */ char data[0]; /* 僨乕僞丅 */}ICMP_HEADER;/*! MoIcmp class*/class MoIcmp{ public: //僐儞僗僩儔僋僞 MoIcmp(); ~MoIcmp(); void initIp(AbstractMonic*); int receiveIcmp(IP_HEADER*); private: void transIcmp(dword , byte , byte , ICMP_HEADER*, int ); //NIC僪儔僀僶 AbstractMonic* insAbstractNic;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -