Tarun Kundu | 12e3b2e | 2024-08-15 16:16:53 -0700 | [diff] [blame] | 1 | /* dnsmasq is Copyright (c) 2000-2024 Simon Kelley |
Simon Kelley | c72daea | 2012-01-05 21:33:27 +0000 | [diff] [blame] | 2 | |
| 3 | This program is free software; you can redistribute it and/or modify |
| 4 | it under the terms of the GNU General Public License as published by |
| 5 | the Free Software Foundation; version 2 dated June, 1991, or |
| 6 | (at your option) version 3 dated 29 June, 2007. |
| 7 | |
| 8 | This program is distributed in the hope that it will be useful, |
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | GNU General Public License for more details. |
| 12 | |
| 13 | You should have received a copy of the GNU General Public License |
| 14 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
| 16 | |
| 17 | #define DHCPV6_SERVER_PORT 547 |
| 18 | #define DHCPV6_CLIENT_PORT 546 |
| 19 | |
| 20 | #define ALL_SERVERS "FF05::1:3" |
| 21 | #define ALL_RELAY_AGENTS_AND_SERVERS "FF02::1:2" |
| 22 | |
| 23 | #define DHCP6SOLICIT 1 |
| 24 | #define DHCP6ADVERTISE 2 |
| 25 | #define DHCP6REQUEST 3 |
| 26 | #define DHCP6CONFIRM 4 |
| 27 | #define DHCP6RENEW 5 |
| 28 | #define DHCP6REBIND 6 |
| 29 | #define DHCP6REPLY 7 |
| 30 | #define DHCP6RELEASE 8 |
| 31 | #define DHCP6DECLINE 9 |
| 32 | #define DHCP6RECONFIGURE 10 |
| 33 | #define DHCP6IREQ 11 |
| 34 | #define DHCP6RELAYFORW 12 |
| 35 | #define DHCP6RELAYREPL 13 |
| 36 | |
| 37 | #define OPTION6_CLIENT_ID 1 |
| 38 | #define OPTION6_SERVER_ID 2 |
| 39 | #define OPTION6_IA_NA 3 |
| 40 | #define OPTION6_IA_TA 4 |
| 41 | #define OPTION6_IAADDR 5 |
| 42 | #define OPTION6_ORO 6 |
| 43 | #define OPTION6_PREFERENCE 7 |
| 44 | #define OPTION6_ELAPSED_TIME 8 |
| 45 | #define OPTION6_RELAY_MSG 9 |
| 46 | #define OPTION6_AUTH 11 |
| 47 | #define OPTION6_UNICAST 12 |
| 48 | #define OPTION6_STATUS_CODE 13 |
| 49 | #define OPTION6_RAPID_COMMIT 14 |
| 50 | #define OPTION6_USER_CLASS 15 |
| 51 | #define OPTION6_VENDOR_CLASS 16 |
| 52 | #define OPTION6_VENDOR_OPTS 17 |
| 53 | #define OPTION6_INTERFACE_ID 18 |
| 54 | #define OPTION6_RECONFIGURE_MSG 19 |
| 55 | #define OPTION6_RECONF_ACCEPT 20 |
Simon Kelley | 4cb1b32 | 2012-02-06 14:30:41 +0000 | [diff] [blame] | 56 | #define OPTION6_DNS_SERVER 23 |
Simon Kelley | 18f0fb0 | 2012-03-31 21:18:55 +0100 | [diff] [blame] | 57 | #define OPTION6_DOMAIN_SEARCH 24 |
Tarun Kundu | 12e3b2e | 2024-08-15 16:16:53 -0700 | [diff] [blame] | 58 | #define OPTION6_IA_PD 25 |
| 59 | #define OPTION6_IAPREFIX 26 |
Simon Kelley | 871d456 | 2013-07-27 21:32:32 +0100 | [diff] [blame] | 60 | #define OPTION6_REFRESH_TIME 32 |
Simon Kelley | 4cb1b32 | 2012-02-06 14:30:41 +0000 | [diff] [blame] | 61 | #define OPTION6_REMOTE_ID 37 |
| 62 | #define OPTION6_SUBSCRIBER_ID 38 |
| 63 | #define OPTION6_FQDN 39 |
Vladislav Grishenko | dded78b | 2020-03-08 15:34:34 +0000 | [diff] [blame] | 64 | #define OPTION6_NTP_SERVER 56 |
Simon Kelley | 89500e3 | 2013-09-20 16:29:20 +0100 | [diff] [blame] | 65 | #define OPTION6_CLIENT_MAC 79 |
Tarun Kundu | 12e3b2e | 2024-08-15 16:16:53 -0700 | [diff] [blame] | 66 | #define OPTION6_MUD_URL 112 |
Simon Kelley | 52b92f4 | 2012-01-22 16:05:15 +0000 | [diff] [blame] | 67 | |
Vladislav Grishenko | dded78b | 2020-03-08 15:34:34 +0000 | [diff] [blame] | 68 | #define NTP_SUBOPTION_SRV_ADDR 1 |
| 69 | #define NTP_SUBOPTION_MC_ADDR 2 |
| 70 | #define NTP_SUBOPTION_SRV_FQDN 3 |
Simon Kelley | c630924 | 2013-03-07 20:59:28 +0000 | [diff] [blame] | 71 | |
Simon Kelley | 52b92f4 | 2012-01-22 16:05:15 +0000 | [diff] [blame] | 72 | #define DHCP6SUCCESS 0 |
| 73 | #define DHCP6UNSPEC 1 |
| 74 | #define DHCP6NOADDRS 2 |
| 75 | #define DHCP6NOBINDING 3 |
| 76 | #define DHCP6NOTONLINK 4 |
| 77 | #define DHCP6USEMULTI 5 |