Commit Graph

61 Commits

Author SHA1 Message Date
Sebastien Vincent
75fab6d1b0 bug 236: add optional support for tcp and udp checksum. 2008-07-01 10:52:11 -07:00
Mathieu Lacage
16d1d635a0 new Packet testcases, bug fix. 2008-05-29 12:13:42 -07:00
Tom Henderson
b851cc5b0b Undo changeset 3163 (breaks multicast) 2008-05-28 22:06:14 -07:00
Mathieu Lacage
45793c3a02 fix new packet bug 2008-05-28 10:47:14 -07:00
Mathieu Lacage
31870b3bc0 more logging code 2008-05-28 10:11:08 -07:00
Mathieu Lacage
16018e8d7e add logging 2008-05-28 08:51:27 -07:00
Mathieu Lacage
1a990a1877 bug 179: Packet fragmentation bug 2008-05-15 09:49:04 -07:00
Mathieu Lacage
2d581766fd a new tag implementation: Mtag 2008-04-24 14:52:59 -07:00
Mathieu Lacage
4a78ce68d1 add adjustment report to overloaded Buffer::AddAtEnd method 2008-04-23 09:11:55 -07:00
Mathieu Lacage
ad54b2ce62 make the code more consistent across AddAtStart and AddAtEnd 2008-04-23 09:05:18 -07:00
Mathieu Lacage
f79e7581b6 report the adjustment delta in Buffer::AddAtEnd and Buffer::AddAtStart. 2008-04-23 08:54:29 -07:00
Mathieu Lacage
aeffbb31d7 kill dead code 2008-04-23 08:35:59 -07:00
Mathieu Lacage
63d6b14d45 optimize case where fake payload is fragmented and re-assembled. 2008-04-22 14:35:42 -07:00
Mathieu Lacage
815f3721b7 move Packet::AddAtEnd implementation to the Buffer code. 2008-04-22 14:18:33 -07:00
Mathieu Lacage
0dab5235c9 kill unused code 2008-04-22 13:54:05 -07:00
Mathieu Lacage
ff4dfc3009 add Htolsb and Lsbtoh write/read methods 2008-03-28 18:45:10 -07:00
Craig Dowell
90b02a4f6c checkpoint debug to log 2007-09-13 17:47:42 -07:00
Mathieu Lacage
eb05af8e74 add 'internal' documentation, cleanup a bit 2007-09-12 11:16:18 +02:00
Mathieu Lacage
6969cf239a optimize Iterator::ReadU8 2007-09-11 15:06:27 +02:00
Mathieu Lacage
2b3b68605e optimize Buffer::WriteU8 variants 2007-09-11 14:56:10 +02:00
Mathieu Lacage
42e6c413b6 optimize Buffer::WriteU8 2007-09-11 14:10:02 +02:00
Mathieu Lacage
4e75362d4b move around Iterator code 2007-09-11 13:53:39 +02:00
Mathieu Lacage
9bbfa99b4c print some statistics about free list efficiency 2007-09-11 13:47:17 +02:00
Mathieu Lacage
ca342d8de2 fix buggy assert 2007-09-10 18:49:00 +02:00
Mathieu Lacage
0c2dd78f3b update carefully m_maxZeroAreaSize and update correctly m_end and m_zeroAreaEnd in RemoveAtStart 2007-09-10 18:43:29 +02:00
Mathieu Lacage
3c81d0423e it is possible to zeroAreaStart to be bigger than the data buffer size 2007-09-10 17:55:39 +02:00
Mathieu Lacage
3fcc420e08 CreateFullCopy: the data area at the end of the buffer starts at m_zeroAreaStart. AddAtStart: the assert should be used only when the optimization is enabled. 2007-09-10 17:43:33 +02:00
Mathieu Lacage
65c099c02a max zero area start can be bigger than m_end if data is removed from end of buffer 2007-09-10 16:57:25 +02:00
Mathieu Lacage
c197a4a62c add state checking and fix Buffer::CreateFullCopy 2007-09-10 16:55:26 +02:00
Mathieu Lacage
e96365a4bc rewrite the buffer code extensively 2007-09-10 16:45:52 +02:00
Mathieu Lacage
1e865deaaf add Buffer::m_zeroAreaStart 2007-09-10 08:54:11 +02:00
Mathieu Lacage
a0e8906575 make Buffer::m_end really represent the end of the data rather than its size 2007-09-09 21:16:05 +02:00
Mathieu Lacage
f13dc2777d Buffer::m_size -> Buffer::m_end 2007-09-09 10:38:22 +02:00
Mathieu Lacage
0f588a8d97 add testcase 2007-09-07 19:51:46 +02:00
Mathieu Lacage
6ce3443a34 add failing testcase 2007-09-07 19:50:40 +02:00
Mathieu Lacage
1e448915d1 get rid of GetIndex 2007-09-07 19:47:06 +02:00
Mathieu Lacage
a9124f0a4a re-implement all Iterator::Write and Iterator::Read methods 2007-09-07 19:39:47 +02:00
Mathieu Lacage
bd1adba17e rewrite Iterator::WriteU8 2007-09-07 19:22:20 +02:00
Mathieu Lacage
39cb30a4be simplify Iterator::GetDistanceFrom method 2007-09-07 18:49:47 +02:00
Mathieu Lacage
6ced31f8b5 add a m_dataStart member in Buffer::Iterator 2007-09-07 18:45:00 +02:00
Mathieu Lacage
74ceb06336 small typo 2007-09-07 17:39:18 +02:00
Mathieu Lacage
ee35d8ada2 move inline code from header to .cc file prior to rework of Buffer 2007-09-07 08:34:46 +02:00
Mathieu Lacage
6e956f6cc3 add Buffer::CreateFullCopy and make TransformInto private 2007-08-04 09:31:52 +02:00
Mathieu Lacage
56d6ee9a1c fix bug 57 2007-07-23 13:58:53 +02:00
Gustavo J. A. M. Carneiro
b239441ff9 Buffer::Iterator::Write (buffer, size) should have a uint32_t parameter, not
uint16_t, else integer overflow may occur.  Fixes bug #54.
2007-07-19 12:48:22 +01:00
Mathieu Lacage
2964b90925 add testcase, fix bug 2007-06-21 11:07:04 +02:00
Mathieu Lacage
438e58cc1c add test and fix buggy assert 2007-06-01 12:42:29 +02:00
Mathieu Lacage
75c78de2b3 a new testcase with the corresponding bug fix. 2007-04-19 22:29:09 +02:00
Mathieu Lacage
d9318db068 convert use of <cassert> to "ns3/assert.h" 2007-02-16 09:56:21 +01:00
Mathieu Lacage
0fade9d7af fix coding style 2006-11-01 13:11:30 +01:00