I want to create or edit the nodes in inet or omnet++.
Instead of having seven layers for example, I want a host with three layers (phys, mac and app)
There are several approaches, from the most complex to the simplest:
EthernetHost
as an example)LinkLayerNodeBase
. That will inherit only up to the link layer.hasIpv4
, hasUdp
and hasTcp
to false)EthernetApp
and all its descendant) then packets sent by the app will anyway directly sent to the linklayer and routed around the transport and network layers).