diff options
Diffstat (limited to 'mdk-stage1/network.h')
-rw-r--r-- | mdk-stage1/network.h | 28 |
1 files changed, 28 insertions, 0 deletions
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 <netinet/in.h> +#include <netinet/ip.h> +#include <arpa/inet.h> + + 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 |