Simple Module DHCPClient

Package: inet.applications.dhcp
File: src/inet/applications/dhcp/DHCPClient.ned

C++ definition

Implements the DHCP client protocol. DHCP (Dynamic Host Configuration Protocol), described in RFC 2131, provides configuration parameters to Internet hosts. Requires UDP.

See also: DHCPServer, DHCPMessage

DHCPClient

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Parameters:

Name Type Default value Description
interfaceTableModule string

The path to the InterfaceTable module

routingTableModule string
interface string ""

which NIC should be configured (i.e. wlan0, eth1 etc.)

startTime double 0s

starting time of DHCP initialization

Properties:

Name Value Description
display i=block/app2

Gates:

Name Direction Size Description
udpIn input
udpOut output

Source code:

//
// Implements the DHCP client protocol. DHCP (Dynamic Host Configuration Protocol),
// described in RFC 2131, provides configuration parameters to Internet hosts.
// Requires UDP.
//
// @see DHCPServer, DHCPMessage
//
simple DHCPClient like IUDPApp
{
    parameters:
        string interfaceTableModule;   // The path to the InterfaceTable module
        string routingTableModule;
        string interface = default("");  // which NIC should be configured (i.e. wlan0, eth1 etc.)
        double startTime @unit(s) = default(0s); // starting time of DHCP initialization
        @display("i=block/app2");
    gates:
        input udpIn @labels(UDPControlInfo/up);
        output udpOut @labels(UDPControlInfo/down);
}