Msg File src/LinkMon/LSMPacket.msg

Name Description
LSMPacket (packet)

The Link State Monitoring Packet

Source code:

// The Link State Monitoring Packet format 
//
// Copyright (C) 2011 Nikolaos Vastardis; University of Essex, Colchester
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program; if not, see <http://www.gnu.org/licenses/>.
//
cplusplus {{
#include <stdio.h>
#include <omnetpp.h>
#include <sys/types.h>
#include <iostream>
#include <string>
#include "InformationItem.h"
#include "BA_API.h"
#include "INETDefs.h"
#include "QoSStructs.h"
}}

class noncobject QoSList;

//
// <b> The Link State Monitoring Packet </b>
//
// Packet sent by the Link Monitor module to the Topology Manager, in order to 
// inform on any changes in the link quality and status. It includes the type of 
// the change, the node ID, the RepLen and the quality measurements. It is send 
// directly to the Topology manager, and does not need any confirmation of reception.
//
// @see TMInterface, Forwarder
//
// @author: Nikolaos Vastardis
//
packet LSMPacket {
    uint8_t type;
    string nodeID;
    uint8_t repLen;
    string lid[];
    QoSList linkStatus[];
}