use USE_FEATURE_UDHCP_PORT instead of ifdef

This commit is contained in:
Denis Vlasenko 2008-06-15 09:58:53 +00:00
parent f716a6da9a
commit ff7cd6f925

View File

@ -13,9 +13,7 @@ struct client_config_t {
/* TODO: combine flag fields into single "unsigned opt" */ /* TODO: combine flag fields into single "unsigned opt" */
/* (can be set directly to the result of getopt32) */ /* (can be set directly to the result of getopt32) */
char no_default_options; /* Do not include default optins in request */ char no_default_options; /* Do not include default optins in request */
#if ENABLE_FEATURE_UDHCP_PORT USE_FEATURE_UDHCP_PORT(uint16_t port;)
uint16_t port;
#endif
int ifindex; /* Index number of the interface to use */ int ifindex; /* Index number of the interface to use */
uint8_t opt_mask[256 / 8]; /* Bitmask of options to send (-O option) */ uint8_t opt_mask[256 / 8]; /* Bitmask of options to send (-O option) */
const char *interface; /* The name of the interface to use */ const char *interface; /* The name of the interface to use */