HostAutoConfigurator

Package: inet.networklayer.configurator.ipv4

HostAutoConfigurator

simple module

C++ definition

~HostAutoConfigurator automatically assigns IP addresses and sets up the routing table. It has to be added to each host.

This configurator is deprecated. Please use ~Ipv4NetworkConfigurator whenever possible. This module is kept only because the ~Ipv4NetworkConfigurator cannot assign IP addresses to modules that are dynamically created/destroyed.

Inheritance diagram

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

Extends

Name Type Description
SimpleModule simple module

Base module for all INET simple modules.

Parameters

Name Type Default value Description
displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

interfaceTableModule string
interfaces string "wlan"

List of interfaces to autoassign addresses to, separated by a single space character

addressBase string "10.0.0.0"

Start of the address range from which to automatically assign an address to the autoassignInterfaces

netmask string "255.0.0.0"

Subnet netmask in which to automatically assign an address to the autoassignInterfaces

mcastGroups string ""

List of IP addresses of multicast groups to join, separated by a single space character

Properties

Name Value Description
class HostAutoConfigurator
display i=block/cogwheel

Source code

//
// ~HostAutoConfigurator automatically assigns IP addresses and sets up the routing table.
// It has to be added to each host.
//
// This configurator is deprecated. Please use ~Ipv4NetworkConfigurator whenever possible.
// This module is kept only because the ~Ipv4NetworkConfigurator cannot assign IP addresses
// to modules that are dynamically created/destroyed.
//
simple HostAutoConfigurator extends SimpleModule like IIpv4NodeConfigurator
{
    parameters:
        @class(HostAutoConfigurator);
        string interfaceTableModule;
        string interfaces = default("wlan");         // List of interfaces to autoassign addresses to, separated by a single space character
        string addressBase = default("10.0.0.0");    // Start of the address range from which to automatically assign an address to the autoassignInterfaces
        string netmask = default("255.0.0.0");       // Subnet netmask in which to automatically assign an address to the autoassignInterfaces
        string mcastGroups = default("");         // List of IP addresses of multicast groups to join, separated by a single space character
        @display("i=block/cogwheel");
}

File: src/inet/networklayer/configurator/ipv4/HostAutoConfigurator.ned