IIpv4¶
Package: inet.networklayer.ipv4
module interface IIpv4
Module interface for IPv4 protocol implementations. Defines gates and parameters for modules that provide IPv4 protocol functionality. The IPv4 protocol provides datagram routing, fragmentation, and addressing between network interfaces and transport layer protocols.
Inheritance diagram¶
Implemented by¶
Name |
Type |
Description |
|---|---|---|
compound module |
Provides IPv4 layer functionality for network emulation that connects the simulation to a real network on the host computer. Sends packets from the simulation to the real network and receives packets from the real network into the simulation using raw sockets. Uses Ipv4Encap for packet encapsulation and ExtIpv4Socket for the connection to the host’s networking stack. |
|
compound module |
Provides IPv4 layer functionality for network emulation that connects simulated applications to a real network on the host computer. Uses a real TUN device on the host OS to capture and inject packets at the IP layer, allowing simulated applications to communicate with real-world network endpoints through the host’s networking stack. |
|
simple module |
Implements the IPv4 protocol. The protocol header is represented by the Ipv4Header message class. |
Properties¶
Name |
Value |
Description |
|---|---|---|
display |
i=block/routing |
Source code¶
//
// Module interface for IPv4 protocol implementations. Defines gates and
// parameters for modules that provide IPv4 protocol functionality. The IPv4
// protocol provides datagram routing, fragmentation, and addressing between
// network interfaces and transport layer protocols.
//
moduleinterface IIpv4
{
parameters:
@display("i=block/routing");
gates:
input transportIn @labels(Ipv4ControlInfo/down,TcpHeader,UdpHeader,SctpHeader);
output transportOut @labels(Ipv4ControlInfo/up,TcpHeader,UdpHeader,SctpHeader);
input queueIn @labels(Ipv4Header,ArpPacket,Ieee802Ctrl);
output queueOut @labels(Ipv4Header,ArpPacket,Ieee802Ctrl);
}