Skip to contentSkip to conversation

Introduce initial versions of new Command Config files.

PATCH New Jon Loeliger 1 participant 1 message Jun 12, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/19 Introduce initial versions of new Command Config files.

Derive three new files from cmd_confdefs.h:
config_bootp.h - Has BOOTP related config options, not commands config_cmd_all.h - Has a CONFIG_CMD_* definition for every command config_cmd_default.h - Has a CONFIG_CMD_* definition for default cmds.

For now, include "config_bootp.h" for compatability until all users of it directly include it properly.

---
 include/cmd_confdefs.h       |   30 ++--------------
 include/config_bootp.h       |   41 +++++++++++++++++++++
 include/config_cmd_all.h     |   80 ++++++++++++++++++++++++++++++++++++++++++
 include/config_cmd_default.h |   41 +++++++++++++++++++++
 4 files changed, 165 insertions(+), 27 deletions(-)
 create mode 100644 include/config_bootp.h
 create mode 100644 include/config_cmd_all.h
 create mode 100644 include/config_cmd_default.h
include/cmd_confdefs.h +3 -27
index b3ccdce..9b4545f 100644
@@ -155,33 +155,9 @@
 
 
 /*
- * optional BOOTP fields
+ * Temporary placeholder until all users directly
+ * include the proper include file, "config_bootp.h".
  */
-
-#define CONFIG_BOOTP_SUBNETMASK		0x00000001
-#define CONFIG_BOOTP_GATEWAY		0x00000002
-#define CONFIG_BOOTP_HOSTNAME		0x00000004
-#define CONFIG_BOOTP_NISDOMAIN		0x00000008
-#define CONFIG_BOOTP_BOOTPATH		0x00000010
-#define CONFIG_BOOTP_BOOTFILESIZE	0x00000020
-#define CONFIG_BOOTP_DNS		0x00000040
-#define CONFIG_BOOTP_DNS2		0x00000080
-#define CONFIG_BOOTP_SEND_HOSTNAME	0x00000100
-#define CONFIG_BOOTP_NTPSERVER		0x00000200
-#define CONFIG_BOOTP_TIMEOFFSET		0x00000400
-
-#define CONFIG_BOOTP_VENDOREX		0x80000000
-
-#define CONFIG_BOOTP_ALL		(~CONFIG_BOOTP_VENDOREX)
-
-
-#define CONFIG_BOOTP_DEFAULT		(CONFIG_BOOTP_SUBNETMASK | \
-					CONFIG_BOOTP_GATEWAY	 | \
-					CONFIG_BOOTP_HOSTNAME	 | \
-					CONFIG_BOOTP_BOOTPATH)
-
-#ifndef CONFIG_BOOTP_MASK
-#define CONFIG_BOOTP_MASK		CONFIG_BOOTP_DEFAULT
-#endif
+#include "config_bootp.h"
 
 #endif	/* _CMD_CONFIG_H */
include/config_bootp.h new file +41 -0

41 lines not on this page · raw message

include/config_cmd_all.h new file +80 -0

80 lines not on this page · raw message

include/config_cmd_default.h new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
1.5.2.1.239.g75d8