Class/Enums.psm1

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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# BOOTP op code
Enum OpCode {
    BOOTREQUEST = 1
    BOOTREPLY = 2
}

# DHCP Message Type
Enum DhcpMessageType {
    DHCPDISCOVER = 1
    DHCPOFFER = 2
    DHCPREQUEST = 3
    DHCPDECLINE = 4
    DHCPACK = 5
    DHCPNAK = 6
    DHCPRELEASE = 7
    DHCPINFORM = 8
    DHCPFORCERENEW = 9
}

# https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml
Enum DhcpOption {
    Pad = 0
    SubnetMask = 1
    TimeOffset = 2
    Router = 3
    TimeServer = 4
    NameServer = 5
    DomainNameServer = 6
    LogServer = 7
    QuotesServer = 8
    LPRServer = 9
    ImpressServer = 10
    RLPServer = 11
    Hostname = 12
    BootFileSize = 13
    MeritDumpFile = 14
    DomainName = 15
    SwapServer = 16
    RootPath = 17
    ExtensionFile = 18
    ForwardOnOff = 19
    SrcRteOnOff = 20
    PolicyFilter = 21
    MaxDGAssembly = 22
    DefaultIPTTL = 23
    MTUTimeout = 24
    MTUPlateau = 25
    MTUInterface = 26
    MTUSubnet = 27
    BroadcastAddress = 28
    MaskDiscovery = 29
    MaskSupplier = 30
    RouterDiscovery = 31
    RouterRequest = 32
    StaticRoute = 33
    Trailers = 34
    ARPTimeout = 35
    Ethernet = 36
    DefaultTCPTTL = 37
    KeepaliveTime = 38
    KeepaliveData = 39
    NISDomain = 40
    NISServers = 41
    NTPServers = 42
    VendorSpecific = 43
    NETBIOSNameSrv = 44
    NETBIOSDistSrv = 45
    NETBIOSNodeType = 46
    NETBIOSScope = 47
    XWindowFont = 48
    XWindowManager = 49
    RequestedIPAddress = 50
    IPAddressLeaseTime = 51
    Overload = 52
    DHCPMessageType = 53
    ServerId = 54
    ParameterRequestList = 55
    DHCPMessage = 56
    DHCPMaxMsgSize = 57
    RenewalTime = 58
    RebindingTime = 59
    ClassId = 60
    ClientId = 61
    NetWareIPDomain = 62
    NetWareIPOption = 63
    NISDomainName = 64
    NISServerAddr = 65
    ServerName = 66
    BootfileName = 67
    HomeAgentAddrs = 68
    SMTPServer = 69
    POP3Server = 70
    NNTPServer = 71
    WWWServer = 72
    FingerServer = 73
    IRCServer = 74
    StreetTalkServer = 75
    STDAServer = 76
    UserClass = 77
    DirectoryAgent = 78
    ServiceScope = 79
    RapidCommit = 80
    ClientFQDN = 81
    RelayAgentInformation = 82
    iSNS = 83
    NDSServers = 85
    NDSTreeName = 86
    NDSContext = 87
    BCMCSControllerDomainNamelist = 88
    BCMCSControllerIPv4addressoption = 89
    Authentication = 90
    clientlasttransactiontimeoption = 91
    associatedipoption = 92
    ClientSystem = 93
    ClientNDI = 94
    LDAP = 95
    UUID = 97
    UserAuth = 98
    GEOCONF_CIVIC = 99
    PCode = 100
    TCode = 101
    IPv6OnlyPreferred = 108
    OPTION_DHCP4O6_S46_SADDR = 109
    NetinfoAddress = 112
    NetinfoTag = 113
    DHCPCaptivePortal = 114
    AutoConfig = 116
    NameServiceSearch = 117
    SubnetSelectionOption = 118
    DomainSearch = 119
    SIPServersDHCPOption = 120
    ClasslessStaticRouteOption = 121
    CCC = 122
    GeoConfOption = 123
    VIVendorClass = 124
    VIVendorSpecificInformation = 125
    VLANID = 132
    Layer2Priority = 133
    OPTION_PANA_AGENT = 136
    OPTION_V4_LOST = 137
    OPTION_CAPWAP_AC_V4 = 138
    OPTIONIPv4_AddressMoS = 139
    OPTIONIPv4_FQDNMoS = 140
    SIPUAConfigurationServiceDomains = 141
    OPTIONIPv4_AddressANDSF = 142
    OPTION_V4_SZTP_REDIRECT = 143
    GeoLoc = 144
    FORCERENEW_NONCE_CAPABLE = 145
    RDNSSSelection = 146
    OPTION_V4_DOTS_RI = 147
    OPTION_V4_DOTS_ADDRESS = 148
    TFTPserveraddress = 150
    statuscode = 151
    basetime = 152
    starttimeofstate = 153
    querystarttime = 154
    queryendtime = 155
    dhcpstate = 156
    datasource = 157
    OPTION_V4_PCP_SERVER = 158
    OPTION_V4_PORTPARAMS = 159
    OPTION_MUD_URL_V4 = 161
    IPTelephone = 176
    PXELINUXMagic = 208
    ConfigurationFile = 209
    PathPrefix = 210
    RebootTime = 211
    OPTION_6RD = 212
    OPTION_V4_ACCESS_DOMAIN = 213
    SubnetAllocationOption = 220
    VirtualSubnetSelectionOption = 221
    WebProxyAutoDiscovery = 252
    End = 255
}