Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *  Copyright (C) 1997 Martin Mares
0004  *
0005  *  Automatic IP Layer Configuration
0006  */
0007 
0008 /* The following are initdata: */
0009 
0010 #include <linux/types.h>
0011 
0012 extern int ic_proto_enabled;    /* Protocols enabled (see IC_xxx) */
0013 extern int ic_set_manually; /* IPconfig parameters set manually */
0014 
0015 extern __be32 ic_myaddr;        /* My IP address */
0016 extern __be32 ic_gateway;       /* Gateway IP address */
0017 
0018 extern __be32 ic_servaddr;      /* Boot server IP address */
0019 
0020 extern __be32 root_server_addr; /* Address of NFS server */
0021 extern u8 root_server_path[];   /* Path to mount as root */
0022 
0023 
0024 /* bits in ic_proto_{enabled,used} */
0025 #define IC_PROTO    0xFF    /* Protocols mask: */
0026 #define IC_BOOTP    0x01    /*   BOOTP (or DHCP, see below) */
0027 #define IC_RARP     0x02    /*   RARP */
0028 #define IC_USE_DHCP    0x100    /* If on, use DHCP instead of BOOTP */