-
Notifications
You must be signed in to change notification settings - Fork 1
/
dhcpv6_const.lua
78 lines (69 loc) · 1.7 KB
/
dhcpv6_const.lua
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
#!/usr/bin/env lua
-- -*-lua-*-
--
-- $Id: dhcpv6_const.lua $
--
-- Author: Markus Stenberg <markus [email protected]>
--
-- Copyright (c) 2013 cisco Systems, Inc.
--
-- Created: Wed Feb 20 18:14:36 2013 mstenber
-- Last modified: Mon Feb 25 14:37:28 2013 mstenber
-- Edit time: 16 min
--
module(...)
-- RFC3315 stuff
CLIENT_PORT = 546
SERVER_PORT = 547
ALL_RELAY_AGENTS_AND_SERVERS_ADDRESS = 'ff02::1:2'
-- message types
MT_SOLICIT = 1
MT_ADVERTISE = 2
MT_REQUEST = 3
MT_CONFIRM = 4
MT_RENEW = 5
MT_REBIND = 6
MT_REPLY = 7
MT_RELEASE = 8
MT_DECLINE = 9
MT_RECONFIGURE = 10
MT_INFORMATION_REQUEST = 11
MT_RELAY_FORW = 12
MT_RELAY_REPL = 13
-- options
O_CLIENTID = 1
O_SERVERID = 2
O_IA_NA = 3
O_IA_TA = 4
O_IAADDR = 5
O_ORO = 6
O_PREFERENCE = 7
O_ELAPSED_TIME = 8
O_RELAY_MSG = 9
O_AUTH = 11
O_UNICAST = 12
O_STATUS_CODE = 13
O_RAPID_COMMIT = 14
O_USER_CLASS = 15
O_VENDOR_CLASS = 16
O_VENDOR_OPTS = 17
O_INTERFACE_ID = 18
O_RECONF_MSG = 19
O_RECONF_ACCEPT = 20
O_DNS_RNS = 23 -- RFC3646
O_DOMAIN_SEARCH = 24 -- RFC3646
O_IA_PD = 25 -- RFC3633
O_IAPREFIX = 26 -- RFC3633
O_PREFIX_CLASS = 200 -- draft-bhandari-dhc-class-based-prefix-04
-- status codes
S_SUCCESS = 0
S_UNSPEC_FAIL = 1
S_NOADDRS_AVAIL = 2
S_NO_BINDING = 3
S_NOT_ON_LINK = 4
S_USE_MULTICAST = 5
S_NO_PREFIX_AVAIL = 6 -- RFC3633
-- DUID types
DUID_LLT = 1
DUID_EN = 2
DUID_LL = 3