Commit Graph

318 Commits

Author SHA1 Message Date
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
Mathieu Lacage
0147e59899 move include to implementation file 2007-09-06 18:19:22 +02:00
Mathieu Lacage
e20b40ee61 backout 9856d1175cbb:642d6798feaa:27dd3e15308a 2007-08-29 09:35:53 +02:00
George Riley
979da57982 Reconcile changes with Mathieu's latest 2007-08-28 09:55:21 -04:00
Raj Bhattacharjea
9bf17256fb Fixed inet-socket-address's opening IFDEF to be consistent with the filename 2007-08-24 14:00:52 -04:00
Raj Bhattacharjea
027cd21aa1 Added GPL and emacs modeline to inet-socket-address.h/cc 2007-08-24 13:21:33 -04:00
George Riley
391b3eef11 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
Mathieu Lacage
2ee1d5fca6 the protocol number field is a 16 bit integer, not a 32 bit integer 2007-08-24 10:33:58 +02:00
Craig Dowell
9d2617d9a0 Fix bug 68. Implement IsMulticast 2007-08-14 12:00:03 -07:00
Tom Henderson
ad3b6a04cc Doxygen cleanup 2007-08-13 20:53:29 -07:00
Craig Dowell
f53e19589d merge ns-3-csma with tip 2007-08-10 10:52:30 -07:00
Craig Dowell
c298892833 print length/type in hex 2007-08-10 10:44:02 -07:00
Mathieu Lacage
971997fbc1 use implicit conversion rather than private explicit conversion: fixes build 2007-08-10 19:18:19 +02:00
Mathieu Lacage
8b87d39c72 merge with trunk 2007-08-10 16:28:09 +02:00
Mathieu Lacage
b392b2a867 merge with trunk 2007-08-09 09:36:59 +02:00
Gustavo J. A. M. Carneiro
0eca73234a 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
32cd28829a fix dox warning 2007-08-08 12:34:18 +02:00
Mathieu Lacage
1e22e6d203 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
496f1d91d0 TraceContextElement::Register -> TraceContextElement::AllocateUid 2007-08-08 10:06:58 +02:00
Mathieu Lacage
5a38178db2 Trailer::Register -> Trailer::AllocateUid and Header::Register -> Header::AllocateUid 2007-08-08 10:01:19 +02:00
Mathieu Lacage
5c419ea37f remove Chunk base class 2007-08-08 09:12:55 +02:00
Mathieu Lacage
287416006a tweak ascii trace output 2007-08-06 19:43:09 +02:00
Mathieu Lacage
1a1dda1796 build with the new TraceContextElement API 2007-08-06 19:40:18 +02:00
Mathieu Lacage
3fd0b3ba42 merge with trunk 2007-08-06 17:21:57 +02:00
Mathieu Lacage
77712a63ad work in progress towards a working trace context 2007-08-06 17:19:13 +02:00
Mathieu Lacage
caf9c39afa make the previous merge actually work 2007-08-06 15:45:29 +02:00
Mathieu Lacage
0db07e14d6 merge implicit conversion tree 2007-08-06 15:32:27 +02:00
Mathieu Lacage
06c632fa50 merge from trunk 2007-08-06 12:35:06 +02:00
Mathieu Lacage
913319d9e3 merge packet socket with trunk 2007-08-06 09:59:29 +02:00
Mathieu Lacage
a55fa0d833 merge with trunk 2007-08-04 17:17:23 +02:00
Mathieu Lacage
0cb76eb275 macros to ensure proper initialization 2007-08-04 16:49:06 +02:00
Mathieu Lacage
93cea27ad8 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
Tom Henderson
fce7c3cc39 merge with ns-3-dev 2007-08-03 08:29:24 -07:00
Mathieu Lacage
4050d495ed fix valgrind warnings 2007-08-03 17:26:10 +02:00
Tom Henderson
3378f0de19 remove Channel::GetType 2007-08-03 08:23:23 -07:00
Mathieu Lacage
e672f9711f add GetUid methods to all headers and trailers 2007-08-03 09:23:41 +02:00
Mathieu Lacage
740ad8c1b2 remove redundant printing output 2007-08-03 09:15:25 +02:00
Mathieu Lacage
62310f6b21 fix coding style 2007-08-03 09:15:11 +02:00
Mathieu Lacage
9c2de843b5 move constants to private section 2007-08-03 09:09:19 +02:00
Mathieu Lacage
2eef3ac5fb small bug in InetSocketAddress deserialization 2007-08-01 20:17:28 +02:00
Mathieu Lacage
b954d65b8f remove uint8_t * from the send path of the socket API 2007-08-01 19:19:42 +02:00
Mathieu Lacage
1b62aa5a79 consitify the API a bit 2007-08-01 19:19:28 +02:00
Mathieu Lacage
48d1219f5c remove uint8_t * buffers from socket receive API 2007-08-01 19:09:11 +02:00
Mathieu Lacage
210e88b511 split callback registration from socket operations in socket.h API. 2007-08-01 18:48:24 +02:00
Mathieu Lacage
73322272fe fix trace output 2007-08-01 17:22:10 +02:00
Mathieu Lacage
b632880fde update address size 2007-08-01 13:54:09 +02:00
Mathieu Lacage
707b722c36 fix tracing 2007-08-01 13:53:48 +02:00