Remove support for RFC868 Time Server options. Totally obsolete, and

ifchd just had empty hooks that never received work messages anyway.

Shorten the names of ifchd commands.  This breaks wire protocol, but
thankfully I haven't released yet!
This commit is contained in:
Nicholas J. Kain
2011-07-25 03:39:17 -04:00
parent 544a837944
commit 8caf9e7d7a
5 changed files with 20 additions and 36 deletions

View File

@@ -37,7 +37,7 @@
struct dhcp_option {
uint8_t code;
uint8_t type;
char name[10];
char name[6];
};
#define DCODE_PADDING 0x00
@@ -57,7 +57,6 @@ static const struct dhcp_option options[] = {
{DCODE_SUBNET , OPTION_IP | OPTION_LIST | OPTION_REQ, CMD_SUBNET },
{DCODE_TIMEZONE , OPTION_S32, CMD_TIMEZONE },
{DCODE_ROUTER , OPTION_IP | OPTION_REQ, CMD_ROUTER },
{DCODE_TIMESVR , OPTION_IP | OPTION_LIST, CMD_TIMESVR },
{DCODE_DNS , OPTION_IP | OPTION_LIST | OPTION_REQ, CMD_DNS },
{DCODE_LPRSVR , OPTION_IP | OPTION_LIST, CMD_LPRSVR },
{DCODE_HOSTNAME , OPTION_STRING | OPTION_REQ, CMD_HOSTNAME },

View File

@@ -33,7 +33,6 @@
#define DCODE_SUBNET 0x01
#define DCODE_TIMEZONE 0x02
#define DCODE_ROUTER 0x03
#define DCODE_TIMESVR 0x04
#define DCODE_DNS 0x06
#define DCODE_LPRSVR 0x09
#define DCODE_HOSTNAME 0x0c