1 | /* $Id: dhcp6.h 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * NAT Network - DHCPv6 protocol definitions.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2013-2023 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox base platform packages, as
|
---|
10 | * available from https://www.virtualbox.org.
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or
|
---|
13 | * modify it under the terms of the GNU General Public License
|
---|
14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
15 | * License.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful, but
|
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | *
|
---|
25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef VBOX_INCLUDED_SRC_NAT_dhcp6_h
|
---|
29 | #define VBOX_INCLUDED_SRC_NAT_dhcp6_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* UDP ports */
|
---|
35 | #define DHCP6_CLIENT_PORT 546
|
---|
36 | #define DHCP6_SERVER_PORT 547
|
---|
37 |
|
---|
38 | /* Message types */
|
---|
39 | #define DHCP6_REPLY 7
|
---|
40 | #define DHCP6_INFORMATION_REQUEST 11
|
---|
41 | #define DHCP6_RELAY_FORW 12
|
---|
42 | #define DHCP6_RELAY_REPLY 13
|
---|
43 |
|
---|
44 | /* DUID types */
|
---|
45 | #define DHCP6_DUID_LLT 1
|
---|
46 | #define DHCP6_DUID_EN 2
|
---|
47 | #define DHCP6_DUID_LL 3
|
---|
48 |
|
---|
49 | /* Hardware type for DUID-LLT and DUID-LL */
|
---|
50 | #define ARES_HRD_ETHERNET 1 /* RFC 826*/
|
---|
51 |
|
---|
52 | /* Options */
|
---|
53 | #define DHCP6_OPTION_CLIENTID 1
|
---|
54 | #define DHCP6_OPTION_SERVERID 2
|
---|
55 | #define DHCP6_OPTION_ORO 6
|
---|
56 | #define DHCP6_OPTION_ELAPSED_TIME 8
|
---|
57 | #define DHCP6_OPTION_STATUS_CODE 13
|
---|
58 | #define DHCP6_OPTION_DNS_SERVERS 23 /* RFC 3646 */
|
---|
59 | #define DHCP6_OPTION_DOMAIN_LIST 24 /* RFC 3646 */
|
---|
60 |
|
---|
61 | #endif /* !VBOX_INCLUDED_SRC_NAT_dhcp6_h */
|
---|