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

array set ipv6-routeFieldInfo {

nexthdr "\nNext Header: Numeric (Integer)\n\nIdentifies the header number following this option header.\n\nExamples:\n  pset pkt1 ipv6-route nexthdr 0\n  pget pkt1 ipv6-route nexthdr"

hdrextlen "\nOption Header Length: Numeric (Integer)\n\nIdentifies the total length of the header in octets except the first 8 byte.\n\nExample:\n  pset pkt1 ipv6-route hdrextlen 2\n  pget pkt1 ipv6-route hdrextlen\n\nNOTE: Normally hdrextlen is automatically adjusted when\naddress is added or deleted, so no need to set this variable."

type "\nRouting Header Type : Numeric (Integer)\n\nThe library currently only supports type zero.\n\nExample:\n  pset pkt1 ipv6-route type 0\n  pget pkt1 ipv6-route type"

segment  "\nSegments left: Numeric (Integer)\n\nIdentifies number of segments left in the routing option header.\n\nExample:\n  pset pkt1 ipv6-route segment 1\n  pget pkt1 ipv6-route segment"

flag  "\nFlag Bit : Numeric (Integer)\n\nIdentifies strict-loose bit map per segment.\n\nExample:\n  pset pkt1 ipv6-route flag 0\n  pget pkt1 ipv6-route flag"

add-addr "\nAppend Address: Address (IPv6 Hex Format)\n\nAppends IPv6 next hop address at the end of this option header.\n\nExample:\n  pset pkt1 ipv6-route add-addr 1:2:2::abcd\n  pget pkt1 ipv6-route addr"

del-addr "\nDelete Address: Address (IPv6 Hex Format)\n\nDelete the specified IPV6 address entry from the list of this route\noption header.\n\nExample:\n  pset pkt1 ipv6-route del-addr 1:2:2::abcd\n  pget pkt1 ipv6-route addr"      

}
 
set pset_ipv6-route [array names ipv6-routeFieldInfo]
set pget_ipv6-route [array names ipv6-routeFieldInfo]
 
set protocolInfo(ipv6-route)     "Route Option header for IPv6"
