NED File src/inet/routing/ospfv3/Ospfv3.ned¶
Name |
Type |
Description |
|---|---|---|
compound module |
Implements the OSPFv3 (Open Shortest Path First version 3) routing protocol for IPv4 and IPv6 networks. This module supports dynamic routing based on link state advertisements, allowing routers to discover and maintain routes to all destinations in an autonomous system. |
Source code¶
//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
package inet.routing.ospfv3;
import inet.routing.contract.IOspf;
//
// Implements the OSPFv3 (Open Shortest Path First version 3) routing protocol for
// IPv4 and IPv6 networks. This module supports dynamic routing based on link state
// advertisements, allowing routers to discover and maintain routes to all
// destinations in an autonomous system.
//
module Ospfv3 like IOspf
{
parameters:
string interfaceTableModule; // The path to the InterfaceTable module
string routingTableModule;
string routingTableModule6;
string checksumMode @enum("declared", "computed") = default("declared"); // checksum mode for outgoing OSPFv3 packets and originated LSAs; set to "computed" for RFC-correct, Wireshark-verifiable checksums
*.interfaceTableModule = default(absPath(this.interfaceTableModule));
*.routingTableModule = default(absPath(this.routingTableModule));
*.routingTableModule6 = default(absPath(this.routingTableModule6));
*.checksumMode = default(this.checksumMode);
@display("bgb=510,238;i=block/network2");
gates:
input ipIn @labels(Ipv6ControlInfo/up);
output ipOut @labels(Ipv6ControlInfo/down);
submodules:
ospfv3Splitter: Ospfv3Splitter {
@display("p=254,176");
}
connections:
ipIn --> ospfv3Splitter.ipIn;
ipOut <-- ospfv3Splitter.ipOut;
}