浏览代码

Support PXE and iSCSI by default

tags/v0.9.3
Michael Brown 18 年前
父节点
当前提交
d88832ad7e
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      src/tests/dhcptest.c

+ 4
- 1
src/tests/dhcptest.c 查看文件

@@ -143,9 +143,11 @@ static int test_dhcp_boot ( struct net_device *netdev, char *filename ) {
143 143
 	if ( strncmp ( filename, "iscsi:", 6 ) == 0 ) {
144 144
 		return test_dhcp_iscsi_boot ( netdev, &filename[6] );
145 145
 	}
146
+	/*
146 147
 	if ( strncmp ( filename, "ftp:", 4 ) == 0 ) {
147 148
 		return test_dhcp_ftp ( netdev, &filename[4] );
148 149
 	}
150
+	*/
149 151
 	/*
150 152
 	if ( strncmp ( filename, "hello:", 6 ) == 0 ) {
151 153
 		return test_dhcp_hello ( &filename[6] );
@@ -153,8 +155,9 @@ static int test_dhcp_boot ( struct net_device *netdev, char *filename ) {
153 155
 	if ( strncmp ( filename, "http:", 5 ) == 0 ) {
154 156
 		return test_dhcp_http ( netdev, filename );
155 157
 	}
156
-	return test_dhcp_tftp ( netdev, filename );
157 158
 	*/
159
+	return test_dhcp_tftp ( netdev, filename );
160
+
158 161
 	return -EPROTONOSUPPORT;
159 162
 }
160 163
 

正在加载...
取消
保存