xref: /linux/include/net/ipconfig.h (revision 7a9787e1eba95a166265e6a260cf30af04ef0a99)
11da177e4SLinus Torvalds /*
21da177e4SLinus Torvalds  *  Copyright (C) 1997 Martin Mares
31da177e4SLinus Torvalds  *
41da177e4SLinus Torvalds  *  Automatic IP Layer Configuration
51da177e4SLinus Torvalds  */
61da177e4SLinus Torvalds 
71da177e4SLinus Torvalds /* The following are initdata: */
81da177e4SLinus Torvalds 
91da177e4SLinus Torvalds extern int ic_proto_enabled;	/* Protocols enabled (see IC_xxx) */
101da177e4SLinus Torvalds extern int ic_set_manually;	/* IPconfig parameters set manually */
111da177e4SLinus Torvalds 
12*5a874db4SAl Viro extern __be32 ic_myaddr;		/* My IP address */
13*5a874db4SAl Viro extern __be32 ic_gateway;		/* Gateway IP address */
141da177e4SLinus Torvalds 
15*5a874db4SAl Viro extern __be32 ic_servaddr;		/* Boot server IP address */
161da177e4SLinus Torvalds 
17*5a874db4SAl Viro extern __be32 root_server_addr;	/* Address of NFS server */
181da177e4SLinus Torvalds extern u8 root_server_path[];	/* Path to mount as root */
191da177e4SLinus Torvalds 
201da177e4SLinus Torvalds 
211da177e4SLinus Torvalds /* bits in ic_proto_{enabled,used} */
221da177e4SLinus Torvalds #define IC_PROTO	0xFF	/* Protocols mask: */
231da177e4SLinus Torvalds #define IC_BOOTP	0x01	/*   BOOTP (or DHCP, see below) */
241da177e4SLinus Torvalds #define IC_RARP		0x02	/*   RARP */
251da177e4SLinus Torvalds #define IC_USE_DHCP    0x100	/* If on, use DHCP instead of BOOTP */
26