[7be6ad9] | 1 | #define FLAG_MAND 1 |
---|
| 2 | #define FLAG_NOUSE 2 /* dont put into the commandline at all */ |
---|
| 3 | #define FLAG_CLRBP 4 /* field needs to be cleared for bootp */ |
---|
| 4 | |
---|
| 5 | typedef struct ParmRec_ { |
---|
| 6 | char *name; |
---|
| 7 | char **pval; |
---|
| 8 | int flags; |
---|
| 9 | } ParmRec, *Parm; |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | static char *boot_filename=0; |
---|
| 13 | static char *boot_srvname=0; |
---|
| 14 | static char *boot_use_bootp=0; |
---|
| 15 | static char *boot_my_ip=0; |
---|
| 16 | static char *boot_my_netmask=0; |
---|
| 17 | |
---|
| 18 | #define boot_cmdline BSP_commandline_string |
---|
| 19 | |
---|
| 20 | static ParmRec parmList[]={ |
---|
| 21 | { "BP_FILE=", &boot_filename, |
---|
| 22 | FLAG_MAND, |
---|
| 23 | }, |
---|
| 24 | { "BP_PARM=", &boot_cmdline, |
---|
| 25 | 0, |
---|
| 26 | }, |
---|
| 27 | { "BP_SRVR=", &boot_srvname, |
---|
| 28 | FLAG_MAND, |
---|
| 29 | }, |
---|
| 30 | { "BP_GTWY=", &net_config.gateway, |
---|
[ac7af4a] | 31 | FLAG_CLRBP, |
---|
[7be6ad9] | 32 | }, |
---|
| 33 | { "BP_MYIP=", &boot_my_ip, |
---|
| 34 | FLAG_MAND | FLAG_CLRBP, |
---|
| 35 | }, |
---|
| 36 | { "BP_MYMK=", &boot_my_netmask, |
---|
| 37 | FLAG_MAND | FLAG_CLRBP, |
---|
| 38 | }, |
---|
| 39 | { "BP_MYNM=", &net_config.hostname, |
---|
| 40 | FLAG_CLRBP, |
---|
| 41 | }, |
---|
| 42 | { "BP_MYDN=", &net_config.domainname, |
---|
| 43 | FLAG_CLRBP, |
---|
| 44 | }, |
---|
| 45 | { "BP_LOGH=", &net_config.log_host, |
---|
| 46 | FLAG_CLRBP, |
---|
| 47 | }, |
---|
| 48 | { "BP_DNS1=", &net_config.name_server[0], |
---|
| 49 | FLAG_CLRBP, |
---|
| 50 | }, |
---|
| 51 | { "BP_DNS2=", &net_config.name_server[1], |
---|
| 52 | FLAG_CLRBP, |
---|
| 53 | }, |
---|
| 54 | { "BP_DNS3=", &net_config.name_server[2], |
---|
| 55 | FLAG_CLRBP, |
---|
| 56 | }, |
---|
| 57 | { "BP_NTP1=", &net_config.ntp_server[0], |
---|
| 58 | FLAG_CLRBP, |
---|
| 59 | }, |
---|
| 60 | { "BP_NTP2=", &net_config.ntp_server[1], |
---|
| 61 | FLAG_CLRBP, |
---|
| 62 | }, |
---|
| 63 | { "BP_NTP3=", &net_config.ntp_server[2], |
---|
| 64 | FLAG_CLRBP, |
---|
| 65 | }, |
---|
| 66 | { "BP_ENBL=", &boot_use_bootp, |
---|
| 67 | 0, |
---|
| 68 | }, |
---|
| 69 | { 0, } |
---|
| 70 | }; |
---|