Skip to content

Commit f0bf3c4

Browse files
committed
Ip2Nic.cc: cosmetics
1 parent c04aa60 commit f0bf3c4

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/simu5g/stack/ip2nic/Ip2Nic.cc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,10 @@ void Ip2Nic::initialize(int stage)
101101
/**
102102
* TODO: might need a bit more care, if the interface has changed, the query might, too
103103
*/
104-
IIpv4RoutingTable *irt = getModuleFromPar<IIpv4RoutingTable>(
105-
par("routingTableModule"), this);
104+
IIpv4RoutingTable *irt = getModuleFromPar<IIpv4RoutingTable>(par("routingTableModule"), this);
106105
Ipv4Route *defaultRoute = new Ipv4Route();
107-
defaultRoute->setDestination(
108-
Ipv4Address(inet::Ipv4Address::UNSPECIFIED_ADDRESS));
109-
defaultRoute->setNetmask(
110-
Ipv4Address(inet::Ipv4Address::UNSPECIFIED_ADDRESS));
106+
defaultRoute->setDestination(inet::Ipv4Address::UNSPECIFIED_ADDRESS);
107+
defaultRoute->setNetmask(inet::Ipv4Address::UNSPECIFIED_ADDRESS);
111108

112109
defaultRoute->setInterface(networkIf);
113110

0 commit comments

Comments
 (0)