options.c: Add an add_option_clientid() variant for ndhs to use, and silence

an unused function warning that triggers when compiling ndhs.
This commit is contained in:
Nicholas J. Kain
2014-03-18 01:51:58 -04:00
parent 742baf6d7b
commit 3d0f46580a
2 changed files with 9 additions and 0 deletions

View File

@ -76,6 +76,8 @@ void add_option_maxsize(struct dhcpmsg *packet);
void add_option_vendor(struct dhcpmsg *packet);
void add_option_clientid(struct dhcpmsg *packet);
void add_option_hostname(struct dhcpmsg *packet);
#else
void add_option_clientid(struct dhcpmsg *packet, char *clientid, size_t clen);
#endif
uint32_t get_option_router(struct dhcpmsg *packet);
uint8_t get_option_msgtype(struct dhcpmsg *packet);