瀏覽代碼

Added "hostname" and "ip" as sample settings

tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
dd9399f527
共有 1 個檔案被更改,包括 13 行新增0 行删除
  1. 13
    0
      src/core/settings.c

+ 13
- 0
src/core/settings.c 查看文件

@@ -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…
取消
儲存