Go to the documentation of this file.
5 #ifndef _COMMONMESSAGES_M_H_
6 #define _COMMONMESSAGES_M_H_
11 #define MSGC_VERSION 0x0402
12 #if (MSGC_VERSION!=OMNETPP_VERSION)
13 # error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
19 #include <IPvXAddress.h>
25 #define KEY_L OverlayKey::getLength()
47 #define NODEHANDLE_L (IPADDR_L + UDPPORT_L + KEY_L)
50 #define TRANSPORTADDRESS_L (IPADDR_L + UDPPORT_L)
52 #define AUTHBLOCK_L (overlay->getMeasureAuthBlock() ? (SIGNATURE_L + CERT_L + PUBKEY_L) : 0)
54 #define BASEOVERLAY_L(msg) TYPE_L
55 #define BASEROUTE_L(msg) (BASEOVERLAY_L(msg) + NODEHANDLE_L + KEY_L + \
56 HOPCOUNT_L + ROUTINGTYPE_L +\
57 ARRAYSIZE_L + (msg->getVisitedHopsArraySize() *\
58 TRANSPORTADDRESS_L) +\
59 ARRAYSIZE_L + (msg->getNextHopsArraySize() *\
60 TRANSPORTADDRESS_L) +\
62 #define BASEAPPDATA_L(msg) (BASEOVERLAY_L(msg) + 2*COMP_L)
63 #define BASERPC_L(msg) (BASEOVERLAY_L(msg) + NONCE_L + NODEHANDLE_L + \
65 #define BASECALL_L(msg) BASERPC_L(msg)
67 #define BASERESPONSE_L(msg) (BASERPC_L(msg) + AUTHBLOCK_L + \
68 ((msg->getNcsInfoArraySize()) ? \
69 (msg->getNcsInfoArraySize() * NCSINFO_L + 8) : \
71 #define FINDNODECALL_L(msg) (BASECALL_L(msg) + KEY_L + NUMSIBLINGS_L + \
72 NUMREDNODES_L + EXHAUSTIVEFLAG_L)
74 #define FINDNODERESPONSE_L(msg) (BASERESPONSE_L(msg) + NEIGHBORSFLAG_L + \
75 (msg->getClosestNodesArraySize() * NODEHANDLE_L))
76 #define FAILEDNODECALL_L(msg) (BASECALL_L(msg) + IPADDR_L + UDPPORT_L)
77 #define FAILEDNODERESPONSE_L(msg) (BASERESPONSE_L(msg) + TRYAGAINFLAG_L)
78 #define PINGCALL_L(msg) BASECALL_L(msg)
79 #define PINGRESPONSE_L(msg) BASERESPONSE_L(msg)
80 #define BOOTSTRAPPINGCALL_L(msg) BASECALL_L(msg)
81 #define BOOTSTRAPPINGRESPONSE_L(msg) BASERESPONSE_L(msg)
82 #define NEXTHOPCALL_L(msg) BASECALL_L(msg)
83 #define NEXTHOPRESPONSE_L(msg) BASERESPONSE_L(msg)
334 virtual void setType(
int type);
414 virtual simtime_t
getHopDelay(
unsigned int k)
const;
415 virtual void setHopDelay(
unsigned int k, simtime_t hopDelay);
499 virtual unsigned int getNonce()
const;
500 virtual void setNonce(
unsigned int nonce);
586 virtual double getNcsInfo(
unsigned int k)
const;
587 virtual void setNcsInfo(
unsigned int k,
double ncsInfo);
822 PingCall(
const char *name=NULL,
int kind=0);
908 virtual void setComp(
int comp);
1124 virtual void setType(
int type);
1161 KBRroute(
const char *name=NULL,
int kind=0);
1213 KBRforward(
const char *name=NULL,
int kind=0);
1255 KBRdeliver(
const char *name=NULL,
int kind=0);
1296 KBRupdate(
const char *name=NULL,
int kind=0);
1363 virtual uint32_t
getKind()
const;
1364 virtual void setKind(uint32_t kind);
1365 virtual uint32_t
getId()
const;
1366 virtual void setId(uint32_t
id);
1370 virtual int getTtl()
const;
1371 virtual void setTtl(
int ttl);
1428 virtual uint32_t
getKind()
const;
1429 virtual void setKind(uint32_t kind);
1430 virtual uint32_t
getId()
const;
1431 virtual void setId(uint32_t
id);
1435 virtual int getTtl()
const;
1436 virtual void setTtl(
int ttl);
1482 virtual uint32_t
getKind()
const;
1483 virtual void setKind(uint32_t kind);
1484 virtual uint32_t
getId()
const;
1485 virtual void setId(uint32_t
id);
1677 LookupCall(
const char *name=NULL,
int kind=0);
1795 virtual uint32_t
getKind()
const;
1796 virtual void setKind(uint32_t kind);
1797 virtual uint32_t
getId()
const;
1798 virtual void setId(uint32_t
id);
1802 virtual int getTtl()
const;
1803 virtual void setTtl(
int ttl);
1895 virtual uint32_t
getKind()
const;
1896 virtual void setKind(uint32_t kind);
1897 virtual uint32_t
getId()
const;
1898 virtual void setId(uint32_t
id);
1956 virtual uint32_t
getKind(
unsigned int k)
const;
1957 virtual void setKind(
unsigned int k, uint32_t kind);
1960 virtual uint32_t
getId(
unsigned int k)
const;
1961 virtual void setId(
unsigned int k, uint32_t
id);
2110 ALMMessage(
const char *name=NULL,
int kind=0);
2540 virtual const char *
getMsg()
const;
2541 virtual void setMsg(
const char * msg);
2656 #endif // _COMMONMESSAGES_M_H_