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

📄 icmp.h

📁 基于51的单片机的PPP协议实现
💻 H
字号:
/*/////////////////////////////////////////////////////////////////////////////

File Name : Icmp.h

Author : Rene Trenado

Location : Motorola Applications Lab, Baja California

Date Created : January 2001

Current Revision : 0.0

Notes : This file contains Icmp module specific definitions

/////////////////////////////////////////////////////////////////////////////*/
#ifndef __ICMP_H
#define __ICMP_H

#include "Notation.h"

typedef struct {
	BYTE 	Type;
	BYTE 	Code;
	WORD 	Checksum;
	WORD 	Identifier;
	WORD 	SeqNumber;
} ICMPDatagram;

#define	ECHO		8
#define ECHO_REPLY	0
#define TRACEROUTE	30

void IcmpHandler (IPDatagram *ip);
void IcmpPing (BYTE Ip[]);

#endif

⌨️ 快捷键说明

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