Commit Graph
137 Commits
Author SHA1 Message Date
Tom Henderson 97df9062ef 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 e8f289a705 Fold the two patches for bu6 69 together, building on the bug 65 patch 2007-09-03 23:32:23 -07:00
Gustavo J. A. M. Carneiro 8f13030ade 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
Mathieu Lacage c85f578bde backout 9856d1175cbb:642d6798feaa:27dd3e15308a 2007-08-29 09:35:53 +02:00
George Riley 6b0876514e Reconcile changes with Mathieu's latest 2007-08-28 09:55:21 -04:00
Mathieu Lacage 98a3dc2490 constify 2007-08-28 13:03:08 +02:00
George Riley feb08acc56 Change the protocol stack processing to pass packets by non-const
reference, rather than const reference and value as was previously done.
Also change  the queue semantics to return the packet on a deque, rather
than requiring a packet as a parameter.  The problem with the original
approach was that packet UID's were getting skipped.  The fix handles
the uid properly, and we get sequential packet uid's on the trace file.
2007-08-24 11:44:11 -04:00
Tom Henderson 6f73afb5e3 restore ns-2 .tr format 2007-08-13 22:53:20 -07:00
Mathieu Lacage 680586f0e2 use implicit conversion rather than private explicit conversion: fixes build 2007-08-10 19:18:19 +02:00
Mathieu Lacage 6e340cbb56 merge with trunk 2007-08-10 16:28:09 +02:00
Mathieu Lacage ceb786f389 merge with trunk 2007-08-09 09:36:59 +02:00
Gustavo J. A. M. Carneiro 9aa65d1e2a WAF: add new bld.create_ns3_module() and bld.create_ns3_program() methods to make declaration of modules and programs simpler, and allowing us to change how ns-3 is built in a centralized way, without needing to change every module wscript file. 2007-08-08 15:10:36 +01:00
Mathieu Lacage e8eae0a765 make sure udp-header.h is exported for main-packet-printer 2007-08-08 11:20:35 +02:00
Mathieu Lacage a08734f4f3 rework the NS_XX_ENSURE_REGISTERED macros and make sure we typecheck the input to TraceContext::Add and TraceContext::Get methods 2007-08-08 10:18:55 +02:00
Mathieu Lacage fe811f3a2e TraceContextElement::Register -> TraceContextElement::AllocateUid 2007-08-08 10:06:58 +02:00
Mathieu Lacage 252af8d9bf Trailer::Register -> Trailer::AllocateUid and Header::Register -> Header::AllocateUid 2007-08-08 10:01:19 +02:00
Mathieu Lacage 5d6c37a355 remove Chunk base class
--HG--
rename : src/common/chunk.cc => src/common/chunk-registry.cc
rename : src/common/chunk.h => src/common/chunk-registry.h
2007-08-08 09:12:55 +02:00
Mathieu Lacage bc55e550a3 build with the new TraceContextElement API 2007-08-06 19:40:18 +02:00
Mathieu Lacage 31fe48b221 merge implicit conversion tree
--HG--
rename : examples/csma-cd-one-subnet.cc => examples/csma-cd-packet-socket.cc
rename : src/node/eui48-address.cc => src/node/eui64-address.cc
rename : src/node/eui48-address.h => src/node/eui64-address.h
2007-08-06 15:32:27 +02:00
Mathieu Lacage 4832ec6d54 merge from trunk 2007-08-06 12:35:06 +02:00
Mathieu Lacage 082bd1f001 merge packet socket with trunk 2007-08-06 09:59:29 +02:00
Mathieu Lacage 03d6425976 merge with trunk 2007-08-04 17:17:23 +02:00
Mathieu Lacage b353cfa1c2 macros to ensure proper initialization 2007-08-04 16:49:06 +02:00
Mathieu Lacage 4d013a8d3d force users to register their header/trailer uid strings by hand rather than do lazy uid allocation. 2007-08-04 16:37:16 +02:00
Mathieu Lacage 27ec6591c5 forgot to use std::string instead of const char * 2007-08-04 13:21:55 +02:00
Tom Henderson 69d03040da interim 2007-08-03 09:29:57 -07:00
Tom Henderson 98d396f438 merge with ns-3-dev 2007-08-03 08:29:24 -07:00
Mathieu Lacage d00d3a3e56 fix valgrind warnings 2007-08-03 17:26:10 +02:00
Mathieu Lacage aab20db3be add GetUid methods to all headers and trailers 2007-08-03 09:23:41 +02:00
Mathieu Lacage ea46e29e24 remove uint8_t * from the send path of the socket API 2007-08-01 19:19:42 +02:00
Mathieu Lacage 84f5d7e306 split callback registration from socket operations in socket.h API. 2007-08-01 18:48:24 +02:00
Mathieu Lacage 65ec58ce0a fix tracing 2007-08-01 13:53:48 +02:00
Mathieu Lacage dde33bf28c replace Node::DoCreateTraceResolver with Node::DoFillTraceResolver 2007-08-01 12:33:44 +02:00
Mathieu Lacage 8e2a107fde rework the NetDevice <-> Node interface 2007-08-01 08:58:18 +02:00
Mathieu Lacage 170c69e549 I wonder what the point of that code was: why should you test for zero _after_ using the pointer ? It needs to be tested _before_. 2007-07-31 10:47:29 +02:00
Mathieu Lacage 8de745889a forgot to set the interface id 2007-07-31 09:21:40 +02:00
Mathieu Lacage 5a8af4f9de remove now-unused ArpPrivate class 2007-07-31 09:17:05 +02:00
Mathieu Lacage c8e079f917 implement the Node::ProtocolHandler support. 2007-07-31 09:09:31 +02:00
Mathieu Lacage 051f82e163 remove implicit conversion from Address to Eui48Address, to Ipv4Address and to InetSocketAddress 2007-07-30 14:57:49 +02:00
Mathieu Lacage 90d2314ab2 InetSocketAddress: replace explicit conversion to implicit conversion 2007-07-30 14:07:39 +02:00
Mathieu Lacage 140602fb4a add InetSocketAddress::IsMatchingType and use it 2007-07-30 13:55:28 +02:00
Mathieu Lacage 072947fae1 InetAddress -> InetSocketAddress
--HG--
rename : src/node/inet-address.cc => src/node/inet-socket-address.cc
rename : src/node/inet-address.h => src/node/inet-socket-address.h
2007-07-30 13:29:36 +02:00
Mathieu Lacage 36efa41341 merge 2007-07-30 10:35:03 +02:00
Gustavo J. A. M. Carneiro 4edba4b1b9 WAF: remove the obj.includes = '.' part from modules, since it causes build failure in OS X, and waf was just fixed to enable header files dependency tracking by default without needing to change obj.includes 2007-07-28 14:14:16 +01:00
Craig Dowell 2b2bb45227 remove routing environment, move router interface creation to global-route-manager 2007-07-27 20:34:25 -07:00
Craig Dowell ed70846493 rename party 2007-07-27 14:04:54 -07:00
Mathieu Lacage 6770e9008d Ipv4TransportAddress -> InetAddress 2007-07-27 08:44:26 +02:00
Mathieu Lacage 75fdbc8ded ipv4-transport-address -> inet-address
--HG--
rename : src/node/ipv4-transport-address.cc => src/node/inet-address.cc
rename : src/node/ipv4-transport-address.h => src/node/inet-address.h
2007-07-27 08:32:34 +02:00
Mathieu Lacage 866c75dc00 convert Socket to use Address class 2007-07-27 08:23:20 +02:00
Mathieu Lacage dbae783c9b replace MacAddress by Address 2007-07-26 17:36:53 +02:00