]> git.ipfire.org Git - thirdparty/dhcp.git/blobdiff - includes/dhcpd.h
[master] Added DHCPv6 prefix-length-mode configuration parameter
[thirdparty/dhcp.git] / includes / dhcpd.h
index f9fba731ec8a9be363820545dab0ff37c7eab1da..417e365c60046a6bde28e42aae534a7b171deae4 100644 (file)
@@ -741,6 +741,7 @@ struct lease_state {
 #define SV_LOG_THRESHOLD_HIGH          84
 #define SV_ECHO_CLIENT_ID              85
 #define SV_SERVER_ID_CHECK             86
+#define SV_PREFIX_LEN_MODE             87
 
 #if !defined (DEFAULT_PING_TIMEOUT)
 # define DEFAULT_PING_TIMEOUT 1
@@ -789,6 +790,12 @@ struct lease_state {
 # define MIN_LEASE_WRITE 15
 #endif
 
+#define PLM_IGNORE 0
+#define PLM_PREFER 1
+#define PLM_EXACT 2
+#define PLM_MINIMUM 3
+#define PLM_MAXIMUM 4
+
 /* Client option names */
 
 #define        CL_TIMEOUT              1
@@ -1962,6 +1969,8 @@ extern int ddns_update_style;
 extern int dont_use_fsync;
 extern int server_id_check;
 
+extern int prefix_length_mode;
+
 extern const char *path_dhcpd_conf;
 extern const char *path_dhcpd_db;
 extern const char *path_dhcpd_pid;
@@ -2751,6 +2760,8 @@ extern struct enumeration ddns_styles;
 extern struct enumeration syslog_enum;
 void initialize_server_option_spaces (void);
 
+extern struct enumeration prefix_length_modes;
+
 /* inet.c */
 struct iaddr subnet_number (struct iaddr, struct iaddr);
 struct iaddr ip_addr (struct iaddr, struct iaddr, u_int32_t);