ns-allinone-2.35/ns-2.35/diffusion/diff_prob.cc
void DiffusionProb::SendNegReinf()
{
    ns_addr_t bcast_addr;
    bcast_addr.addr_ = MAC_BROADCAST;
    bcast_addr.port_ = ROUTING_PORT;

    Packet *pkt = prepare_message(0, bcast_addr, NEG_REINFORCE);
    MACprepare(pkt, MAC_BROADCAST, NS_AF_ILINK, 0);
    MACsend(pkt, 0);
    overhead++;
    return;
}
// For negative reinforcement, we don't care the data type.
// Any neighbor upstream of any data type should be informed.
For negative reinforcement, we don't care the data type.
Any neighbor upstream of any data type should be informed.
For negative reinforcement we don ' t care the data type . Any neighbor upstream of any data type should be informed .
void DiffusionProb::SendNegReinf()
{
    ns_addr_t bcast_addr;
    bcast_addr.addr_ = MAC_BROADCAST;
    bcast_addr.port_ = ROUTING_PORT;
    Packet *pkt = prepare_message(0, bcast_addr, NEG_REINFORCE);
    MACprepare(pkt, MAC_BROADCAST, NS_AF_ILINK, 0);
    MACsend(pkt, 0);
    overhead++;
    return;
}
void DiffusionProb :: SendNegReinf ( ) { ns_addr_t bcast_addr ; bcast_addr . addr_ = MAC_BROADCAST ; bcast_addr . port_ = ROUTING_PORT ; Packet * pkt = prepare_message ( 0 , bcast_addr , NEG_REINFORCE ) ; MACprepare ( pkt , MAC_BROADCAST , NS_AF_ILINK , 0 ) ; MACsend ( pkt , 0 ) ; overhead ++ ; return ; }
For negative reinforcement, we don't care the data type.
For negative reinforcement we don ' t care the data type .