Commit Graph

55 Commits

Author SHA1 Message Date
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
Craig Dowell
aecc283cb5 set source IP address in udp-socket packets 2007-08-13 19:54:47 -07:00
Craig Dowell
87c9e523c7 set source address in socket 2007-08-13 16:21:39 -07:00
Craig Dowell
bc8ee80491 debug prints to make validation easier 2007-08-12 15:51:12 -07:00
Mathieu Lacage
8b87d39c72 merge with trunk 2007-08-10 16:28:09 +02:00
Mathieu Lacage
0db07e14d6 merge implicit conversion tree 2007-08-06 15:32:27 +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
210e88b511 split callback registration from socket operations in socket.h API. 2007-08-01 18:48:24 +02:00
Mathieu Lacage
e05f635db5 rework the NetDevice <-> Node interface 2007-08-01 08:58:18 +02:00
Mathieu Lacage
3d9d4ce7be 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
f1b9327123 remove implicit conversion from Address to Eui48Address, to Ipv4Address and to InetSocketAddress 2007-07-30 14:57:49 +02:00
Mathieu Lacage
2641f7fe88 InetSocketAddress: replace explicit conversion to implicit conversion 2007-07-30 14:07:39 +02:00
Mathieu Lacage
f2084098e2 add InetSocketAddress::IsMatchingType and use it 2007-07-30 13:55:28 +02:00
Mathieu Lacage
df7f115415 InetAddress -> InetSocketAddress 2007-07-30 13:29:36 +02:00
Mathieu Lacage
695119b3a5 Ipv4TransportAddress -> InetAddress 2007-07-27 08:44:26 +02:00
Mathieu Lacage
863de62880 ipv4-transport-address -> inet-address 2007-07-27 08:32:34 +02:00
Mathieu Lacage
c716994cab convert Socket to use Address class 2007-07-27 08:23:20 +02:00
Mathieu Lacage
92757ef5c3 Udp -> UdpL4Protocol 2007-06-04 17:22:52 +02:00
Mathieu Lacage
297692d88b udp.h -> udp-l4-protocol.h 2007-06-04 17:18:02 +02:00
Mathieu Lacage
359a2f98a8 rename i-node to node 2007-06-04 16:21:05 +02:00
Mathieu Lacage
1225b1623e rename INode to Node 2007-06-04 16:17:01 +02:00
Gustavo J. A. M. Carneiro
4c68aff164 Rename the SocketErrno enumeration values, from ESOMETHING to ERROR_SOMETHING, to avoid conflict with errno #define's; fixes compilation in mingw32. 2007-05-17 15:50:20 +01:00