Commit Graph

73 Commits

Author SHA1 Message Date
Greg Steinbrecher
a364863e1e network: Add test cases for DataRate rounding issues (issue #264) 2020-10-02 13:21:00 -07:00
Steven Smith
df89d8fafd network: (merges !413) Add serialization for byte and packet tags 2020-09-30 12:02:39 -07:00
Greg Steinbrecher
bf42996137 network: (merges !424) Align error-model-test-suite with previous commit
Default size of a DropTailQueue is "100p" and error-model-test-suite calls
Send directly (rather than relying on flow control).  Previously, the
rest of the packets would be sent instantly, but previous commit fixes
that bug, so this commit makes the buffer large enough to hold all packets
2020-09-27 12:40:20 -07:00
Tommaso Pecorella
20644db04f network: add LollipopCounter - a sequence number counter type 2020-09-18 00:25:30 +00:00
Tommaso Pecorella
8446ff0cf2 Tests must write their temporary files in the proper (temporary)
directory
2020-01-09 13:46:14 +01:00
Tom Henderson
0258405cc6 build: Upgrade scripts to Python 3 (many changes due to Ankit Deepak) 2019-08-12 16:55:34 -07:00
Natale Patriciello
441ae70c64 Example CI for ns-3 and Gitlab 2019-01-07 09:15:40 +01:00
Alexander Krotov
c8a500f5a8 Remove duplicate semicolons 2018-11-07 16:54:53 +03:00
Alexander Krotov
00bb6fe7f6 Spellcheck 2018-06-27 10:50:27 +03:00
Stefano Avallone
23c7939435 network: Remove deprecated Queue attributes 2018-05-24 23:35:46 +02:00
Tommaso Pecorella
4bcec242c5 network: doxygen updates 2017-05-28 19:46:38 +02:00
Stefano Avallone
6fef34be47 network: Convert Queue into a template class 2017-03-08 18:01:29 +01:00
Tom Henderson
f61da28ef5 test case to support commit 12425:1313ad34c26a 2016-11-27 07:50:18 -08:00
Peter D. Barnes, Jr.
ab4ddafe28 [network] Clarify logging macros 2016-09-02 22:08:32 -04:00
Pasquale Imputato
e02e86faa7 network: Move RED model, test and examples to the traffic-control module
This move prepares RED to become a queue disc. Building of RED
model, tests and examples is disabled until the conversion is done.
2016-03-08 10:45:27 -08:00
Stefano Avallone
df2fa95970 network: Make Queue store QueueItem objects
A QueueItem base class is introduced to represent the items stored
in a Queue. The base class only contains a Ptr<Packet>. Derived classes
can store additional information. DropTailQueue, RedQueue and CodelQueue,
along with their examples and testsuits, have been adapted. Objects using
such queues have been adapted too.
2016-03-08 10:44:03 -08:00
Peter D. Barnes, Jr.
ebd742ba2d Refactor test name character restrictions 2015-08-18 16:17:36 -07:00
Alexander Krotov
ded303057a When data is written with WriteU64, it should be tested with ReadU64,
not ReadLsbtohU64.
2015-08-02 20:44:01 +03:00
Alexander Krotov
b0577a2eac Add "unfixable" ByteTagList test case
This test case creates empty packet, removes last 50 bytes and
adds them back.

As packet is empty initially, no bytes are marked dirty.  Therefore,
Buffer::AddAtEnd returns false, indicating that added bytes were not used
before.  However, it does not know if they were tagged with byte tags.

This bug is not so easy to fix as Buffer does not have enough information
to return true in Buffer::AddAtEnd when it should.
2015-07-26 19:44:31 +03:00
Alexander Krotov
8f515dcc03 Add failing PaddingAtEnd test case 2015-07-26 19:44:30 +03:00
Alexander Krotov
def03785bf Add ByteTagList tests, 3 out of 4 failing 2015-07-26 19:44:29 +03:00
Tom Henderson
8df0d04bbb add missing copyrights 2015-06-10 07:52:23 -07:00
Peter D. Barnes, Jr.
d67ced0392 Fix parents, group names, and missing constructors in GetTypeId definitions. 2015-06-09 12:59:59 -07:00
Peter D. Barnes, Jr.
a2e0ed145a Missing mode lines. 2015-06-08 16:37:40 -07:00
Peter D. Barnes, Jr.
9f88bd50f0 On mismatch PcapFile::Diff reports packet number. 2015-02-04 12:35:17 -08:00
Tom Henderson
ffa4909b25 bug 2044: Buffer::Iterator::ReadNtohU16() and ReadNtohU32() not implemented correctly 2015-01-30 16:27:50 -08:00
Peter D. Barnes, Jr.
cc56e83767 TracedValue callback function signatures. 2014-10-02 21:17:48 -07:00
Tommaso Pecorella
b489a41127 Bug 1811 - Basic traffic generator for network module 2014-09-10 06:09:45 +02:00
Andrey Mazo
9afed6b932 make various implementation-specific tables static const.
This should prevent possible name collisions, clean up ns3 namespace a little
and allow compiler to place them in a sharable read-only data section.
Also make various global variables static not to pollute ns3 namespace and to
force use of Attribute framework where appropriate.
2014-03-26 14:51:14 +04:00
Peter D. Barnes, Jr.
8695d856a1 Link to bug num in bug database with \bugid{num} 2013-08-15 12:01:57 -07:00
Peter D. Barnes, Jr.
e3611c4078 Doxygenate todo's 2013-07-03 14:43:10 -07:00
Peter D. Barnes, Jr.
86109ec9b5 Fix vector index range. 2013-05-24 12:50:44 -07:00
Peter D. Barnes, Jr.
666bcc699f Merge Coverity fixes 2013-05-22 17:58:58 -07:00
Peter D. Barnes, Jr.
258eba0cf3 Add duration to test cases. 2013-05-22 17:22:49 -07:00
Peter D. Barnes, Jr.
572eaccd20 [Coverity] Unchecked return value from library (CHECKED_RETURN) 2013-05-16 11:18:20 -04:00
Peter D. Barnes, Jr.
80b15ea83f [Coverity] Unchecked return value (CHECKED_RETURN) 2013-05-15 16:26:46 -04:00
Vedran Miletić
44e8b40ac9 Rename SequenceNumber TestSuite to sequence-number for consistency 2013-04-06 17:54:20 +02:00
Nicola Baldo
b69928a648 bug 1563: get rid of default argument value in AddTestCase 2013-03-22 13:14:38 +01:00
Tom Henderson
676215d236 move error model test suite to network module 2013-03-18 22:24:11 -07:00
Peter D. Barnes, Jr.
6a0691f121 Undo whitespace-only changes, to ease review 2012-11-14 00:03:41 -08:00
Peter D. Barnes, Jr.
8a5e56e414 Measure micro-benchmark timing. 2012-11-13 23:56:26 -08:00
Peter D. Barnes, Jr.
a10b29e1fd Remove free list from PacketTagList. 2012-11-13 23:51:56 -08:00
Peter D. Barnes, Jr.
2ecedb3e87 Trim excess copies from PacketTagList::Remove, add PacketTagList::Replace, documentation. 2012-11-13 23:44:58 -08:00
Tom Henderson
a6f30c16a6 assign streams to burst error model test case 2013-05-01 06:29:57 -07:00
Anh Nguyen
14506d5d6e Add BurstErrorModel class 2013-04-19 12:58:25 -07:00
Vedran Miletić
aa554e051d Clean up core, network, internet, point-to-point tests that don't access private class attributes and methods in accordance to sample-test-suite.cc. 2012-09-21 13:47:41 +02:00
Vedran Miletić
71e380b55e Bug 1237 - code cleanups related to includes 2012-09-01 20:57:21 +02:00
Mitch Watrous
da1cf74f90 Replace various instances of RandomVariable with RandomVariableStream 2012-08-20 14:25:35 -07:00
Tom Henderson
1b584e2e27 bug 1432: Align Ipv6AddressHelper API with Ipv4AddressHelper API 2012-05-20 15:19:52 -07:00
Vedran Miletić
b5cac1da24 Use longer names for QueueMode and ErrorUnit enums and move them to Queue and RateErrorModel classes respectively. 2012-05-01 20:48:34 +02:00