problem on ospf--channel.setDisabled() method

15 views
Skip to first unread message

yonas berhanu

unread,
Feb 3, 2012, 5:06:27 PM2/3/12
to omnetpp
Hi all,

I was trying to simulate a link flap in ospfv2 in omnetpp-4.2.1 using
the channel object..but the setDisabled() method kept on closing the
simulation and i don't exactly get the reason why..it works on simple
modules like like the source-sink example but not on compound modules
like OSPFRouter.The following code shuts down the simulation, At first
it was throwing an error message like ...can't schedule message to the
past t=0

please help

ift = InterfaceTableAccess().get();
InterfaceEntry *ie = ift->getInterface(1);
cGate *g = getParentModule()->gate(ie-
>getNodeOutputGateId());
cDatarateChannel *dr=(cDatarateChannel *)g-
>getTransmissionChannel();
dr->setDisabled(true);

thx in advance!
Ylight
Reply all
Reply to author
Forward
0 new messages