#
#	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
#
# "@(#)dhcp.proto	1.1"
#

array set dhcpFieldInfo {
op	"\nMessage Op Code: Numeric or Enumeration (8-bit Integer)\n\nExamples:\n  pset disc_pkt dhcp op BOOTREPLY\n  pget offer_pkt dhcp op"
htype	"\nHardware Address Type: Numeric or Enumeration (8-bit Integer)\n\nExamples:\n  pset disc_pkt dhcp htype ethernet\n  pget disc_pkt dhcp htype"
hlen	"\nHardware Address Length: Numeric (8-bit Integer)\n\nExample:\n  pset offer_pkt dhcp hlen [pget disc_pkt dhcp hlen]"
hops	"\nHops: Numeric (8-bit Integer)\n\nExample:\n  pget disc_pkt dhcp hops"
xid	"\nTransaction ID: Numeric (32-bit Integer)\n\nExamples:\n  pset disc_pkt dhcp xid 0xdeadbeef\n  pget offer_pkt dhcp xid"
secs	"\nSeconds Since Transaction Start: Numeric (16-bit Integer)\n\nExamples:\n  pset disc_pkt dhcp secs 30\n  pget ack_pkt dhcp secs"
flags	"\nFlags: Numeric (16-bit Integer)\n\nExample:\n  pset disc_pkt dhcp 0x8000; # turn on broadcast"
ciaddr	"\nClient IP Address: Address (IP)\n\nExample:\n  pset disc_pkt dhcp ciaddr foo.bar.net"
yiaddr	"\n\"Your\" IP Address: Address (IP)\n\nExample:\n  pset req_pkt dhcp opt \"requested ip address\" [pget offer_pkt dhcp yiaddr]"
siaddr	"\nServer IP Address (for next part of boot procedure): Address (IP)\n\nExample:\n  pget ack_pkt dhcp siaddr"
giaddr	"\nRelay Agent IP Address: Address (IP)\n\nExample:\n  pget offer_pkt dhcp giaddr"
chaddr	"\nClient Hardware Address: Address (Ethernet)\n\nExample:\n  eval pset req dhcp chaddr [pget disc dhcp chaddr]"
sname	"\nServer Hostname (optional)"
file	"\nBoot File Name (optional)"
}

set pset_dhcp [array names dhcpFieldInfo]
set pget_dhcp [array names dhcpFieldInfo]

set protocolInfo(dhcp)	"Dynamic Host Configuration Protocol"
