HostAutoConfigurator

Package: inet.networklayer.configurator.ipv4

HostAutoConfigurator

simple module

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

This configurator is deprecated. Please use Ipv4NetworkConfigurator whenever it is 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.

Parameters

Name Type Default value Description
interfaceTableModule string
interfaces string "wlan"

list of interfaces to autoassign addresses to, separated by a single space characters

addressBase string "10.0.0.0"

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

netmask string "255.0.0.0"

netmask of subnet 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 characters

Properties

Name Value Description
display i=block/cogwheel

Direct method calls (observed)

call tofunctioninfo
InterfaceTableinet::InterfaceTable::findInterfaceByNamefindInterfaceByName
InterfaceTableinet::InterfaceTable::interfaceChangedinterfaceChanged

Tagging operations (observed)

tagTypetagAction
inet::Ipv4InterfaceDataaddTag, getTagForUpdate

Source code

//
// ~HostAutoConfigurator automatically assigns IP addresses and sets up routing table.
// It has to be added into each host.
//
// This configurator is deprecated. Please use ~Ipv4NetworkConfigurator whenever it is possible.
// This module is kept only because the ~Ipv4NetworkConfigurator cannot assign IP addresses
// to modules that are dynamically created/destroyed.
//
simple HostAutoConfigurator like IIpv4NodeConfigurator
{
    parameters:
        string interfaceTableModule;
        string interfaces = default("wlan");         // list of interfaces to autoassign addresses to, separated by a single space characters
        string addressBase = default("10.0.0.0");    // start of address range from which to automatically assign an address to the autoassignInterfaces
        string netmask = default("255.0.0.0");       // netmask of subnet 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 characters
        @display("i=block/cogwheel");
}

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