Commit Graph

76 Commits

Author SHA1 Message Date
Tom Henderson
18011ba4eb improve send semantics, documentation 2008-05-15 23:06:58 -07:00
Tom Henderson
b00892cae7 swap SendTo parameters 2008-05-13 07:22:03 -07:00
Tom Henderson
6be343530f Add SocketDefaults to store socket option attributes 2008-05-12 23:02:23 -07:00
Tom Henderson
6ec88588f1 tweak UdpSocket buffer limit behavior 2008-05-11 21:55:00 -07:00
Tom Henderson
0f55fefaba API for SocketOptions class 2008-05-10 21:27:32 -07:00
Tom Henderson
08511f30c5 Add GetTxBuffer; add some socket options; make limited UDP receive buffer functional 2008-05-03 11:11:24 -07:00
Tom Henderson
daddd90d07 Implement GetRxAvailable () 2008-05-02 10:55:07 -07:00
Tom Henderson
f8a2add627 more cleanup 2008-05-02 09:21:01 -07:00
Tom Henderson
288d193daa Cut over UDP applications to use the new receive API 2008-04-25 14:29:28 -07:00
Tom Henderson
d7a038431f Plumb in socket receive pull model, in parallel to existing Receive framework 2008-04-24 08:18:01 -07:00
Mathieu Lacage
35170aed54 merge with HEAD 2008-04-17 15:54:35 -07:00
Mathieu Lacage
1649c1dc65 NS_LOG_FUNCTION -> NS_LOG_FUNCTION_NOARGS and NS_LOG_PARAMS -> NS_LOG_FUNCTION 2008-04-15 15:10:53 -07:00
Mathieu Lacage
53be11fe6f update testcase to deal with the return value of Socket::Send. Make sure udp packets are copied before going down the ip stack. 2008-04-15 10:49:09 -07:00
Liu Jian
61375f8ef5 Fix bug 168: Socket::SendTo does not return the number of bytes sent for udp sockets. 2008-04-15 09:41:58 -07:00
Mathieu Lacage
d1d683ee21 remove 'All rigts reserved' keyword per tom's suggestion 2008-03-31 14:56:41 -07:00
Mathieu Lacage
6935a997e6 do not use InternetNode 2008-03-31 14:34:38 -07:00
Gustavo J. A. M. Carneiro
91cf6bfccd Fix the udp socket unit test problem discovered by Mathieu. 2008-03-21 14:17:58 +00:00
Mathieu Lacage
53b3d2bb1f SimpleChannel/SimpleNetDevice. Use them where needed. 2008-03-20 15:27:48 -07:00
Mathieu Lacage
36995793fb merge with HEAD 2008-03-14 16:37:02 -07:00
Mathieu Lacage
fb452286e6 add Application::SetNode and NetDevice::SetNode, use them from Node::AddApplication and Node::AddDevice. kill useless "Node" attributes. 2008-03-13 11:10:38 -07:00
Mathieu Lacage
b5a8d46096 get rid of CreateObjectWith 2008-03-11 13:30:12 -07:00
Mathieu Lacage
fcc2066d01 ensure that device is reported in node. 2008-03-09 23:43:29 +01:00
Mathieu Lacage
e06e3096cb merge with HEAD 2008-02-27 22:19:39 +01:00
Mathieu Lacage
1d4187bd0f add missing NS_OBJECT_ENSURE_REGISTERED calls. 2008-02-27 20:48:43 +01:00
Mathieu Lacage
2eae2f926c make NetDevice fully virtual. 2008-02-25 19:33:46 +01:00
Gustavo J. A. M. Carneiro
feb47b3bb1 Fix broadcast packet reception for locally bound sockets (bug #136) 2008-02-13 17:37:43 +00:00
Gustavo J. A. M. Carneiro
fd238f3e40 Backed out changeset 055ff23aa034 (Tom does not like it turns out OLSR does not need it) 2008-02-03 18:29:25 +00:00
Gustavo J. A. M. Carneiro
dd48772c9e Fix UDP source address, make it honor Bind(). 2008-02-01 19:29:56 +00:00
Gustavo J. A. M. Carneiro
53833582b7 Some more udp socket debug messages 2008-02-01 18:40:14 +00:00
Mathieu Lacage
5ade799440 QueryInterface -> GetObject 2008-01-31 22:11:03 +01:00
Mathieu Lacage
f3e77eea3d fix bug 122: get rid of duplicate argument to QueryInterface 2008-01-02 09:25:31 +01:00
Mathieu Lacage
6b0e717a19 add CreateObject<> to instanciate subclasses of the Object base class. Replaces Create<>. 2008-01-02 09:09:24 +01:00
Mathieu Lacage
c156f29c86 merge 2007-11-22 10:30:29 +01:00
Tom Henderson
2e68155c6d nicer logging of parameters (bug 79 patch from Gustavo) 2007-11-14 21:59:14 -08:00
Craig Dowell
60b6fb3d39 merge in packet.bundle 2007-10-29 12:48:01 -07:00
Mathieu Lacage
b42e00961b add missing call to Simulator::Destroy to cleanup after test 2007-10-10 15:32:04 +02:00
Mathieu Lacage
327e60b275 do not use Packet objects directly. Use Ptr<Packet> instead 2007-10-01 14:15:56 +02:00
Gustavo J. A. M. Carneiro
bd51ec2c87 Fix a regression in handling of broadcast packets and UDP sockets (closes bug #51). 2007-09-24 11:00:08 +01:00
Gustavo J. A. M. Carneiro
6a5e3bf70d Fix a small error in the unit test added recently (though it doesn't change the result) 2007-09-21 15:57:20 +01:00
Gustavo J. A. M. Carneiro
43bb81fd82 Add a couple of Udp socket unit tests: unicast (passing) and broadcast (failing, bug #51). 2007-09-21 15:54:00 +01:00
Tom Henderson
bba1cb3859 remove local address setting from UdpSocket::Connect() 2007-09-14 15:46:04 -07:00
Craig Dowell
90b02a4f6c checkpoint debug to log 2007-09-13 17:47:42 -07:00
Craig Dowell
f894771e7d socket update broke multicast 2007-09-11 18:29:26 -07:00
Craig Dowell
b39cf878a0 name changes missed 2007-09-10 15:57:33 -07:00
Craig Dowell
20bf1d71bb merge with trunk 2007-09-10 15:50:07 -07: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
Mathieu Lacage
e20b40ee61 backout 9856d1175cbb:642d6798feaa:27dd3e15308a 2007-08-29 09:35:53 +02:00
Craig Dowell
217edad33c add ipv4 methods, remove source multicast route requirement, fix udp socket source address prob 2007-08-24 16:57:54 -07: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