]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/systemd/sd-ndisc-protocol.h
Merge pull request #31000 from flatcar-hub/krnowak/mutable-overlays
[thirdparty/systemd.git] / src / systemd / sd-ndisc-protocol.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #ifndef foosdndiscprotocolfoo
3 #define foosdndiscprotocolfoo
4
5 /***
6 systemd is free software; you can redistribute it and/or modify it
7 under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation; either version 2.1 of the License, or
9 (at your option) any later version.
10
11 systemd is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public License
17 along with systemd; If not, see <https://www.gnu.org/licenses/>.
18 ***/
19
20 #include "_sd-common.h"
21
22 _SD_BEGIN_DECLARATIONS;
23
24 /* Neighbor Discovery Options, RFC 4861, Section 4.6 and
25 * https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml#icmpv6-parameters-5 */
26 enum {
27 SD_NDISC_OPTION_SOURCE_LL_ADDRESS = 1,
28 SD_NDISC_OPTION_TARGET_LL_ADDRESS = 2,
29 SD_NDISC_OPTION_PREFIX_INFORMATION = 3,
30 SD_NDISC_OPTION_MTU = 5,
31 SD_NDISC_OPTION_ROUTE_INFORMATION = 24,
32 SD_NDISC_OPTION_RDNSS = 25,
33 SD_NDISC_OPTION_FLAGS_EXTENSION = 26,
34 SD_NDISC_OPTION_DNSSL = 31,
35 SD_NDISC_OPTION_CAPTIVE_PORTAL = 37,
36 SD_NDISC_OPTION_PREF64 = 38
37 };
38
39 /* Route preference, RFC 4191, Section 2.1 */
40 enum {
41 SD_NDISC_PREFERENCE_LOW = 3U,
42 SD_NDISC_PREFERENCE_MEDIUM = 0U,
43 SD_NDISC_PREFERENCE_HIGH = 1U
44 };
45
46 _SD_END_DECLARATIONS;
47
48 #endif