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