From 752c59eb0ab37ca75bb410052aaf40514818cd54 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 14 Dec 2000 23:47:36 +0000 Subject: - do progressbar since it seems nobody can live without it - write real separation between cdrom, disk, and network code; have multiple targets for that issue - begin network code: network interface is up and runing (static IP only), network is configured --- mdk-stage1/network.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'mdk-stage1/network.h') diff --git a/mdk-stage1/network.h b/mdk-stage1/network.h index bc7e19104..9f59cb29e 100644 --- a/mdk-stage1/network.h +++ b/mdk-stage1/network.h @@ -22,9 +22,37 @@ #ifndef _NETWORK_H_ #define _NETWORK_H_ +#include +#include +#include + + enum return_type nfs_prepare(void); enum return_type ftp_prepare(void); enum return_type http_prepare(void); +enum boot_proto_type { BOOTPROTO_STATIC, BOOTPROTO_DHCP }; + +/* all of these in_addr things are in network byte order! */ +struct interface_info { + char device[10]; + int is_ptp, is_up; + int set, manually_set; + struct in_addr ip, netmask, broadcast, network; + struct in_addr boot_server; + char * boot_file; + enum boot_proto_type boot_proto; +}; + +struct net_info { + int set, manually_set; + char * hostname, * domain; /* dynamically allocated */ + struct in_addr gateway; + struct in_addr dns_server; + int numDns; +}; + + + #endif -- cgit v1.2.1