propagate required settings for the remote disk from boot loader to kernel (client-ip, server-ip, server-port)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19780 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen
2007-01-12 22:27:48 +00:00
parent 93b2b9ce66
commit 43792b9eed
9 changed files with 61 additions and 347 deletions
@@ -23,6 +23,7 @@ enum device_types {
USB_DEVICE,
FIREWIRE_DEVICE,
FIBRE_DEVICE,
NETWORK_DEVICE,
};
#define NUM_DISK_CHECK_SUMS 5
@@ -61,6 +62,11 @@ typedef struct disk_identifier {
struct {
uint64 wwd;
} fibre;
struct {
uint32 client_ip;
uint32 server_ip;
uint16 server_port;
} network;
struct {
off_t size;
struct {
@@ -46,6 +46,7 @@ typedef struct kernel_args {
off_t partition_offset;
bool user_selected;
bool booted_from_image;
bool booted_from_network;
bool cd;
} boot_disk;
@@ -28,6 +28,9 @@ public:
virtual status_t GetName(char *nameBuffer, size_t bufferSize) const;
virtual off_t Size() const;
ip_addr_t ServerIPAddress() const;
uint16 ServerPort() const;
static RemoteDisk *FindAnyRemoteDisk();
private: