|
@@ -29,19 +29,25 @@
|
29
|
29
|
/** AoE */
|
30
|
30
|
#define DHCP_EB_FEATURE_AOE 0x12
|
31
|
31
|
|
|
32
|
+/** HTTP */
|
|
33
|
+#define DHCP_EB_FEATURE_HTTP 0x13
|
|
34
|
+
|
|
35
|
+/** HTTPS */
|
|
36
|
+#define DHCP_EB_FEATURE_HTTPS 0x14
|
|
37
|
+
|
32
|
38
|
/** @} */
|
33
|
39
|
|
34
|
40
|
/** Declare a feature code for DHCP */
|
35
|
41
|
#define __dhcp_feature __table ( uint8_t, dhcp_features, 01 )
|
36
|
42
|
|
37
|
43
|
/** Construct a DHCP feature table entry */
|
38
|
|
-#define DHCP_FEATURE( feature_opt ) \
|
39
|
|
- _DHCP_FEATURE ( OBJECT, feature_opt )
|
40
|
|
-#define _DHCP_FEATURE( _name, feature_opt ) \
|
41
|
|
- __DHCP_FEATURE ( _name, feature_opt )
|
42
|
|
-#define __DHCP_FEATURE( _name, feature_opt ) \
|
|
44
|
+#define DHCP_FEATURE( feature_opt, version ) \
|
|
45
|
+ _DHCP_FEATURE ( OBJECT, feature_opt, version )
|
|
46
|
+#define _DHCP_FEATURE( _name, feature_opt, version ) \
|
|
47
|
+ __DHCP_FEATURE ( _name, feature_opt, version )
|
|
48
|
+#define __DHCP_FEATURE( _name, feature_opt, version ) \
|
43
|
49
|
uint8_t __dhcp_feature_ ## _name [] __dhcp_feature = { \
|
44
|
|
- feature_opt, DHCP_BYTE ( 1 ) \
|
|
50
|
+ feature_opt, DHCP_BYTE ( version ) \
|
45
|
51
|
};
|
46
|
52
|
|
47
|
53
|
/** Declare a named feature */
|
|
@@ -56,8 +62,8 @@
|
56
|
62
|
char * __feature_ ## _name __feature_name = text;
|
57
|
63
|
|
58
|
64
|
/** Declare a feature */
|
59
|
|
-#define FEATURE( text, feature_opt ) \
|
|
65
|
+#define FEATURE( text, feature_opt, version ) \
|
60
|
66
|
FEATURE_NAME ( text ); \
|
61
|
|
- DHCP_FEATURE ( feature_opt );
|
|
67
|
+ DHCP_FEATURE ( feature_opt, version );
|
62
|
68
|
|
63
|
69
|
#endif /* _GPXE_FEATURES_H */
|