diff options
author | carlsonj <none@none> | 2007-04-25 11:54:45 -0700 |
---|---|---|
committer | carlsonj <none@none> | 2007-04-25 11:54:45 -0700 |
commit | cfb9c9abdc2696bc174bb10a3a28552dc917b98f (patch) | |
tree | 66f98c1f0a916d6eacc66a9141e1153208695386 /usr/src/lib/libdhcpagent/common/dhcpagent_util.c | |
parent | 8cb045d062db356cee4eaacd954f772ab314f6f3 (diff) | |
download | illumos-gate-cfb9c9abdc2696bc174bb10a3a28552dc917b98f.tar.gz |
6396937 dhcpagent: cannot write /etc/dhcp/e1000g0.dhc
6514851 in.ndpd "giving up" message needs work
6524645 clear_lif_dhcp is too cautious
6525108 inconsistent handling of lists due to fix for CR 6209214
6528047 dhcp inform messages are sent with zero source
6541139 dhcpagent can leave timers running on drop
6541633 dhcpagent's route clean-up mechanism can misfire, removing default route
Diffstat (limited to 'usr/src/lib/libdhcpagent/common/dhcpagent_util.c')
-rw-r--r-- | usr/src/lib/libdhcpagent/common/dhcpagent_util.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/usr/src/lib/libdhcpagent/common/dhcpagent_util.c b/usr/src/lib/libdhcpagent/common/dhcpagent_util.c index 61101bb66c..e6d95cd0d1 100644 --- a/usr/src/lib/libdhcpagent/common/dhcpagent_util.c +++ b/usr/src/lib/libdhcpagent/common/dhcpagent_util.c @@ -79,38 +79,6 @@ dhcp_state_to_string(DHCPSTATE state) } /* - * dhcp_string_to_request(): maps a string into a request code - * - * input: const char *: the string to map - * output: dhcp_ipc_type_t: the request code, or -1 if unknown - */ - -dhcp_ipc_type_t -dhcp_string_to_request(const char *request) -{ - static struct { - const char *string; - dhcp_ipc_type_t type; - } types[] = { - { "drop", DHCP_DROP }, - { "extend", DHCP_EXTEND }, - { "inform", DHCP_INFORM }, - { "ping", DHCP_PING }, - { "release", DHCP_RELEASE }, - { "start", DHCP_START }, - { "status", DHCP_STATUS } - }; - - unsigned int i; - - for (i = 0; i < (sizeof (types) / sizeof (*types)); i++) - if (strcmp(types[i].string, request) == 0) - return (types[i].type); - - return (-1); -} - -/* * dhcp_start_agent(): starts the agent if not already running * * input: int: number of seconds to wait for agent to start (-1 is forever) |