about summary refs log tree commit diff
path: root/Completion/Solaris/Command/_dhcpinfo
blob: 076b015b729c729bfd62fcc407336afebeacc317 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#compdef dhcpinfo

_dhcpinfo() {
	local -a mnemonics_v4 mnemonics_v6

	mnemonics_v4=(
		Subnet UTCoffst Router Timeserv IEN116ns DNSserv Logserv
		Cookie Lprserv Impress Resource Hostname Bootsize Dumpfile
		DNSdmain Swapserv Rootpath ExtendP IpFwdF NLrouteF PFilter
		MaxIpSiz IpTTL PathTO PathTbl MTU SameMtuF Broadcst
		MaskDscF MaskSupF RDiscvyF RSolictS StaticRt TrailerF
		ArpTimeO EthEncap TcpTTL TcpKaInt TcpKaGbF NISdmain
		NISservs NTPservs NetBNms NetBDsts NetBNdT NetBScop
		XFontSrv XDispMgr LeaseTim Message T1Time T2Time NW_dmain
		NWIPOpts NIS+dom NIS+serv TFTPsrvN OptBootF MblIPAgt
		OptBootF MblIPAgt SMTPserv POP3serv NNTPserv WWWservs
		Fingersv IRCservs STservs STDAservs UserClas SLP_DA SLP_SS
		AgentOpt FQDN PXEarch BootFile BootPath BootSrvA BootSrvN
		EchoVC LeaseNeg
	)

	mnemonics_v6=(
		ClientID ServerID Preference Unicast UserClass VendorClass
		SIPNames SIPAddresses DNSAddresses DNSSearch NISServers
		NIS+Servers NISDomain NIS+Domain SNTPServers InfoRefresh
		BCMCDomain BCMCAddresses
	)

	_arguments -A \
		'-c[]' \
		'-i[Interface]:interface:' \
		'-n[Maximum number of lines]:limit:' \
		':DHCP Parameter:_values "DHCP Parameter" $mnemonics_v4' \
}

_dhcpinfo "$@"