More tap work -- DHCP configuration and such.

This commit is contained in:
Adam Ierymenko 2013-08-27 15:55:32 -04:00
parent 1c88a518cf
commit cd907a7662
4 changed files with 71 additions and 0 deletions

View file

@ -99,6 +99,31 @@ public:
*/
void whack();
/**
* Set whether or not DHCP is enabled (disabled by default)
*
* @param dhcp DHCP status
* @return New state of DHCP (may be false even on 'true' if DHCP enable failed)
*/
bool setDhcpEnabled(bool dhcp);
/**
* Set whether or not DHCP6 is enabled (disabled by default)
*
* @param dhcp DHCP6 status
* @return New state of DHCP6 (may be false even on 'true' if DHCP enable failed)
*/
bool setDhcp6Enabled(bool dhcp);
/**
* Set the user display name for this connection
*
* This does nothing on platforms that don't have this concept.
*
* @param dn User display name
*/
void setDisplayName(const char *dn);
/**
* @return MAC address of this interface
*/
@ -205,6 +230,9 @@ private:
void (*_handler)(void *,const MAC &,const MAC &,unsigned int,const Buffer<4096> &);
void *_arg;
bool _dhcp;
bool _dhcp6;
Thread _thread;
#ifdef __UNIX_LIKE__