/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*
* INFORM_SENT state of the client state machine.
*/
#include <time.h>
#include <dhcpmsg.h>
#include "agent.h"
#include "states.h"
#include "interface.h"
#include "packet.h"
/*
* dhcp_inform(): sends an INFORM packet and sets up reception for an ACK
*
* input: dhcp_smach_t *: the state machine to use
* output: void
* note: the INFORM cannot be sent successfully if the interface
* does not have an IP address (this is mostly an issue for IPv4).
* We switch into INFORM_SENT state before sending the packet so
* that the packet-sending subsystem uses regular sockets and sets
* the source address. (See set_smach_state.)
*/
void
{
goto failed;
/* Add required Option Request option */
} else {
/*
* Assemble a DHCPREQUEST packet, without the Server ID option.
* Fill in ciaddr, since we know this. dsm_server will be set
* to the server's IP address, which will be the broadcast
* address if we don't know it. The max DHCP message size
* option is set to the interface max, minus the size of the
* UDP and IP headers.
*/
sizeof (struct udpiphdr)));
if (class_id_len != 0) {
}
goto failed;
}
}
return;
}
/*
* stop_informing(): decides when to stop retransmitting Information-Requests
*
* input: dhcp_smach_t *: the state machine Info-Reqs are being sent from
* unsigned int: the number of requests sent so far
* output: boolean_t: B_TRUE if retransmissions should stop
*/
/* ARGSUSED */
static boolean_t
{
return (B_FALSE);
}