Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions
dhcpSendRequest.c File Reference
#include <clock.h>
#include <device.h>
#include "dhcp.h"
#include <ethernet.h>
#include <ipv4.h>
#include <network.h>
#include <string.h>
#include <udp.h>

Functions

syscall dhcpSendRequest (int descrp, struct dhcpData *data)
 

Function Documentation

syscall dhcpSendRequest ( int  descrp,
struct dhcpData *  data 
)

Send a DHCPDISCOVER or DHCPREQUEST packet, depending on the current state of the DHCP client (DHCPC_STATE_INIT or DHCPC_STATE_SELECTING, respectively).

Parameters
[in]descrpNetwork device on which to send the DHCP packet.
[in,out]dataDHCP transfer data that has been filled in appropriately for DHCPC_STATE_INIT or DHCPC_STATE_SELECTING.
Returns
OK if packet was successfully sent; SYSERR otherwise.