1/* 2 * $Id: ipconfig.h,v 1.1.1.1 2008/10/15 03:27:31 james26_jang Exp $ 3 * 4 * Copyright (C) 1997 Martin Mares 5 * 6 * Automatic IP Layer Configuration 7 */ 8 9/* The following are initdata: */ 10 11extern int ic_enable; /* Enable or disable the whole shebang */ 12 13extern int ic_proto_enabled; /* Protocols enabled (see IC_xxx) */ 14extern int ic_host_name_set; /* Host name set by ipconfig? */ 15extern int ic_set_manually; /* IPconfig parameters set manually */ 16 17extern u32 ic_myaddr; /* My IP address */ 18extern u32 ic_netmask; /* Netmask for local subnet */ 19extern u32 ic_gateway; /* Gateway IP address */ 20 21extern u32 ic_servaddr; /* Boot server IP address */ 22 23extern u32 root_server_addr; /* Address of NFS server */ 24extern u8 root_server_path[]; /* Path to mount as root */ 25 26 27 28/* The following are persistent (not initdata): */ 29 30extern int ic_proto_used; /* Protocol used, if any */ 31extern u32 ic_nameserver; /* DNS server IP address */ 32extern u8 ic_domain[]; /* DNS (not NIS) domain name */ 33 34/* bits in ic_proto_{enabled,used} */ 35#define IC_PROTO 0xFF /* Protocols mask: */ 36#define IC_BOOTP 0x01 /* BOOTP (or DHCP, see below) */ 37#define IC_RARP 0x02 /* RARP */ 38#define IC_USE_DHCP 0x100 /* If on, use DHCP instead of BOOTP */ 39