[Doxygen] network module

This commit is contained in:
Tommaso Pecorella
2014-10-07 21:37:00 +02:00
parent f0a030b94b
commit fcda743c44
2 changed files with 33 additions and 4 deletions

View File

@@ -469,6 +469,7 @@ std::istream & operator >> (std::istream &is, const SequenceNumber<NUMERIC_TYPE,
typedef SequenceNumber<uint32_t, int32_t> SequenceNumber32;
/// 16 bit Sequence number
typedef SequenceNumber<uint16_t, int16_t> SequenceNumber16;
/// 8 bit Sequence number
typedef SequenceNumber<uint8_t, int8_t> SequenceNumber8;
/**

View File

@@ -36,10 +36,14 @@ namespace ns3 {
NS_LOG_COMPONENT_DEFINE ("SimpleNetDevice");
/**
* \brief Internal tag to store source, destination and protocol of each packet.
* \brief SimpleNetDevice tag to store source, destination and protocol of each packet.
*/
class SimpleTag : public Tag {
public:
/**
* \brief Get the type ID.
* \return the object TypeId
*/
static TypeId GetTypeId (void);
virtual TypeId GetInstanceTypeId (void) const;
@@ -47,21 +51,45 @@ public:
virtual void Serialize (TagBuffer i) const;
virtual void Deserialize (TagBuffer i);
/**
* Set the source address
* \param src source address
*/
void SetSrc (Mac48Address src);
/**
* Get the source address
* \return the source address
*/
Mac48Address GetSrc (void) const;
/**
* Set the destination address
* \param dst destination address
*/
void SetDst (Mac48Address dst);
/**
* Get the destination address
* \return the destination address
*/
Mac48Address GetDst (void) const;
/**
* Set the protocol number
* \param proto protocol number
*/
void SetProto (uint16_t proto);
/**
* Get the protocol number
* \return the protocol number
*/
uint16_t GetProto (void) const;
void Print (std::ostream &os) const;
private:
Mac48Address m_src;
Mac48Address m_dst;
uint16_t m_protocolNumber;
Mac48Address m_src; //!< source address
Mac48Address m_dst; //!< destination address
uint16_t m_protocolNumber; //!< protocol number
};