1 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
6 This file is part of systemd.
8 Copyright (C) 2014 Intel Corporation. All rights reserved.
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
25 #include "sparse-endian.h"
33 be32_t transaction_id;
37 typedef struct DHCP6Message DHCP6Message;
40 DHCP6_PORT_SERVER = 547,
41 DHCP6_PORT_CLIENT = 546,
44 #define DHCP6_SOL_MAX_DELAY 1 * USEC_PER_SEC
45 #define DHCP6_SOL_TIMEOUT 1 * USEC_PER_SEC
46 #define DHCP6_SOL_MAX_RT 120 * USEC_PER_SEC
56 DHCP6_STATE_STOPPED = 0,
58 DHCP6_STATE_SOLICITATION = 2,
71 DHCP6_RECONFIGURE = 10,
72 DHCP6_INFORMATION_REQUEST = 11,
73 DHCP6_RELAY_FORW = 12,
74 DHCP6_RELAY_REPL = 13,
75 _DHCP6_MESSAGE_MAX = 14,
79 DHCP6_OPTION_CLIENTID = 1,
80 DHCP6_OPTION_SERVERID = 2,
81 DHCP6_OPTION_IA_NA = 3,
82 DHCP6_OPTION_IA_TA = 4,
83 DHCP6_OPTION_IAADDR = 5,
85 DHCP6_OPTION_PREFERENCE = 7,
86 DHCP6_OPTION_ELAPSED_TIME = 8,
87 DHCP6_OPTION_RELAY_MSG = 9,
88 /* option code 10 is unassigned */
89 DHCP6_OPTION_AUTH = 11,
90 DHCP6_OPTION_UNICAST = 12,
91 DHCP6_OPTION_STATUS_CODE = 13,
92 DHCP6_OPTION_RAPID_COMMIT = 14,
93 DHCP6_OPTION_USER_CLASS = 15,
94 DHCP6_OPTION_VENDOR_CLASS = 16,
95 DHCP6_OPTION_VENDOR_OPTS = 17,
96 DHCP6_OPTION_INTERFACE_ID = 18,
97 DHCP6_OPTION_RECONF_MSG = 19,
98 DHCP6_OPTION_RECONF_ACCEPT = 20,
102 DHCP6_STATUS_SUCCESS = 0,
103 DHCP6_STATUS_UNSPEC_FAIL = 1,
104 DHCP6_STATUS_NO_ADDRS_AVAIL = 2,
105 DHCP6_STATUS_NO_BINDING = 3,
106 DHCP6_STATUS_NOT_ON_LINK = 4,
107 DHCP6_STATUS_USE_MULTICAST = 5,
108 _DHCP6_STATUS_MAX = 6,