diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2000-12-14 23:47:36 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2000-12-14 23:47:36 +0000 |
commit | 752c59eb0ab37ca75bb410052aaf40514818cd54 (patch) | |
tree | f083ed8b39dedee72a7eadaa4f7631f6b11fc0e7 /mdk-stage1/network.h | |
parent | 4cfd9a056d6e652efb751a6a2ea56c700886ce51 (diff) | |
download | drakx-backup-do-not-use-752c59eb0ab37ca75bb410052aaf40514818cd54.tar drakx-backup-do-not-use-752c59eb0ab37ca75bb410052aaf40514818cd54.tar.gz drakx-backup-do-not-use-752c59eb0ab37ca75bb410052aaf40514818cd54.tar.bz2 drakx-backup-do-not-use-752c59eb0ab37ca75bb410052aaf40514818cd54.tar.xz drakx-backup-do-not-use-752c59eb0ab37ca75bb410052aaf40514818cd54.zip |
- 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
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 |