Package: inet.applications.dhcp
DHCPClient
simple moduleImplements 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
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); }File: src/inet/applications/dhcp/DHCPClient.ned