Commit Graph

1351 Commits

Author SHA1 Message Date
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
485a114a2d merge with trunk 2007-09-11 10:36:25 +02:00
Mathieu Lacage
4ae082bfc7 avoid allocating strings all the time. 2007-09-11 10:35:56 +02:00
Mathieu Lacage
cbd6277844 merge with trunk 2007-09-11 10:01:23 +02:00
Mathieu Lacage
96f04b41cb re-enable packet benchmarking 2007-09-11 08:27:27 +02:00
Mathieu Lacage
ba9338c522 ignore waf crap 2007-09-11 08:27:15 +02:00
Mathieu Lacage
313a167729 we handle gustavo's testcase now. Fix for bug 72 2007-09-10 18:52:48 +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
60fbe881c1 improve debugging output 2007-09-10 16:55:03 +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
df98467eaf Added tag buffer-working-before-breaking for changeset 267e2ebc28e4 2007-09-10 08:53:55 +02:00
Tom Henderson
7265a5f3c0 adapt some example scripts to use the new PacketSink 2007-09-09 23:24:31 -07:00
Tom Henderson
0ac1983b66 Add PacketSink application 2007-09-09 23:21:47 -07: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
0147e59899 move include to implementation file 2007-09-06 18:19:22 +02:00
Mathieu Lacage
fd8b0ba57d an euclidian distance is always positive 2007-09-06 11:18:35 +02:00
Mathieu Lacage
b43e2f9190 add failing test and fix for assignment to self 2007-09-05 16:28:55 +02:00
Tom Henderson
929e23b74e Fix for bug69: set local address correctly upon UDP connect; apply correct UDP connect() semantics (that sendto cannot override addresses on a connected socket); if destination is IPv4 limited broadcast address, convert to subnet-directed broadcast and send out on each interface; provide example csma-broadcast.cc script 2007-09-04 21:26:54 -07:00
Tom Henderson
5e7e0d7b2a Fold the two patches for bu6 69 together, building on the bug 65 patch 2007-09-03 23:32:23 -07:00
Tom Henderson
e377cbad38 Provide two new Ipv4 convenience functions: GetIfIndexByIpv4Address() and GetIpv4RouteToDestination (), and align global routing code to use the first function 2007-09-03 14:55:51 -07:00
Gustavo J. A. M. Carneiro
0824ceacd9 WAF: as suggested by George, add a bunch of helper waf scripts that call the toplevel waf script, so that it is possible to compile with ./waf from emacs regardless of which buffer you are visiting (the other alternative is to install waf system wide and run 'waf'. 2007-09-08 19:24:39 +01:00
Gustavo J. A. M. Carneiro
a2fb5d5cbe merge 2007-08-29 12:32:18 +01:00
Gustavo J. A. M. Carneiro
0261a0b795 New WAF, avoids the bright yellow color (hard to read on light background terminals) problem. 2007-08-29 12:31:17 +01:00
Mathieu Lacage
3b2ffd1a07 merge with trunk 2007-08-29 09:36:28 +02:00
Mathieu Lacage
e20b40ee61 backout 9856d1175cbb:642d6798feaa:27dd3e15308a 2007-08-29 09:35:53 +02:00
Gustavo J. A. M. Carneiro
a882435757 Add some tweaks to enable building under emacs. 2007-08-28 16:54:07 +01:00
Gustavo J. A. M. Carneiro
afbb95d987 Build the ns3 library in the build/<variant> root, not in build/<variant>/src. 2007-08-28 16:53:01 +01:00
Raj Bhattacharjea
74f9163b24 Remove references to really-simple-point-to-point, fix build 2007-08-28 10:20:13 -04:00
George Riley
979da57982 Reconcile changes with Mathieu's latest 2007-08-28 09:55:21 -04:00
Mathieu Lacage
722fb64245 use more NodeList::Iterator types 2007-08-28 14:31:53 +02:00
Mathieu Lacage
9f6f56f3ff use the NodeList::Iterator type 2007-08-28 14:09:52 +02:00
Mathieu Lacage
cc6d4c0c06 constify 2007-08-28 13:03:08 +02:00