#
#	Copyright (c) 1995, 1996, Sun Microsystems, Inc.
#
# This software is provided by Sun ``AS IS'' and any express or implied
# warranties, including, but not limited to, the implied warranties of
# merchantability and fitness for a particular purpose are disclaimed.
# In no event shall Sun Microsystems be liable for any direct, indirect,
# incidental, special, exemplary, or consequential damages.
#
# This software is not a product, and is provided for evaluation purposes
# only.
#
# This software may not be resold without the express permission of
# Sun Microsystems.
#
# Feedback on this tool may be sent to packet-shell-owner@sunroof.eng.sun.com.
#
# Packet Shell
#
# @(#)icmp.proto	1.2
#

array set icmpFieldInfo {

cksum	"\nChecksum Field: Optional Numeric (Integer)\n\nUsed to detect data corruption in the ICMP message.\n\nExamples:\n  pset pkt1 icmp cksum\n  pset pkt1 icmp cksum 0xf\n  pget pkt1 icmp cksum"

type	"\nType Field: Numeric (Integer) or String (type-name)\n\nIndicates the type of the message.  Its value determines the format\nof the remaining data.\n\nExamples:\n  pset pkt1 icmp type unreachable\n  pget pkt1 icmp type\n\nPossible values for type-names:\n unreachable\n time exceeded\n parameter problem\n echo\n echo reply\n source quench\n redirect\n tstamp\n tstamp-reply\n ireq\n ireq reply\n maskreq\n maskreq-reply"

code	"\nCode Field: Numeric (Integer)\n\nDepends on the message type.  Used to create an additional level of granularity.\n\nExamples:\n  pset pkt1 icmp code 2\n  pget pkt1 icmp code"

word1	"\nPointer Field: Numeric (Integer)\n\nIdentifies the octet offset within the invoking packet where\nthe error was detected.\n\nExamples:\n  pset pkt1 icmp word1 80\n  pget pkt1 icmp word" 

target	"\nDestination Address: Address (IPv4 format)\n\nRefers to the IPv4 target address (usually copied from the Source Address of the invoking packet).\n\nExamples:\n  pset pkt1 icmp target 129.145.65.10\n  pget pkt1 icmp target"

target-ether	"\nTarget Ether: Address (Ethernet)\n\nRefers to the link layer destination address option.\n\nExamples:\n  pset pkt1 icmp target-ether 8:0:20:7a:b9:e9\n  pget pkt1 icmp target-ether"

source-ether	"\nSource Ether: Address (Ethernet)\n\nRefers to the link layer source address option.\n\nExamples:\n  pset pkt1 icmp source-ether 8:0:20:7a:b9:e9\n  pget pkt1 icmp source-ether"

}

set pset_icmp [array names icmpFieldInfo]
set pget_icmp [array names icmpFieldInfo]

set protocolInfo(icmp)	"Internet Control Message Protocol, Version 4"
