{
Trust *msg = new Trust("TREP", 1);
msg->setValue(getTrustn());
msg->setRCvalue(getTrusti());
msg->setType(TRUST_TREP);
msg->setSrcAddress(datagram->getDestAddress());
msg->setDestAddress(datagram->getSrcAddress());
cPacket *packet=check_and_cast<cPacket *>(msg);
IPControlInfo *ipControlInfo = new IPControlInfo();
ipControlInfo->setProtocol(IP_PROT_TRUST);
ipControlInfo->setSrcAddr(datagram->getDestAddress());
ipControlInfo->setDestAddr(datagram->getSrcAddress());
ipControlInfo->setTimeToLive(15);
InterfaceEntry * ie = getSourceInterfaceFrom(datagram);
IPDatagram *dgram=encapsulate(packet, ie, ipControlInfo);
send(dgram, queueOutGate);
}