NED File src/inet/applications/dhcp/DHCPClient.ned
Name | Type | Description |
---|---|---|
DHCPClient | simple module |
Implements the DHCP client protocol. DHCP (Dynamic Host Configuration Protocol), described in RFC 2131, provides configuration parameters to Internet hosts. Requires UDP. |
Source code
// // Copyright (C) 2008 Juan-Carlos Maureira // Copyright (C) INRIA // Copyright (C) 2013 OpenSim Ltd. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program; if not, see <http://www.gnu.org/licenses/>. // package inet.applications.dhcp; import inet.applications.contract.IUDPApp; // // 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); }