1Net::DHCP::Constants(3)User Contributed Perl DocumentatioNnet::DHCP::Constants(3)
2
3
4

NAME

6       Net::DHCP::Constants - Constants for DHCP codes and options
7

VERSION

9       version 0.7
10

SYNOPSIS

12         use Net::DHCP::Constants;
13         print "DHCP option SUBNET_MASK is ", DHO_SUBNET_MASK();
14

DESCRIPTION

16       Represents constants used in DHCP protocol, defined in RFC 1533, RFC
17       2132, RFC 2241, RFC 2485, RFC 2563, RFC 2937, RFC 3004, RFC 3011, RFC
18       3046.
19

TAGS

21       As mentioned above, constants can either be imported individually or in
22       sets grouped by tag names. The tag names are:
23
24       •   bootp_codes
25
26           Imports all of the basic BOOTP constants.
27
28             (01) BOOTREQUEST
29             (02) BOOTREPLY
30
31       •   htype_codes
32
33           Imports all HTYPE (hardware address type) codes.
34
35             (01) HTYPE_ETHER
36             (06) HTYPE_IEEE802
37             (08) HTYPE_FDDI
38
39           Most common value is HTYPE_ETHER for "Ethernet".
40
41       •   dhcp_message
42
43           Import all DHCP Message codes.
44
45           (rfc2132)
46
47             (01) DHCPDISCOVER
48             (02) DHCPOFFER
49             (03) DHCPREQUEST
50             (04) DHCPDECLINE
51             (05) DHCPACK
52             (06) DHCPNAK
53             (07) DHCPRELEASE
54             (08) DHCPINFORM
55             (09) DHCPFORCERENEW
56
57           (rfc4388)
58
59             (10) DHCPLEASEQUERY
60             (11) DHCPLEASEUNASSIGNED
61             (12) DHCPLEASEUNKNOWN
62             (13) DHCPLEASEACTIVE
63
64           Nb. Previously Cisco used 13 for DHCPLEASEQUERY. If you need to
65           decode or encode packets to communicate with such a system, you
66           might simply use the integer rather than the constant - or use the
67           updated constant and comment in your code appropriately.
68
69       •   dho_codes
70
71           Import all DHCP option codes.
72
73             (000) DHO_PAD
74             (001) DHO_SUBNET_MASK
75             (002) DHO_TIME_OFFSET
76             (003) DHO_ROUTERS
77             (004) DHO_TIME_SERVERS
78             (005) DHO_NAME_SERVERS
79             (006) DHO_DOMAIN_NAME_SERVERS
80             (007) DHO_LOG_SERVERS
81             (008) DHO_COOKIE_SERVERS
82             (009) DHO_LPR_SERVERS
83             (010) DHO_IMPRESS_SERVERS
84             (011) DHO_RESOURCE_LOCATION_SERVERS
85             (012) DHO_HOST_NAME
86             (013) DHO_BOOT_SIZE
87             (014) DHO_MERIT_DUMP
88             (015) DHO_DOMAIN_NAME
89             (016) DHO_SWAP_SERVER
90             (017) DHO_ROOT_PATH
91             (018) DHO_EXTENSIONS_PATH
92             (019) DHO_IP_FORWARDING
93             (020) DHO_NON_LOCAL_SOURCE_ROUTING
94             (021) DHO_POLICY_FILTER
95             (022) DHO_MAX_DGRAM_REASSEMBLY
96             (023) DHO_DEFAULT_IP_TTL
97             (024) DHO_PATH_MTU_AGING_TIMEOUT
98             (025) DHO_PATH_MTU_PLATEAU_TABLE
99             (026) DHO_INTERFACE_MTU
100             (027) DHO_ALL_SUBNETS_LOCAL
101             (028) DHO_BROADCAST_ADDRESS
102             (029) DHO_PERFORM_MASK_DISCOVERY
103             (030) DHO_MASK_SUPPLIER
104             (031) DHO_ROUTER_DISCOVERY
105             (032) DHO_ROUTER_SOLICITATION_ADDRESS
106             (033) DHO_STATIC_ROUTES
107             (034) DHO_TRAILER_ENCAPSULATION
108             (035) DHO_ARP_CACHE_TIMEOUT
109             (036) DHO_IEEE802_3_ENCAPSULATION
110             (037) DHO_DEFAULT_TCP_TTL
111             (038) DHO_TCP_KEEPALIVE_INTERVAL
112             (039) DHO_TCP_KEEPALIVE_GARBAGE
113             (040) DHO_NIS_DOMAIN
114             (041) DHO_NIS_SERVERS
115             (042) DHO_NTP_SERVERS
116             (043) DHO_VENDOR_ENCAPSULATED_OPTIONS
117             (044) DHO_NETBIOS_NAME_SERVERS
118             (045) DHO_NETBIOS_DD_SERVER
119             (046) DHO_NETBIOS_NODE_TYPE
120             (047) DHO_NETBIOS_SCOPE
121             (048) DHO_FONT_SERVERS
122             (049) DHO_X_DISPLAY_MANAGER
123             (050) DHO_DHCP_REQUESTED_ADDRESS
124             (051) DHO_DHCP_LEASE_TIME
125             (052) DHO_DHCP_OPTION_OVERLOAD
126             (053) DHO_DHCP_MESSAGE_TYPE
127             (054) DHO_DHCP_SERVER_IDENTIFIER
128             (055) DHO_DHCP_PARAMETER_REQUEST_LIST
129             (056) DHO_DHCP_MESSAGE
130             (057) DHO_DHCP_MAX_MESSAGE_SIZE
131             (058) DHO_DHCP_RENEWAL_TIME
132             (059) DHO_DHCP_REBINDING_TIME
133             (060) DHO_VENDOR_CLASS_IDENTIFIER
134             (061) DHO_DHCP_CLIENT_IDENTIFIER
135             (062) DHO_NWIP_DOMAIN_NAME
136             (063) DHO_NWIP_SUBOPTIONS
137             (064) DHO_NISV3_DOMAIN
138             (065) DHO_NISV3_SERVER
139             (066) DHO_TFTP_SERVER
140             (067) DHO_BOOTFILE
141             (068) DHO_MOBILE_IP_HOME_AGENT
142             (069) DHO_SMTP_SERVER
143             (070) DHO_POP3_SERVER
144             (071) DHO_NNTP_SERVER
145             (072) DHO_WWW_SERVER
146             (073) DHO_FINGER_SERVER
147             (074) DHO_IRC_SERVER
148             (075) DHO_STREETTALK_SERVER
149             (076) DHO_STDA_SERVER
150             (077) DHO_USER_CLASS
151             (078) DHO_DIRECTORY_AGENT
152             (079) DHO_SERVICE_SCOPE
153             (080) DHO_RAPID_COMMIT
154             (081) DHO_FQDN
155             (082) DHO_DHCP_AGENT_OPTIONS
156             (083) DHO_ISNS
157             (085) DHO_NDS_SERVERS
158             (086) DHO_NDS_TREE_NAME
159             (087) DHO_NDS_CONTEXT
160             (088) DHO_BCMCS_CONTROLLER_DOMAIN_NAME_LIST
161             (089) DHO_BCMCS_CONTROLLER_IPV4_ADDRESS
162             (090) DHO_AUTHENTICATION
163             (091) DHO_CLIENT_LAST_TRANSACTION_TIME
164             (092) DHO_ASSOCIATED_IP
165             (093) DHO_CLIENT_SYSTEM
166             (094) DHO_CLIENT_NDI
167             (095) DHO_LDAP
168             (097) DHO_UUID_GUID
169             (098) DHO_USER_AUTHENTICATION_PROTOCOL
170             (099) DHO_GEOCONF_CIVIC
171             (100) DHO_PCODE
172             (101) DHO_TCODE
173             (112) DHO_NETINFO_ADDRESS
174             (113) DHO_NETINFO_TAG
175             (114) DHO_URL
176             (116) DHO_AUTO_CONFIGURE
177             (117) DHO_NAME_SERVICE_SEARCH
178             (118) DHO_SUBNET_SELECTION
179             (119) DHO_DOMAIN_SEARCH
180             (120) DHO_SIP_SERVERS
181             (121) DHO_CLASSLESS_STATIC_ROUTE
182             (122) DHO_CCC
183             (123) DHO_GEOCONF
184             (124) DHO_VI_VENDOR_CLASS
185             (125) DHO_VI_VENDOR_SPECIFIC_INFOMATION
186             (128) DHO_ETHERBOOT_SIGNATURE
187             (129) DHO_CALL_SERVER_ADDRESS
188             (130) DHO_DISCRIMINATION_STRING
189             (131) DHO_REMOTE_STATISTICS_SERVER
190             (132) DHO_VLAN_ID
191             (133) DHO_L2_PRIORITY
192             (134) DHO_DSCP
193             (135) DHO_HTTP_PROXY_FORPHONES
194             (136) DHO_OPTION_PANA_AGENT
195             (137) DHO_OPTION_PANA_V4_LOST
196             (138) DHO_OPTION_CAPWAP_AC_V4
197             (139) DHO_OPTION_IPV4_ADDRESS_MOS
198             (140) DHO_OPTION_IPV4_FQDN_MOS
199             (141) DHO_SIP_UA_CONFIGURATION_SERVICE_DOMAINS
200             (150) DHO_ETHERBOOT
201             (176) DHO_IP_TELEPHONE
202             (177) DHO_PACKETCABLE_DEPRECATED
203             (208) DHO_PXELINUX_MAGIC
204             (209) DHO_CONFIGURATION_FILE
205             (210) DHO_PATH_PREFIX
206             (211) DHO_REBOOT_TIME
207             (212) DHO_OPTION_6RD
208             (213) DHO_OPTION_V4_ACCESS_DOMAIN
209             (220) DHO_SUBNET_ALLOCATION
210             (221) DHO_VIRTUAL_SUBNET
211             (249) DHO_CLASSLESS_STATIC_ROUTE_MS
212             (255) DHO_END
213
214       •   ccc_codes
215
216           Import all CableLabs Client Configuration
217
218             (001) CCC_PRIMARY_DHCP_SERVER
219             (002) CCC_SECONDARY_DHCP_SERVER
220             (003) CCC_PROVISIONING_SERVER
221             (004) CCC_AS_REQ_AS_REP_BACKOFFRETRY
222             (005) CCC_AP_REQ_AS_REP_BACKOFFRETRY
223             (006) CCC_KERBEROS_REALM
224             (007) CCC_TICKET_SERVER_UTILIZATION
225             (008) CCC_PROVISIONING_TIMER
226             (009) CCC_SECURITY_TICKET_CONTROL
227             (010) CCC_KDC_SERVER
228
229       •   ra_codes
230
231           Import all DHCP Agenet (aka Relay Agent) Codes
232
233             (001) RAI_CIRCUIT_ID
234             (002) RAI_REMOTE_ID
235             (004) RAI_DOCSIS_CLASS
236             (005) RAI_LINK_SELECTION
237             (006) RAI_SUBSCRIBER_ID
238             (007) RAI_RADIUS_ATTRIBUTES
239             (008) RAI_AUTHENTICATION
240             (009) RAI_VENDOR_INFO
241             (010) RAI_FLAGS
242             (011) RAI_SERVER_ID_OVERRIDE
243             (151) RAI_DHCPV4_VIRTUAL_SUBNET_SELECTION
244             (152) RAI_DHCPV4_VIRTUAL_SUBNET_SELECTION_CONTROL
245
246       •   CABLELABS_OPTION43
247
248            (002) DEVICE_TYPE
249           3 ECM
250           4 SERIAL_NUMBER
251           5 HW_VERSION
252           6 SW_VERSION
253           7 BOOT_ROM_VERSION
254           8 OUI
255           9 MODEL_NUMBER
256           10 VENDOR_NAME
257           11 PS_WAN_MAN_DATA
258           12 CM_PS_SYSTEM_DESCRIPTION
259           13 CM_PS_FIRMWARE_REV
260           14 FIREWALL_POLICY_FILE_VERSION
261           15 ESAFES
262           16 DEVICE_TPID
263           17 DEVICE SMID
264           18 VIDEOSECURITYELEMENT
265           31 MTA_MAC_ADDRESS
266           32 MTA_CORRELATION_ID
267           51 CARD_VENDOR_NAME
268           52 CARD_CAPABILITY
269           53 CARD_VENDOR_DEVICE_ID
270           54 CARD_ID
271

TO DO, LIMITATIONS

273       Automatic parsing of DHO_VENDOR_ENCAPSULATED_OPTIONS (code 43) is
274       unsupported.
275
276       Automatic parsing of DHO_NWIP_SUBOPTIONS (code 63 - rfc 2242) is
277       unsupported.
278
279       Automatic parsing of DHO_USER_CLASS (code 77 - rfc 3004) is
280       unsupported.
281
282       Automatic parsing of DHO_CCC (code 122 - rfc 3495) is unsupported.
283
284       Automatic parsing of DHO_PACKETCABLE_DEPRECATED (code 177 - rfc 3495)
285       is unsupported.
286

SEE ALSO

288       Net::DHCP::Packet, Net::DHCP::Options
289

AUTHOR

291       Dean Hamstead <dean@fragfest.com.au>
292
294       This software is Copyright (c) 2022 by Dean Hamstead.
295
296       This is free software, licensed under:
297
298         The MIT (X11) License
299
300
301
302perl v5.36.0                      2023-01-20           Net::DHCP::Constants(3)
Impressum