From f9d435aa85ce984bdd0736a306ad52deee7cf057 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 8 Jan 2001 18:31:24 +0000 Subject: - add dhcp - save network information for stage2 --- mdk-stage1/network.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'mdk-stage1/network.h') diff --git a/mdk-stage1/network.h b/mdk-stage1/network.h index 9f59cb29e..8d6b2bb17 100644 --- a/mdk-stage1/network.h +++ b/mdk-stage1/network.h @@ -38,20 +38,21 @@ enum boot_proto_type { BOOTPROTO_STATIC, BOOTPROTO_DHCP }; 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; -}; + +/* these are to be used only by dhcp.c */ + +void guess_netmask(struct interface_info * intf); +int configure_net_device(struct interface_info * intf); + +extern char * hostname; +extern char * domain; +extern struct in_addr gateway; +extern struct in_addr dns_server; +extern struct in_addr dns_server2; -- cgit v1.2.1