Commit Graph

278 Commits

Author SHA1 Message Date
Sébastien Deronne
d8b035323a Fix broken test 2015-09-04 22:18:04 +02:00
Alexander Krotov
20f5c5e062 bug 2173: WifiInformationElement::DeserializeIfPresent attempts to read beyond the end of buffer 2015-09-04 01:10:29 +02:00
Sébastien Deronne
04dfda290c add support for IEEE 802.11ac 2015-09-03 22:16:49 +02:00
Peter D. Barnes, Jr.
b1976b6366 Merge 2015-08-18 16:59:27 -07:00
Peter D. Barnes, Jr.
61f2fbd415 [doxygen] Revise TracedCallback function signatures for const. 2015-08-18 16:46:10 -07:00
Peter D. Barnes, Jr.
ebd742ba2d Refactor test name character restrictions 2015-08-18 16:17:36 -07:00
Peter D. Barnes, Jr.
be83597fd4 Flush pcap files in debug builds. 2015-08-18 15:19:32 -07:00
Tom Henderson
95ffc4d89b rescan bindings 2015-08-14 08:00:38 -07:00
Peter D. Barnes, Jr.
baddf3f749 Refactor TracedValue callback function signatures.
Move from template class TracedValue to namespace TracedValueCallback.

Rename from [type]Callback to just [type]:
TracedValue<double>::DoubleCallback  -> TracedValueCallback::Double
2015-07-29 13:56:55 -07:00
Sébastien Deronne
3f1a93b68b [network] Rebuild python bindings 2015-08-09 20:29:17 +02:00
Alexander Krotov
292979e742 Removed GetCurrentStartOffset and GetCurrentEndOffset 2015-07-26 19:44:31 +03:00
Alexander Krotov
7fb26bfe59 Make ByteTagList offsets relative to packet start 2015-07-26 19:44:32 +03:00
Alexander Krotov
19488ad7aa Factor ByteTagList::Adjust out of ByteTagList::AddAt{Start,End} 2015-08-08 23:33:55 +03:00
Alexander Krotov
0afb4dcc80 Optimize ByteTagList adjustment 2015-08-08 23:13:40 +03:00
Alexander Krotov
35f4c249d4 Optimize ByteTagList by tracking byte tags boundaries
This patch restores performance to the level nearly equal to that before
recent bugfixing, as was checked by running utils/bench-packets.
2015-07-26 19:44:33 +03:00
Mathieu Lacage
a623762bd9 merge 2015-08-07 02:47:25 -04:00
Tom Henderson
8509f28877 rescan network bindings 2015-08-06 11:15:42 -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
b62cf68711 Make Buffer::CreateFullCopy private 2015-08-02 19:26:37 +03:00
Alexander Krotov
6250c61bcf Optimize Buffer::Iterator::CheckNoZero 2015-07-26 19:44:29 +03:00
Mathieu Lacage
fd74ac7616 remove un-needed return value 2015-08-05 15:20:10 -04:00
Mathieu Lacage
3ae948f663 ByteTagList::AddAtEnd/AddAtStart must be called unconditionally to ensure that newly-added bytes are not tagged when 1. Packet::AddByteTag, 2. Packet::RemoveHeader, 3. Packet.AddHEader 2015-08-05 15:11:19 -04: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
Alexander Krotov
e5697f0c2c Remove ByteTagList::IsDirty{Start,End}
These functions are only used once and do not save time.  Both functions
iterate over the whole list just to prevent iterating over the whole list
if they return false. As traversing the list is required in any case,
these functions can be removed.
2015-07-26 19:44:06 +03:00
Peter D. Barnes, Jr.
69dd251a0f [Doxygen] Better documentation for NS_DEPRECATED 2015-07-10 18:13:14 -07:00
Matthieu Coudron
2f63edb779 Add SinkWithHeader to PcapHelper 2015-07-22 01:13:06 +02:00
Sébastien Deronne
0d5fc14442 add support for HT MCS and A-MPDU in radiotap headers 2015-07-08 23:44:17 +02:00
Tommaso Pecorella
d74e9fdf30 Enh. 2130 - Allow SimpleChannel to simulate hidden terminals. 2015-06-11 19:07:25 +02:00
Tommaso Pecorella
cbe83c6f5a Bug 2138 - SimpleNetDevice could send overlapped packets. 2015-06-11 11:40:53 +02: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
Tom Henderson
ab88e121ca fix attribute accessor for DropTailQueue Mode attribute (reported by Chip Webb) 2015-06-08 13:46:18 -07:00
Peter D. Barnes, Jr.
5545a7f224 Remove extraneous ' ' around :: 2015-02-04 13:40:57 -08:00
Peter D. Barnes, Jr.
9f88bd50f0 On mismatch PcapFile::Diff reports packet number. 2015-02-04 12:35:17 -08:00
Tom Henderson
92d33e8c9e rescan bindings 2015-05-05 21:29:58 -07:00
Tom Henderson
d8494dfb97 add missing namespace qualifier 2015-03-27 07:12:37 -07:00
Mohit Goyal
811962d3e0 SetGroupName for network module 2015-03-27 07:03:58 -07:00
Vedran Miletić
3edd12c191 Fix building with GCC 5 and subsequently clean up sgi-hashmap.h 2015-03-05 15:50:18 +01:00
Natale Patriciello
b27422fb2f Bug 2070 - Wrong report of Packets and Bytes stored in CoDeL 2015-03-01 12:08:36 +01:00
Tommaso Pecorella
0630f6dee9 Bug 1974 - CalculateTxTime should return a Time, not a double 2015-02-28 18:20:46 +01:00
Tom Henderson
ffa4909b25 bug 2044: Buffer::Iterator::ReadNtohU16() and ReadNtohU32() not implemented correctly 2015-01-30 16:27:50 -08:00
Tom Henderson
2be7d2e686 Doxygen corrections for class Buffer 2015-01-30 16:06:55 -08:00
Peter D. Barnes, Jr.
40eb448c95 [Doxygen] Remove extraneous docs for derivatives of AttributeValue. 2015-01-16 12:12:46 -08:00
Peter D. Barnes, Jr.
8de4b6ed1e [Doxygen] Clean up references to non-POD TracedValueCallbacks 2014-12-12 14:48:13 -08:00
Tom Henderson
e1108928f1 rescan bindings 2014-12-19 16:22:49 -08:00
Peter D. Barnes, Jr.
692bf472e6 TracedCallback function signatures, the rest. 2014-12-04 10:02:01 -08:00
Peter D. Barnes, Jr.
4cb9c7b916 TracedCallback function signatures, the simple ones.
These are TracedCallback function signatures for traces sources
using a single argument.
2014-10-03 02:24:42 -07:00