Commit Graph

144 Commits

Author SHA1 Message Date
Stefano Avallone
fb12ef3a8b network: Add support for flow control and BQL to SimpleNetDevice 2017-03-08 18:01:51 +01:00
Stefano Avallone
40abc6507a network: Add NetDeviceQueue methods to implement flow control 2017-03-08 18:01:43 +01:00
Stefano Avallone
6fef34be47 network: Convert Queue into a template class 2017-03-08 18:01:29 +01:00
Tommaso Pecorella
4e9537008a Tests: reorganize ErrorChannel and ErrorBinaryModel 2017-01-29 03:15:41 +01:00
Toshio Ito
83cad157df network: (fixes #2596) EthernetTrailer::GetFcs() should be const 2017-01-25 17:30:17 -08:00
Alexander Krotov
f4f030604a network: remove duplicate include in simple-net-device.h 2017-01-01 00:45:16 +03:00
Peter D. Barnes, Jr.
88b9ea15bb network: (fixes #2221) Remove size constraint of Tag objects 2016-11-27 07:49:26 -08:00
Pasquale Imputato
7ab6c710c0 network: Set a proper default value for BQL HoldTime attribute 2016-09-24 15:36:10 +02:00
Peter D. Barnes, Jr.
18e8001aaa [core] Fix compilation errors from new NS_DEPRECATED function macro in r 12293 [57597d3fb31e]
Remove function macro and return to simple tag.  GCC can have the
attribute in front of the function declaration, matching Windows.
2016-09-03 18:13:21 -04:00
Peter D. Barnes, Jr.
71902a017a Use new NS_DEPRECATED function macro 2016-09-02 22:06:27 -04:00
Tom Henderson
3622356bab Doxygen: fix various glithces 2016-08-20 13:57:42 +02:00
Pasquale Imputato
a048b009b2 network: Introduce Byte Queue Limits (BQL) 2016-08-08 00:21:03 +02:00
Stefano Avallone
8ae37fc7ff network: Packet sockets add a priority tag if a priority is set 2016-07-14 15:59:56 +02:00
Stefano Avallone
c8300ef811 internet: Add a tos field to InetSockAddress 2016-07-14 15:59:55 +02:00
Tommaso Pecorella
5528b342cb internet and other modules: doxygen and manual improvements 2016-07-14 10:56:33 +02:00
Tommaso Pecorella
afa5de4a78 internet: (fixes #231) Remove SocketAddressTag
SocketAddressTag was a long-standing API glitch. It was used to replicate the RecvFrom effect (i.e., to know the source address of packet) without calling RecvFrom.
This option is more harmful than useful, because in case of tunnels the new tag needs to replace the old one. Moreover, there is no real need to create a new API when there is a perfectly working one (i.e., RecvFrom).
2016-06-02 01:16:39 +02:00
Stefano Avallone
8754a59cb6 network: Add a Remove method to the Queue base class 2016-05-19 00:14:29 +02:00
Stefano Avallone
500ef9f4a6 traffic-control: (fixes #2389) Internal queues need to notify their queue disc of packet drops 2016-05-11 12:10:02 +02:00
Tommaso Pecorella
5d288cb14c network: doxygen fixes 2016-04-07 01:50:23 +02:00
Pasquale Imputato
c6e5ecc191 network: The Queue base class holds mode, maxPackets and maxBytes
...so that all the subclasses have such attributes. This
allows queue discs to have attributes specifying the mode and
size of their queue(s) and to create queues using their
own attributes.

This commit is heavily inspired by Natale's queue rework patch:
https://codereview.appspot.com/270540044/
2016-03-08 10:45:36 -08:00
Pasquale Imputato
e02e86faa7 network: Move RED model, test and examples to the traffic-control module
This move prepares RED to become a queue disc. Building of RED
model, tests and examples is disabled until the conversion is done.
2016-03-08 10:45:27 -08:00
Stefano Avallone
df2fa95970 network: Make Queue store QueueItem objects
A QueueItem base class is introduced to represent the items stored
in a Queue. The base class only contains a Ptr<Packet>. Derived classes
can store additional information. DropTailQueue, RedQueue and CodelQueue,
along with their examples and testsuits, have been adapted. Objects using
such queues have been adapted too.
2016-03-08 10:44:03 -08:00
Chip Webb
336585b141 network: (fixes #2283) support nanosecond pcap resolution 2016-02-25 17:38:58 -08:00
Tom Goff
46fa78e7fa internet: (fixes #1835) Implement Socket::GetPeerName() 2016-02-24 13:14:51 -08:00
Lynne Salameh
b830a39aa6 network: (fixes #2293) RED queue estimator optimization 2016-02-11 21:39:49 +01:00
Tommaso Pecorella
dfe7129d43 network: Add IsLocalhost and IsAny to Ipv4Address 2016-02-07 22:24:16 +01:00
Tom Henderson
b9b03ec6bd network: fix to commit 1de7febc2653 unimplemented functions 2016-02-04 14:22:51 -08:00
Matt
75f98f9b27 network: (fixes #2286) Support for SLL header (de)serialization 2016-02-03 21:32:43 +01:00
Tom Henderson
491afdbe23 do not use output address parameter (possibly uninitialized) before assignment 2015-12-15 23:30:52 -08:00
Tom Henderson
c59aea3b31 avoid conversion operation on output Address parameter; a generic Address object may have been passed in 2015-12-14 17:16:43 -08:00
Tommaso Pecorella
8523d63420 IPv6 IsAll[Nodes,Routers]Multicast scope fixes 2015-11-21 18:08:59 +01:00
Tommaso Pecorella
509cd1b7df Deprecate Ipv6Address::IsAllHostsMulticast() 2015-11-21 17:59:27 +01:00
Tommaso Pecorella
c5f702a680 Bug 2176 - Building Ipv4 address from char* doesn't look reliable (cont.) 2015-11-07 23:45:53 +01:00
Sébastien Deronne
7cc8b40f88 Bug 2176 - Building IPv4 address from char* doesn't look reliable 2015-11-07 23:37:44 +01:00
Sébastien Deronne
04dfda290c add support for IEEE 802.11ac 2015-09-03 22:16:49 +02:00
Peter D. Barnes, Jr.
b1976b6366 Merge 2015-08-18 16:59:27 -07:00
Peter D. Barnes, Jr.
61f2fbd415 [doxygen] Revise TracedCallback function signatures for const. 2015-08-18 16:46:10 -07:00
Peter D. Barnes, Jr.
be83597fd4 Flush pcap files in debug builds. 2015-08-18 15:19:32 -07:00
Peter D. Barnes, Jr.
baddf3f749 Refactor TracedValue callback function signatures.
Move from template class TracedValue to namespace TracedValueCallback.

Rename from [type]Callback to just [type]:
TracedValue<double>::DoubleCallback  -> TracedValueCallback::Double
2015-07-29 13:56:55 -07:00
Peter D. Barnes, Jr.
69dd251a0f [Doxygen] Better documentation for NS_DEPRECATED 2015-07-10 18:13:14 -07:00
Matthieu Coudron
2f63edb779 Add SinkWithHeader to PcapHelper 2015-07-22 01:13:06 +02:00
Sébastien Deronne
0d5fc14442 add support for HT MCS and A-MPDU in radiotap headers 2015-07-08 23:44:17 +02:00
Tommaso Pecorella
d74e9fdf30 Enh. 2130 - Allow SimpleChannel to simulate hidden terminals. 2015-06-11 19:07:25 +02:00
Tommaso Pecorella
cbe83c6f5a Bug 2138 - SimpleNetDevice could send overlapped packets. 2015-06-11 11:40:53 +02:00
Tom Henderson
8df0d04bbb add missing copyrights 2015-06-10 07:52:23 -07:00
Peter D. Barnes, Jr.
d67ced0392 Fix parents, group names, and missing constructors in GetTypeId definitions. 2015-06-09 12:59:59 -07:00
Peter D. Barnes, Jr.
a2e0ed145a Missing mode lines. 2015-06-08 16:37:40 -07:00
Tom Henderson
ab88e121ca fix attribute accessor for DropTailQueue Mode attribute (reported by Chip Webb) 2015-06-08 13:46:18 -07:00
Peter D. Barnes, Jr.
5545a7f224 Remove extraneous ' ' around :: 2015-02-04 13:40:57 -08:00
Peter D. Barnes, Jr.
9f88bd50f0 On mismatch PcapFile::Diff reports packet number. 2015-02-04 12:35:17 -08:00