Sfoglia il codice sorgente

Support PXE and iSCSI by default

tags/v0.9.3
Michael Brown 17 anni fa
parent
commit
d88832ad7e
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4
    1
      src/tests/dhcptest.c

+ 4
- 1
src/tests/dhcptest.c Vedi File

@@ -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
 

Loading…
Annulla
Salva