DHCP Constant Enumerations

DHCP_Opcode

BOOTP Message Op Codes

DHCP_Option

BOOTP Vendor Extensions and DHCP Options

DHCP_MessageType

DHCP Message Type 53 Values

DHCP_RelayAgentSubOption

DHCP Relay Agent Sub-Option Codes

Added in version 1.10.0.

BOOTP Message Op Codes

Generated from pcapkit.vendor.dhcp.opcode.Opcode.

class pcapkit.const.dhcp.opcode.Opcode(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[Opcode] BOOTP Message Op Codes [RFC 951]

BOOTREQUEST = 1

BOOTREQUEST [RFC 951]

BOOTREPLY = 2

BOOTREPLY [RFC 951]

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

Opcode

BOOTP Vendor Extensions and DHCP Options

Generated from pcapkit.vendor.dhcp.option.Option.

class pcapkit.const.dhcp.option.Option(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[Option] BOOTP Vendor Extensions and DHCP Options

Pad = 0

Pad [RFC 2132]

Subnet_Mask = 1

Subnet Mask – Subnet Mask Value [RFC 2132]

Time_Offset = 2

Time Offset – Time Offset in Seconds from UTC (note: deprecated by 100 and 101) [RFC 2132]

Router = 3

Router – N/4 Router addresses [RFC 2132]

Time_Server = 4

Time Server – N/4 Timeserver addresses [RFC 2132]

Name_Server = 5

Name Server – N/4 IEN-116 Server addresses [RFC 2132]

Domain_Server = 6

Domain Server – N/4 DNS Server addresses [RFC 2132]

Log_Server = 7

Log Server – N/4 Logging Server addresses [RFC 2132]

Quotes_Server = 8

Quotes Server – N/4 Quotes Server addresses [RFC 2132]

LPR_Server = 9

LPR Server – N/4 Printer Server addresses [RFC 2132]

Impress_Server = 10

Impress Server – N/4 Impress Server addresses [RFC 2132]

RLP_Server = 11

RLP Server – N/4 RLP Server addresses [RFC 2132]

Hostname = 12

Hostname – Hostname string [RFC 2132]

Boot_File_Size = 13

Boot File Size – Size of boot file in 512 byte chunks [RFC 2132]

Merit_Dump_File = 14

Merit Dump File – Client to dump and name the file to dump it to [RFC 2132]

Domain_Name = 15

Domain Name – The DNS domain name of the client [RFC 2132]

Swap_Server = 16

Swap Server – Swap Server address [RFC 2132]

Root_Path = 17

Root Path – Path name for root disk [RFC 2132]

Extension_File = 18

Extension File – Path name for more BOOTP info [RFC 2132]

Forward_On_Off = 19

Forward On/Off – Enable/Disable IP Forwarding [RFC 2132]

SrcRte_On_Off = 20

SrcRte On/Off – Enable/Disable Source Routing [RFC 2132]

Policy_Filter = 21

Policy Filter – Routing Policy Filters [RFC 2132]

Max_DG_Assembly = 22

Max DG Assembly – Max Datagram Reassembly Size [RFC 2132]

Default_IP_TTL = 23

Default IP TTL – Default IP Time to Live [RFC 2132]

MTU_Timeout = 24

MTU Timeout – Path MTU Aging Timeout [RFC 2132]

MTU_Plateau = 25

MTU Plateau – Path MTU Plateau Table [RFC 2132]

MTU_Interface = 26

MTU Interface – Interface MTU Size [RFC 2132]

MTU_Subnet = 27

MTU Subnet – All Subnets are Local [RFC 2132]

Broadcast_Address = 28

Broadcast Address [RFC 2132]

Mask_Discovery = 29

Mask Discovery – Perform Mask Discovery [RFC 2132]

Mask_Supplier = 30

Mask Supplier – Provide Mask to Others [RFC 2132]

Router_Discovery = 31

Router Discovery – Perform Router Discovery [RFC 2132]

Router_Request = 32

Router Request – Router Solicitation Address [RFC 2132]

Static_Route = 33

Static Route – Static Routing Table [RFC 2132]

Trailers = 34

Trailers – Trailer Encapsulation [RFC 2132]

ARP_Timeout = 35

ARP Timeout – ARP Cache Timeout [RFC 2132]

Ethernet = 36

Ethernet – Ethernet Encapsulation [RFC 2132]

Default_TCP_TTL = 37

Default TCP TTL – Default TCP Time to Live [RFC 2132]

Keepalive_Time = 38

Keepalive Time – TCP Keepalive Interval [RFC 2132]

Keepalive_Data = 39

Keepalive Data – TCP Keepalive Garbage [RFC 2132]

NIS_Domain = 40

NIS Domain – NIS Domain Name [RFC 2132]

NIS_Servers = 41

NIS Servers – NIS Server Addresses [RFC 2132]

NTP_Servers = 42

NTP Servers – NTP Server Addresses [RFC 2132]

Vendor_Specific = 43

Vendor Specific – Vendor Specific Information [RFC 2132]

NETBIOS_Name_Srv = 44

NETBIOS Name Srv – NETBIOS Name Servers [RFC 2132]

NETBIOS_Dist_Srv = 45

NETBIOS Dist Srv – NETBIOS Datagram Distribution [RFC 2132]

NETBIOS_Node_Type = 46

NETBIOS Node Type [RFC 2132]

NETBIOS_Scope = 47

NETBIOS Scope [RFC 2132]

X_Window_Font = 48

X Window Font – X Window Font Server [RFC 2132]

X_Window_Manager = 49

X Window Manager – X Window Display Manager [RFC 2132]

Address_Request = 50

Address Request – Requested IP Address [RFC 2132]

Address_Time = 51

Address Time – IP Address Lease Time [RFC 2132]

Overload = 52

Overload – Overload “sname” or “file” [RFC 2132]

DHCP_Msg_Type = 53

DHCP Msg Type – DHCP Message Type [RFC 2132]

DHCP_Server_Id = 54

DHCP Server Id – DHCP Server Identification [RFC 2132]

Parameter_List = 55

Parameter List – Parameter Request List [RFC 2132]

DHCP_Message = 56

DHCP Message – DHCP Error Message [RFC 2132]

DHCP_Max_Msg_Size = 57

DHCP Max Msg Size – DHCP Maximum Message Size [RFC 2132]

Renewal_Time = 58

Renewal Time – DHCP Renewal (T1) Time [RFC 2132]

Rebinding_Time = 59

Rebinding Time – DHCP Rebinding (T2) Time [RFC 2132]

Class_Id = 60

Class Id – Class Identifier [RFC 2132]

Client_Id = 61

Client Id – Client Identifier [RFC 2132]

NetWare_IP_Domain = 62

NetWare/IP Domain – NetWare/IP Domain Name [RFC 2242]

NetWare_IP_Option = 63

NetWare/IP Option – NetWare/IP sub Options [RFC 2242]

NIS_Domain_Name = 64

NIS-Domain-Name – NIS+ v3 Client Domain Name [RFC 2132]

NIS_Server_Addr = 65

NIS-Server-Addr – NIS+ v3 Server Addresses [RFC 2132]

Server_Name = 66

Server-Name – TFTP Server Name [RFC 2132]

Bootfile_Name = 67

Bootfile-Name – Boot File Name [RFC 2132]

Home_Agent_Addrs = 68

Home-Agent-Addrs – Home Agent Addresses [RFC 2132]

SMTP_Server = 69

SMTP-Server – Simple Mail Server Addresses [RFC 2132]

POP3_Server = 70

POP3-Server – Post Office Server Addresses [RFC 2132]

NNTP_Server = 71

NNTP-Server – Network News Server Addresses [RFC 2132]

WWW_Server = 72

WWW-Server – WWW Server Addresses [RFC 2132]

Finger_Server = 73

Finger-Server – Finger Server Addresses [RFC 2132]

IRC_Server = 74

IRC-Server – Chat Server Addresses [RFC 2132]

StreetTalk_Server = 75

StreetTalk-Server – StreetTalk Server Addresses [RFC 2132]

STDA_Server = 76

STDA-Server – ST Directory Assist. Addresses [RFC 2132]

User_Class = 77

User-Class – User Class Information [RFC 3004]

Directory_Agent = 78

Directory Agent – directory agent information [RFC 2610]

Service_Scope = 79

Service Scope – service location agent scope [RFC 2610]

Rapid_Commit = 80

Rapid Commit [RFC 4039]

Client_FQDN = 81

Client FQDN – Fully Qualified Domain Name [RFC 4702]

Relay_Agent_Information = 82

Relay Agent Information [RFC 3046]

iSNS = 83

iSNS – Internet Storage Name Service [RFC 4174]

REMOVED_Unassigned_84 = 84

REMOVED/Unassigned [RFC 3679]

NDS_Servers = 85

NDS Servers – Novell Directory Services [RFC 2241]

NDS_Tree_Name = 86

NDS Tree Name – Novell Directory Services [RFC 2241]

NDS_Context = 87

NDS Context – Novell Directory Services [RFC 2241]

BCMCS_Controller_Domain_Name_list = 88

BCMCS Controller Domain Name list [RFC 4280]

BCMCS_Controller_IPv4_address_option = 89

BCMCS Controller IPv4 address option [RFC 4280]

Authentication = 90

Authentication [RFC 3118]

client_last_transaction_time_option = 91

client-last-transaction-time option [RFC 4388]

associated_ip_option = 92

associated-ip option [RFC 4388]

Client_System = 93

Client System – Client System Architecture [RFC 4578]

Client_NDI = 94

Client NDI – Client Network Device Interface [RFC 4578]

LDAP = 95

LDAP – Lightweight Directory Access Protocol [RFC 3679]

REMOVED_Unassigned_96 = 96

REMOVED/Unassigned [RFC 3679]

UUID_GUID = 97

UUID/GUID – UUID/GUID-based Client Identifier [RFC 4578]

User_Auth = 98

User-Auth – Open Group’s User Authentication [RFC 2485]

GEOCONF_CIVIC = 99

GEOCONF_CIVIC [RFC 4776]

PCode = 100

PCode – IEEE 1003.1 TZ String [RFC 4833]

TCode = 101

TCode – Reference to the TZ Database [RFC 4833]

IPv6_Only_Preferred = 108

IPv6-Only Preferred – Number of seconds that DHCPv4 should be disabled [RFC 8925]

OPTION_DHCP4O6_S46_SADDR = 109

OPTION_DHCP4O6_S46_SADDR – DHCPv4 over DHCPv6 Softwire Source Address Option [RFC 8539]

REMOVED_Unassigned_110 = 110

REMOVED/Unassigned [RFC 3679]

Unassigned_111 = 111

Unassigned [RFC 3679]

Netinfo_Address = 112

Netinfo Address – NetInfo Parent Server Address [RFC 3679]

Netinfo_Tag = 113

Netinfo Tag – NetInfo Parent Server Tag [RFC 3679]

DHCP_Captive_Portal = 114

DHCP Captive-Portal [RFC 8910]

REMOVED_Unassigned_115 = 115

REMOVED/Unassigned [RFC 3679]

Auto_Config = 116

Auto-Config – DHCP Auto-Configuration [RFC 2563]

Name Service Search [RFC 2937]

Subnet_Selection_Option = 118

Subnet Selection Option [RFC 3011]

Domain Search – DNS domain search list [RFC 3397]

SIP_Servers_DHCP_Option = 120

SIP Servers DHCP Option [RFC 3361]

Classless_Static_Route_Option = 121

Classless Static Route Option [RFC 3442]

CCC = 122

CCC – CableLabs Client Configuration [RFC 3495]

GeoConf_Option = 123

GeoConf Option [RFC 6225]

V_I_Vendor_Class = 124

V-I Vendor Class – Vendor-Identifying Vendor Class [RFC 3925]

V_I_Vendor_Specific_Information = 125

V-I Vendor-Specific Information – Vendor-Identifying Vendor-Specific Information [RFC 3925]

Removed_Unassigned_126 = 126

Removed/Unassigned [RFC 3679]

Removed_Unassigned_127 = 127

Removed/Unassigned [RFC 3679]

PXE_undefined_128 = 128

PXE - undefined (vendor specific) [RFC 4578]; Etherboot signature. 6 bytes: E4:45:74:68:00:00; DOCSIS “full security” server IP address; TFTP Server IP address (for IP Phone software load)

PXE_undefined_129 = 129

PXE - undefined (vendor specific) [RFC 4578]; Kernel options. Variable length string; Call Server IP address

PXE_undefined_130 = 130

PXE - undefined (vendor specific) [RFC 4578]; Ethernet interface. Variable length string.; Discrimination string (to identify vendor)

PXE_undefined_131 = 131

PXE - undefined (vendor specific) [RFC 4578]; Remote statistics server IP address

PXE_undefined_132 = 132

PXE - undefined (vendor specific) [RFC 4578]; IEEE 802.1Q VLAN ID

PXE_undefined_133 = 133

PXE - undefined (vendor specific) [RFC 4578]; IEEE 802.1D/p Layer 2 Priority

PXE_undefined_134 = 134

PXE - undefined (vendor specific) [RFC 4578]; Diffserv Code Point (DSCP) for VoIP signalling and media streams

PXE_undefined_135 = 135

PXE - undefined (vendor specific) [RFC 4578]; HTTP Proxy for phone-specific applications

OPTION_PANA_AGENT = 136

OPTION_PANA_AGENT [RFC 5192]

OPTION_V4_LOST = 137

OPTION_V4_LOST [RFC 5223]

OPTION_CAPWAP_AC_V4 = 138

OPTION_CAPWAP_AC_V4 – CAPWAP Access Controller addresses [RFC 5417]

OPTION_IPv4_Address_MoS = 139

OPTION-IPv4_Address-MoS – a series of suboptions [RFC 5678]

OPTION_IPv4_FQDN_MoS = 140

OPTION-IPv4_FQDN-MoS – a series of suboptions [RFC 5678]

SIP_UA_Configuration_Service_Domains = 141

SIP UA Configuration Service Domains – List of domain names to search for SIP User Agent Configuration [RFC 6011]

OPTION_IPv4_Address_ANDSF = 142

OPTION-IPv4_Address-ANDSF – ANDSF IPv4 Address Option for DHCPv4 [RFC 6153]

OPTION_V4_SZTP_REDIRECT = 143

OPTION_V4_SZTP_REDIRECT – This option provides a list of URIs for SZTP bootstrap servers [RFC 8572]

GeoLoc = 144

GeoLoc – Geospatial Location with Uncertainty [RFC 6225]

FORCERENEW_NONCE_CAPABLE = 145

FORCERENEW_NONCE_CAPABLE – Forcerenew Nonce Capable [RFC 6704]

RDNSS_Selection = 146

RDNSS Selection – Information for selecting RDNSS [RFC 6731]

OPTION_V4_DOTS_RI = 147

OPTION_V4_DOTS_RI – The name of the peer DOTS agent. [RFC 8973]

OPTION_V4_DOTS_ADDRESS = 148

OPTION_V4_DOTS_ADDRESS – N/4 IPv4 addresses of peer DOTS agent(s). [RFC 8973]

Unassigned_149 = 149

Unassigned [RFC 3942]

TFTP_server_address = 150

TFTP server address [RFC 5859]; Etherboot; GRUB configuration path name

status_code = 151

status-code – Status code and optional N byte text message describing status. [RFC 6926]

base_time = 152

base-time – Absolute time (seconds since Jan 1, 1970) message was sent. [RFC 6926]

start_time_of_state = 153

start-time-of-state – Number of seconds in the past when client entered current state. [RFC 6926]

query_start_time = 154

query-start-time – Absolute time (seconds since Jan 1, 1970) for beginning of query. [RFC 6926]

query_end_time = 155

query-end-time – Absolute time (seconds since Jan 1, 1970) for end of query. [RFC 6926]

dhcp_state = 156

dhcp-state – State of IP address. [RFC 6926]

data_source = 157

data-source – Indicates information came from local or remote server. [RFC 6926]

OPTION_V4_PCP_SERVER = 158

OPTION_V4_PCP_SERVER – Includes one or multiple lists of PCP server IP addresses; each list is treated as a separate PCP server. [RFC 7291]

OPTION_V4_PORTPARAMS = 159

OPTION_V4_PORTPARAMS – This option is used to configure a set of ports bound to a shared IPv4 address. [RFC 7618]

Unassigned_160 = 160

Unassigned – Previously assigned by [RFC 7710]; known to also be used by Polycom. [RFC 7710][RFC 8910]

OPTION_MUD_URL_V4 = 161

OPTION_MUD_URL_V4 – Manufacturer Usage Descriptions [RFC 8520]

OPTION_V4_DNR = 162

OPTION_V4_DNR – Encrypted DNS Server [RFC 9463]

Etherboot_175 = 175

Etherboot (Tentatively Assigned - 2005-06-23)

IP_Telephone = 176

IP Telephone (Tentatively Assigned - 2005-06-23)

Etherboot_177 = 177

Etherboot (Tentatively Assigned - 2005-06-23); PacketCable and CableHome (replaced by 122)

PXELINUX_Magic = 208

PXELINUX Magic – magic string = F1:00:74:7E [RFC 5071][Deprecated]

Configuration_File = 209

Configuration File – Configuration file [RFC 5071]

Path_Prefix = 210

Path Prefix – Path Prefix Option [RFC 5071]

Reboot_Time = 211

Reboot Time [RFC 5071]

OPTION_6RD = 212

OPTION_6RD – OPTION_6RD with N/4 6rd BR addresses [RFC 5969]

OPTION_V4_ACCESS_DOMAIN = 213

OPTION_V4_ACCESS_DOMAIN – Access Network Domain Name [RFC 5986]

Subnet_Allocation_Option = 220

Subnet Allocation Option [RFC 6656]

Virtual_Subnet_Selection_Option = 221

Virtual Subnet Selection (VSS) Option [RFC 6607]

End = 255

End [RFC 2132]

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

Option

DHCP Message Type 53 Values

Generated from pcapkit.vendor.dhcp.message_type.MessageType.

class pcapkit.const.dhcp.message_type.MessageType(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[MessageType] DHCP Message Type 53 Values

DHCPDISCOVER = 1

DHCPDISCOVER [RFC 2132]

DHCPOFFER = 2

DHCPOFFER [RFC 2132]

DHCPREQUEST = 3

DHCPREQUEST [RFC 2132]

DHCPDECLINE = 4

DHCPDECLINE [RFC 2132]

DHCPACK = 5

DHCPACK [RFC 2132]

DHCPNAK = 6

DHCPNAK [RFC 2132]

DHCPRELEASE = 7

DHCPRELEASE [RFC 2132]

DHCPINFORM = 8

DHCPINFORM [RFC 2132]

DHCPFORCERENEW = 9

DHCPFORCERENEW [RFC 3203]

DHCPLEASEQUERY = 10

DHCPLEASEQUERY [RFC 4388]

DHCPLEASEUNASSIGNED = 11

DHCPLEASEUNASSIGNED [RFC 4388]

DHCPLEASEUNKNOWN = 12

DHCPLEASEUNKNOWN [RFC 4388]

DHCPLEASEACTIVE = 13

DHCPLEASEACTIVE [RFC 4388]

DHCPBULKLEASEQUERY = 14

DHCPBULKLEASEQUERY [RFC 6926]

DHCPLEASEQUERYDONE = 15

DHCPLEASEQUERYDONE [RFC 6926]

DHCPACTIVELEASEQUERY = 16

DHCPACTIVELEASEQUERY [RFC 7724]

DHCPLEASEQUERYSTATUS = 17

DHCPLEASEQUERYSTATUS [RFC 7724]

DHCPTLS = 18

DHCPTLS [RFC 7724]

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

MessageType

DHCP Relay Agent Sub-Option Codes

Generated from pcapkit.vendor.dhcp.relay_agent_suboption.RelayAgentSubOption.

class pcapkit.const.dhcp.relay_agent_suboption.RelayAgentSubOption(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[RelayAgentSubOption] DHCP Relay Agent Sub-Option Codes

Agent_Circuit_ID_Sub_option = 1

Agent Circuit ID Sub-option [RFC 3046]

Agent_Remote_ID_Sub_option = 2

Agent Remote ID Sub-option [RFC 3046]

Reserved_3 = 3

Sub-option 3 is reserved and should not be assigned at this time; proprietary and incompatible usages of this sub-option value have been seen limited deployment. [Ralph Droms]

DOCSIS_Device_Class_Suboption = 4

DOCSIS Device Class Suboption [RFC 3256]

Link selection Sub-option [RFC 3527]

Subscriber_ID_Suboption = 6

Subscriber-ID Suboption [RFC 3993]

RADIUS_Attributes_Sub_option = 7

RADIUS Attributes Sub-option [RFC 4014]

Authentication_Suboption = 8

Authentication Suboption [RFC 4030]

Vendor_Specific_Information_Suboption = 9

Vendor-Specific Information Suboption [RFC 4243]

Relay_Agent_Flags = 10

Relay Agent Flags [RFC 5010]

Server_Identifier_Override_Suboption = 11

Server Identifier Override Suboption [RFC 5107]

Relay_Agent_Identifier_Sub_option = 12

Relay Agent Identifier Sub-option [RFC 6925]

Access_Technology_Type_Sub_option = 13

Access-Technology-Type Sub-option [RFC 7839]

Access_Network_Name_Sub_option = 14

Access-Network-Name Sub-option [RFC 7839]

Access_Point_Name_Sub_option = 15

Access-Point-Name Sub-option [RFC 7839]

Access_Point_BSSID_Sub_option = 16

Access-Point-BSSID Sub-option [RFC 7839]

Operator_Identifier_Sub_option = 17

Operator-Identifier Sub-option [RFC 7839]

Operator_Realm_Sub_option = 18

Operator-Realm Sub-option [RFC 7839]

DHCPv4_Relay_Source_Port_Sub_Option = 19

DHCPv4 Relay Source Port Sub-Option [RFC 8357]

DHCPv4_Virtual_Subnet_Selection_Sub_Option = 151

DHCPv4 Virtual Subnet Selection Sub-Option [RFC 6607]

DHCPv4_Virtual_Subnet_Selection_Control_Sub_Option = 152

DHCPv4 Virtual Subnet Selection Control Sub-Option [RFC 6607]

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

RelayAgentSubOption