Reference

This section provides a summary of documents related to DHCP that you can refer.

The following table explains the various constants used to extract the DHCP options available in Symbian platform.

Constant

Description

Version Supported

KConnGetCurrentAddr

Retrieves the current IP address that the host uses.

IPv4 and IPv6

KConnGetServerAddr

Retrieves the DHCP IP address of the server.

IPv4 and IPv6

KConnGetAddrLeaseTimeRemain

Retrieves the remaining lease time of the current IP address.

IPv4 and IPv6

KConnAddrRelease

Releases the current IP address.

IPv4 and IPv6

KConnAddrRenew

Renews the current lease of the IP address.

IPv4 and IPv6

KConnGetDhcpRawOptionData

Retrieves raw data from the DHCP messages.

IPv4 and IPv6

KConnGetSipServerAddr

Retrieves the SIP server address.

IPv4 and IPv6

KConnGetSipServerDomain

Retrieves the SIP server domain name.

IPv4 and IPv6

KConnGetDhcpHdrSname

Retrieves the host name of next available DHCP server.

IPv4 only

KConngetDhcpHdrSiaddr

Retrieves the IP address of next available DHCP server.

IPv4 only

KConnGetTftpServerAddr

Retrieves the IP address of the TFTP server.

IPv4 only

KConnDhcpGetMultipleParams

Retrieves multiple option code data in raw format.

IPv4 only

KConnGetTftpServerName

Retrieves the host name of the TFTP server.

IPv4 only

Comms Database Configuration for DHCP

To use the DHCP, the following records have to be modified in the Comms Database service table .

Record name

Description

Value

ConfigDaemonName

Name of the DHCP daemon to be loaded by the Nifman.

DhcpServ

IpAddrFromServ

Determines if an IP address is required from the DHCP server.

TRUE

IfNetworks

The protocols supported by the connection.

ip for IPv4 networks or ip6 for IPv6 networks

If the IpAddrFromServ field is set to FALSE , the IPAddr field must be set with a static IP address.

The DHCP daemon in the comms database configures the following DHCP related fields:

Record name

Description

IpAddrLeaseValidFrom

The start time of the IP address.

IpAddrLeaseValidTo

The end time of the IP address.

IpAddr

The IP address of the device.