Tizen RT Libs&Environment  v1.0 D5

Provides APIs for DHCP(Dynamic Host Configuration Protocol) Client. More...

Collaboration diagram for DHCP:

Files

file  dhcpc.h
 APIs for DHCP client.
 

Data Structures

struct  dhcpc_state
 

Macros

#define EXTERN   extern
 

Functions

void * dhcpc_open (const char *intf)
 Get DHCP client handle. More...
 
int dhcpc_request (void *handle, struct dhcpc_state *presult)
 Starts DHCP client. More...
 
void dhcpc_close (void *handle)
 dhcpc_close() return dhcp client handle More...
 

Detailed Description

Provides APIs for DHCP(Dynamic Host Configuration Protocol) Client.

Macro Definition Documentation

#define EXTERN   extern

Definition at line 102 of file dhcpc.h.

Function Documentation

void dhcpc_close ( void *  handle)

dhcpc_close() return dhcp client handle

Parameters
[in]handlegeneric data structure that contains dhcpc information
Returns
none
Since
Tizen RT v1.0
void* dhcpc_open ( const char *  intf)

Get DHCP client handle.

Parameters
[in]intfthe name of network interface
[in]mac_addrthe mac address of network interface
[in]mac_lenthe length of mac address
Returns
On success, handle. On failure, returns null
Since
Tizen RT v1.0
int dhcpc_request ( void *  handle,
struct dhcpc_state presult 
)

Starts DHCP client.

Parameters
[in]handlegeneric data structure that contains dhcpc information
[out]presultdhcp informations that contain ip address, netmask and gateway
Returns
On success, 0. On failure, returns negative
Since
Tizen RT v1.0