瀏覽代碼

[dhcp] Use a default user-class of "gPXE"

This change makes it possible to break the PXE-chaining infinite loop
even when restricted to a Windows DHCP server.
tags/v0.9.7
Michael Brown 15 年之前
父節點
當前提交
7b1a5a7997
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/net/udp/dhcp.c

+ 2
- 0
src/net/udp/dhcp.c 查看文件

@@ -77,6 +77,8 @@ static uint8_t dhcp_request_options_data[] = {
77 77
 	DHCP_STRING (  'P', 'X', 'E', 'C', 'l', 'i', 'e', 'n', 't', ':',
78 78
 		       'A', 'r', 'c', 'h', ':', '0', '0', '0', '0', '0', ':',
79 79
 		       'U', 'N', 'D', 'I', ':', '0', '0', '2', '0', '0', '1' ),
80
+	DHCP_USER_CLASS_ID,
81
+	DHCP_STRING ( 'g', 'P', 'X', 'E' ),
80 82
 	DHCP_PARAMETER_REQUEST_LIST,
81 83
 	DHCP_OPTION ( DHCP_SUBNET_MASK, DHCP_ROUTERS, DHCP_DNS_SERVERS,
82 84
 		      DHCP_LOG_SERVERS, DHCP_HOST_NAME, DHCP_DOMAIN_NAME,

Loading…
取消
儲存