18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 1997 Martin Mares 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Automatic IP Layer Configuration 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci/* The following are initdata: */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciextern int ic_proto_enabled; /* Protocols enabled (see IC_xxx) */ 118c2ecf20Sopenharmony_ciextern int ic_set_manually; /* IPconfig parameters set manually */ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciextern __be32 ic_myaddr; /* My IP address */ 148c2ecf20Sopenharmony_ciextern __be32 ic_gateway; /* Gateway IP address */ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciextern __be32 ic_servaddr; /* Boot server IP address */ 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciextern __be32 root_server_addr; /* Address of NFS server */ 198c2ecf20Sopenharmony_ciextern u8 root_server_path[]; /* Path to mount as root */ 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci/* bits in ic_proto_{enabled,used} */ 238c2ecf20Sopenharmony_ci#define IC_PROTO 0xFF /* Protocols mask: */ 248c2ecf20Sopenharmony_ci#define IC_BOOTP 0x01 /* BOOTP (or DHCP, see below) */ 258c2ecf20Sopenharmony_ci#define IC_RARP 0x02 /* RARP */ 268c2ecf20Sopenharmony_ci#define IC_USE_DHCP 0x100 /* If on, use DHCP instead of BOOTP */ 27