1 #ifndef _IPXE_FEATURES_H 2 #define _IPXE_FEATURES_H 21 #define FEATURE_PROTOCOL 01 22 #define FEATURE_IMAGE 02 23 #define FEATURE_MISC 03 36 #define DHCP_EB_FEATURE_PXE_EXT 0x10 37 #define DHCP_EB_FEATURE_ISCSI 0x11 38 #define DHCP_EB_FEATURE_AOE 0x12 39 #define DHCP_EB_FEATURE_HTTP 0x13 40 #define DHCP_EB_FEATURE_HTTPS 0x14 41 #define DHCP_EB_FEATURE_TFTP 0x15 42 #define DHCP_EB_FEATURE_FTP 0x16 43 #define DHCP_EB_FEATURE_DNS 0x17 44 #define DHCP_EB_FEATURE_BZIMAGE 0x18 45 #define DHCP_EB_FEATURE_MULTIBOOT 0x19 46 #define DHCP_EB_FEATURE_SLAM 0x1a 47 #define DHCP_EB_FEATURE_SRP 0x1b 48 #define DHCP_EB_FEATURE_NBI 0x20 49 #define DHCP_EB_FEATURE_PXE 0x21 50 #define DHCP_EB_FEATURE_ELF 0x22 51 #define DHCP_EB_FEATURE_COMBOOT 0x23 52 #define DHCP_EB_FEATURE_EFI 0x24 53 #define DHCP_EB_FEATURE_FCOE 0x25 54 #define DHCP_EB_FEATURE_VLAN 0x26 55 #define DHCP_EB_FEATURE_MENU 0x27 56 #define DHCP_EB_FEATURE_SDI 0x28 57 #define DHCP_EB_FEATURE_NFS 0x29 62 #define DHCP_FEATURES __table ( uint8_t, "dhcp_features" ) 65 #define __dhcp_feature __table_entry ( DHCP_FEATURES, 01 ) 68 #define DHCP_FEATURE( feature_opt, ... ) \ 69 _DHCP_FEATURE ( OBJECT, feature_opt, __VA_ARGS__ ) 70 #define _DHCP_FEATURE( _name, feature_opt, ... ) \ 71 __DHCP_FEATURE ( _name, feature_opt, __VA_ARGS__ ) 72 #define __DHCP_FEATURE( _name, feature_opt, ... ) \ 73 uint8_t __dhcp_feature_ ## _name [] __dhcp_feature = { \ 74 feature_opt, DHCP_OPTION ( __VA_ARGS__ ) \ 84 #define FEATURES __table ( struct feature, "features" ) 87 #define __feature_name( category ) __table_entry ( FEATURES, category ) 90 #define FEATURE_NAME( category, text ) \ 91 _FEATURE_NAME ( category, OBJECT, text ) 92 #define _FEATURE_NAME( category, _name, text ) \ 93 __FEATURE_NAME ( category, _name, text ) 94 #define __FEATURE_NAME( category, _name, text ) \ 95 struct feature __feature_ ## _name __feature_name ( category ) = { \ 100 #define FEATURE( category, text, feature_opt, version ) \ 101 FEATURE_NAME ( category, text ); \ 102 DHCP_FEATURE ( feature_opt, version ); 105 #define FEATURE_VERSION( ... ) \ 106 DHCP_FEATURE ( DHCP_ENCAPSULATED ( DHCP_EB_VERSION ), __VA_ARGS__ )
Dynamic Host Configuration Protocol.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)