#
#	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
#
# @(#)ip.proto	1.2
#

array set ipFieldInfo {

src	"\nSource Address: Address (IPv4)\n\nExamples:\n  pset pkt1 ip src 129.146.82.10\n  pget pkt1 ip src"

dst	"\nDestination Address: Address (IPv4)\n\nExamples:\n  pset pkt1 ip dst 129.146.82.10\n  pget pkt1 ip dst"

proto	"\nProtocol: Numeric (Integer)\n\nIndicates the next level protocol used in the data portion of the internet datagram.\n\nExamples:\n  pset pkt1 ip proto 6\n  pget pkt1 ip proto"

cksum	"\nHeader Checksum: No Argument\n\nThe checksum on the header only.\n\nExamples:\n  pset pkt1 ip cksum"

len	"\nTotal Length: Numeric (Integer)\n\nThe length of the datagram, measured in octets, including the internet header and data.\n\nExamples:\n  pset pkt1 ip len 100\n  pget pkt1 ip len"

sum	"\nHeader Checksum: Numeric (Integer)\n\nThe checksum on the header only.\n\nExamples:\n  pset pkt1 ip sum 0xf\n  pget pkt1 ip sum"

hlv	"\nHeader Length and Version: Numeric (Integer)"

tos	"\nType of Service: Numeric (Integer)\n\nProvides an indication of the abstract parameters of the quality of service desired."

id	"\nIdentification: Numeric (Integer)\n\nIdentifying value assigned by sender to aid in assembling the fragments of a datagram.\n\nExamples:"

off	"\nFragment Offset: Numeric (Integer)\n\nIndicates where in the datagram this fragment belongs, measured in units of 8 octets."

ttl	"\nTime to Live: Numeric (Integer)\n\nIndicates the maximum time the datagram is allowed to remain in the internet system.  If this field is zero, then the datagram must be destroyed."

srch	"\nReturns: IPv4 Source Address in network byte order.\n\nExample:\n  pget pkt1 ip srch"

dsth	"\nReturns: IPv4 Destination Address in network byte oder.\n\nExample:\n  pget pkt1 ip dsth"

}

set pset_ip [array names ipFieldInfo]
set pget_ip [array names ipFieldInfo]

set protocolInfo(ip)	"Internet Protocol, Version 4"
