File:  [XINU] / xinu / h / icmp.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:02 2018 UTC (8 years, 3 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19870308, HEAD
Xinu for VAX

/* icmp.h */

/* Internet Control Message Protocol Constants and Packet Format */

#define	ICRPECH	0			/* Echo reply			*/
#define	ICDESTU	3			/* Destination unreachable	*/
#define	ICSRCQN	4			/* Source quench		*/
#define	ICREDIR	5			/* Redirect message type	*/
#define	ICRQECH	8			/* Echo request			*/
#define	ICTIMEX	11			/* Time exceeded		*/
#define	ICPARMP	12			/* Parameter Problem		*/
#define	ICTIMST	13			/* Timestamp message		*/
#define	ICTIMRP	14			/* Timestamp reply		*/
#define	ICRQINF	15			/* Information request		*/
#define	ICRPINF	16			/* Information reply		*/

/* ICMP packet format (part of the packet that follows the IP header)	*/

struct	icmp	{			/* ICMP packet			*/
	char	ic_typ;			/* type of message (see above)	*/
	char	ic_code;		/* code (often zero)		*/
	short	ic_cksum;		/* checksum of icmp header+data	*/
	short	ic_id;			/* for echo type, a message id	*/
	short	ic_seq;			/* for echo type, a seq. number	*/
	char	ic_data[1];		/* data area of ICMP message	*/
};

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.