Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:57

0001 #define FLAG_MAND   1
0002 #define FLAG_NOUSE  2   /* dont put into the commandline at all */
0003 #define FLAG_CLRBP  4   /* field needs to be cleared for bootp  */
0004 
0005 typedef struct ParmRec_ {
0006     char    *name;
0007     char    **pval;
0008     int     flags;
0009 } ParmRec, *Parm;
0010 
0011 
0012 static char *boot_filename=0;
0013 static char *boot_srvname=0;
0014 static char *boot_use_bootp=0;
0015 static char *boot_my_ip=0;
0016 static char *boot_my_netmask=0;
0017 
0018 #define boot_cmdline BSP_commandline_string
0019 
0020 static ParmRec parmList[]={
0021     { "BP_FILE=",  &boot_filename,
0022             FLAG_MAND,
0023     },
0024     { "BP_PARM=",  &boot_cmdline,
0025             0,
0026     },
0027     { "BP_SRVR=",  &boot_srvname,
0028             FLAG_MAND,
0029     },
0030     { "BP_GTWY=",  &net_config.gateway,
0031             FLAG_CLRBP,
0032     },
0033     { "BP_MYIP=",  &boot_my_ip,
0034             FLAG_MAND | FLAG_CLRBP,
0035     },
0036     { "BP_MYMK=",  &boot_my_netmask,
0037             FLAG_MAND | FLAG_CLRBP,
0038     },
0039     { "BP_MYNM=",  &net_config.hostname,
0040             FLAG_CLRBP,
0041     },
0042     { "BP_MYDN=",  &net_config.domainname,
0043             FLAG_CLRBP,
0044     },
0045     { "BP_LOGH=",  &net_config.log_host,
0046             FLAG_CLRBP,
0047     },
0048     { "BP_DNS1=",  &net_config.name_server[0],
0049             FLAG_CLRBP,
0050     },
0051     { "BP_DNS2=",  &net_config.name_server[1],
0052             FLAG_CLRBP,
0053     },
0054     { "BP_DNS3=",  &net_config.name_server[2],
0055             FLAG_CLRBP,
0056     },
0057     { "BP_NTP1=",  &net_config.ntp_server[0],
0058             FLAG_CLRBP,
0059     },
0060     { "BP_NTP2=",  &net_config.ntp_server[1],
0061             FLAG_CLRBP,
0062     },
0063     { "BP_NTP3=",  &net_config.ntp_server[2],
0064             FLAG_CLRBP,
0065     },
0066     { "BP_ENBL=",  &boot_use_bootp,
0067             0,
0068     },
0069     { 0, }
0070 };