Explorar el Código

Added "hostname" and "ip" as sample settings

tags/v0.9.3
Michael Brown hace 18 años
padre
commit
dd9399f527
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13
    0
      src/core/settings.c

+ 13
- 0
src/core/settings.c Ver fichero

@@ -251,3 +251,16 @@ struct config_setting_type config_setting_type_ipv4 __config_setting_type = {
251 251
 	.set = set_ipv4,
252 252
 };
253 253
 
254
+/** Some basic setting definitions */
255
+struct config_setting basic_config_settings[] __config_setting = {
256
+	{
257
+		.name = "hostname",
258
+		.tag = DHCP_HOST_NAME,
259
+		.type = &config_setting_type_string,
260
+	},
261
+	{
262
+		.name = "ip",
263
+		.tag = DHCP_EB_YIADDR,
264
+		.type = &config_setting_type_ipv4,
265
+	},
266
+};

Loading…
Cancelar
Guardar