summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/network.h
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-12-14 23:47:36 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-12-14 23:47:36 +0000
commit752c59eb0ab37ca75bb410052aaf40514818cd54 (patch)
treef083ed8b39dedee72a7eadaa4f7631f6b11fc0e7 /mdk-stage1/network.h
parent4cfd9a056d6e652efb751a6a2ea56c700886ce51 (diff)
downloaddrakx-752c59eb0ab37ca75bb410052aaf40514818cd54.tar
drakx-752c59eb0ab37ca75bb410052aaf40514818cd54.tar.gz
drakx-752c59eb0ab37ca75bb410052aaf40514818cd54.tar.bz2
drakx-752c59eb0ab37ca75bb410052aaf40514818cd54.tar.xz
drakx-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.h28
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