From e02d95fa41c430663be124375650a7d511d76866 Mon Sep 17 00:00:00 2001 From: Borovkova Elena Date: Tue, 7 Jul 2009 12:11:45 +0400 Subject: [PATCH] cosmetics --- src/routing/aodv/aodv-packet.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/routing/aodv/aodv-packet.h b/src/routing/aodv/aodv-packet.h index 77e92941a..ef4545e68 100644 --- a/src/routing/aodv/aodv-packet.h +++ b/src/routing/aodv/aodv-packet.h @@ -185,13 +185,13 @@ public: bool operator==(RrepHeader const & o) const; private: static MessageType type() { return AODVTYPE_RREP; } - uint8_t rp_flags; ///< A - acknowledgment required flag - uint8_t prefixSize; ///< Prefix Size - uint8_t rp_hop_count; ///< Hop Count - Ipv4Address rp_dst; ///< Destination IP Address - uint32_t rp_dst_seqno; ///< Destination Sequence Number - Ipv4Address rp_src; ///< Source IP Address - uint32_t rp_lifetime; ///< Lifetime + uint8_t rp_flags; ///< A - acknowledgment required flag + uint8_t prefixSize; ///< Prefix Size + uint8_t rp_hop_count; ///< Hop Count + Ipv4Address rp_dst; ///< Destination IP Address + uint32_t rp_dst_seqno; ///< Destination Sequence Number + Ipv4Address rp_src; ///< Source IP Address + uint32_t rp_lifetime; ///< Lifetime }; std::ostream & operator<<(std::ostream & os, RrepHeader const &); @@ -218,6 +218,7 @@ public: uint32_t Deserialize (Buffer::Iterator start); void Print (std::ostream &os) const; //\} + bool operator==(RrepAckHeader const & o) const; private: static MessageType type() { return AODVTYPE_RREP_ACK; } @@ -264,14 +265,15 @@ public: void SetNoDelete(bool f); bool GetNoDelete(); //\} + bool AddUnDestination(Ipv4Address dst, uint32_t seqNo); uint8_t GetDestCount() const { return destCount; } bool operator==(RerrHeader const & o) const; private: static MessageType type() { return AODVTYPE_RERR; } - uint8_t er_flag; ///< No delete flag - uint8_t reserved; ///< Not used - uint8_t destCount; ///< DestCount + uint8_t er_flag; ///< No delete flag + uint8_t reserved; ///< Not used + uint8_t destCount; ///< DestCount /// List of Unreachable destination IP addresses and sequence numbers std::map unreachable_dst;