Tests: reorganize ErrorChannel and ErrorBinaryModel
This commit is contained in:
@@ -459,6 +459,24 @@ private:
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief The simplest error model, corrupts even packets and does not corrupt odd ones.
|
||||
*/
|
||||
class BinaryErrorModel : public ErrorModel
|
||||
{
|
||||
public:
|
||||
static TypeId GetTypeId (void);
|
||||
|
||||
BinaryErrorModel ();
|
||||
virtual ~BinaryErrorModel ();
|
||||
|
||||
private:
|
||||
virtual bool DoCorrupt (Ptr<Packet> p);
|
||||
virtual void DoReset (void);
|
||||
|
||||
uint8_t m_counter; //!< internal state counter.
|
||||
|
||||
};
|
||||
|
||||
} // namespace ns3
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user