diff --git a/src/system/boot/platform/openfirmware/devices.cpp b/src/system/boot/platform/openfirmware/devices.cpp
index 601ac50..706d379 100644
a
|
b
|
|
12 | 12 | #include <boot/stage2.h> |
13 | 13 | #include <boot/net/NetStack.h> |
14 | 14 | #include <boot/net/RemoteDisk.h> |
| 15 | #include <boot/net/TCP.h> |
15 | 16 | #include <platform/openfirmware/devices.h> |
16 | 17 | #include <platform/openfirmware/openfirmware.h> |
17 | 18 | #include <util/kernel_cpp.h> |
… |
… |
|
22 | 23 | char sBootPath[192]; |
23 | 24 | |
24 | 25 | |
| 26 | void myTest() |
| 27 | { |
| 28 | TCPSocket socket; |
| 29 | status_t error = socket.Connect(0x0A000304, 8888); |
| 30 | if (error != B_OK) { |
| 31 | printf("Connect fehlgeschlagen\n"); |
| 32 | of_exit(); |
| 33 | return; |
| 34 | } |
| 35 | printf("connected, closing socket...\n"); |
| 36 | error = socket.Close(); |
| 37 | if (error == B_OK) |
| 38 | printf("TEST APPARENTLY SUCCESSFUL!\n"); |
| 39 | of_exit(); |
| 40 | } |
| 41 | |
25 | 42 | status_t |
26 | 43 | platform_add_boot_device(struct stage2_args *args, NodeList *devicesList) |
27 | 44 | { |
… |
… |
platform_add_boot_device(struct stage2_args *args, NodeList *devicesList)
|
45 | 62 | status_t error = net_stack_init(); |
46 | 63 | if (error != B_OK) |
47 | 64 | return error; |
48 | | |
| 65 | |
| 66 | myTest(); |
| 67 | |
49 | 68 | // init a remote disk, if possible |
50 | 69 | RemoteDisk *remoteDisk = RemoteDisk::FindAnyRemoteDisk(); |
51 | 70 | if (!remoteDisk) |