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;