Commit Graph

150 Commits

Author SHA1 Message Date
Tom Henderson
b55086476c network: Added API to be able to tag only some bytes 2019-04-25 14:47:01 +02:00
Stefano Avallone
a47ebd9ea5 network: (fixes #2948) Allow full range of socket priority values 2018-08-15 15:57:48 -07:00
Sébastien Deronne
16a2d19fee network: (fixes #2948) Allow priority settings up to value 7 2018-08-07 12:45:56 +02:00
Alexander Krotov
7a4d96b180 network: do not CreateFullCopy of the source buffer in Buffer::AddAtEnd 2018-08-03 13:41:11 +03:00
Alexander Krotov
776a0bd3ad network: optimize TagBuffer::Read 2018-08-03 13:33:09 +03:00
Alexander Krotov
00bb6fe7f6 Spellcheck 2018-06-27 10:50:27 +03:00
Budiarto Herman
372b008e5d applications: Add 3GPP HTTP model 2018-06-08 10:55:56 -07:00
Sébastien Deronne
82173d9127 network: Change GetNDevices returned type in channel class and all subclasses to properly fix Visual Studio warnings 2018-06-01 00:07:24 +02:00
Fernando J. Cintrón
e248097d85 applications: Add trace sources to traffic generators 2018-05-29 20:17:42 -07:00
Sébastien Deronne
b062d4a43b Remove double header inclusions 2018-03-08 21:30:31 +01:00
Tom Henderson
7ec5a52ca5 network: Update documentation for Header::Deserialize () 2017-10-27 18:30:25 -07:00
Tom Henderson
fe84f98401 enable deserialization of variable-sized headers and trailers 2017-05-30 07:25:24 -07:00
Tommaso Pecorella
866b40b202 internet: (fixes #2762) BindToNetDevice behaviour is not coherent with Linux 2017-07-12 19:54:20 +02:00
Peter D. Barnes, Jr.
c4e725e55e bug 2736: revert from r11086 2017-06-01 16:27:30 -07:00
Tommaso Pecorella
4bcec242c5 network: doxygen updates 2017-05-28 19:46:38 +02:00
Tommaso Pecorella
5e19bd4b23 network: doxygen updates (partial) 2017-05-22 01:22:58 +02: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
5de3f7525c network: fix static code analysys warnings (thanks to Natale Patriciello) 2017-02-16 22:57:45 +01:00
Alexander Krotov
918dbb5003 network: use numeric_limits for OFFSET_MAX instead of hardcoded constant 2016-11-28 15:41:37 +03:00
Peter D. Barnes, Jr.
88b9ea15bb network: (fixes #2221) Remove size constraint of Tag objects 2016-11-27 07:49:26 -08:00
Piyush Aggarwal
86c24f29bd doc: fix sphinx and doxygen build errors 2016-09-29 00:04:27 -04:00
Tommaso Pecorella
787430613e network: (workaround for #2505) Printing a packet can raise an assert 2016-09-28 02:13:32 +02:00
Tom Henderson
f46c7cb9ce fix typo 2016-09-16 20:57:12 -07:00
Alexander Krotov
4b466d7cd0 Do not return destroyed Buffer iterator from ItemIterator::Next 2015-08-31 17:10:52 +03:00
Tom Henderson
33e9f590d5 network: (fixes #2069) Avoid integer overflow in ByteTagList
Fix is due to xnuvtv@imgof.com
2016-09-01 18:07:05 -07:00
Pasquale Imputato
a048b009b2 network: Introduce Byte Queue Limits (BQL) 2016-08-08 00:21:03 +02:00
Stefano Avallone
dd432b8131 network: Get rid of the NetDeviceQueue::HasWakeCallbackSet method 2016-07-22 18:21:39 +02:00
Tommaso Pecorella
686a9a7852 Minor doxygen fixes 2016-07-14 22:19:36 +02:00
Stefano Avallone
5459ab04b7 various: Rename NetDeviceQueueInterface::GetTxQueuesN to match ns-3 style 2016-07-14 15:59:56 +02:00
Stefano Avallone
47128c4269 traffic-control: the select queue callback is stored by the TC layer 2016-07-14 15:59:55 +02:00
Stefano Avallone
d693db5c11 network: Add a GetUint8Value method to the QueueItem class 2016-07-14 15:59:55 +02:00
Stefano Avallone
a000561495 network: Socket::IsManualIpTos can be replaced by Socket::GetIpTos 2016-07-14 15:59:55 +02:00
Stefano Avallone
83ed5e7bb6 network: Support socket priorities 2016-07-14 15:59:55 +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
f3c4596867 traffic-control: (fixes #2284) Never requeue a packet sent to a netdevice
This change allows us to more closely follow the Linux behavior. A packet
is only requeued when the device queue is stopped before we attempt to send
the packet to the device. Thus, a packet sent to a netdevice is never requeued.
It turns out that packets can only be requeued if the underlying device is
tc-aware and multi-queue. The PointToPointNetDevice code is updated accordingly.
2016-05-19 00:14:07 +02:00
Tommaso Pecorella
5d288cb14c network: doxygen fixes 2016-04-07 01:50:23 +02:00
Stefano Avallone
defeaea224 network: Add the NetDeviceQueue and NetDeviceQueueInterface classes
This patch adds a NetDeviceQueue class to store information about a single
transmission queue of a network device. This class is meant to store the
state of a transmission queue (i.e., whether the queue is stopped or not)
and some data used by techniques such as Byte Queue Limits. Also, multi-queue
aware queue discs can aggregate a child queue disc to an object of this class.
These features (excluding BQL) are added in subsequent commits.
The NetDevice class maintains a vector of NetDeviceQueue pointers, one for
each transmission queue. A NetDevice constructor is added which creates a
single transmission queue by default for every device. The number of transmission
queues can be modified (by child classes) by calling NetDevice::SetTxQueuesN.
Two public methods, GetTxQueue and GetTxQueuesN, are also added to the NetDevice class
to return the i-th NetDeviceQueue and the number of transmission queues, respectively.
2016-03-08 10:44:08 -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
Tom Goff
46fa78e7fa internet: (fixes #1835) Implement Socket::GetPeerName() 2016-02-24 13:14:51 -08:00
Tommaso Pecorella
b68cfde5b4 network: (fixes #2266) NixRouting info are not copied during a packet fragmentation. 2016-02-03 21:37:41 +01:00
Tom Henderson
aa1307e844 [Doxygen] - Fix header class bad copy-paste 2016-01-31 20:02:40 +01:00
Tommaso Pecorella
4caca50be2 Bug 2234 - Ipv6L3Protocol should trash multicast packets not interesting for the node 2015-12-03 00:35:35 +01:00
Tommaso Pecorella
7907f2154e Clarify PacketTagList::Add assert message 2015-11-05 12:42:24 +01:00
Matthieu Coudron
8171d94e7c Add Node::GetLocalTime() placeholder, alias to Simulator::Now() 2015-09-22 23:52:56 +02:00
Sébastien Deronne
d8b035323a Fix broken test 2015-09-04 22:18:04 +02:00
Alexander Krotov
20f5c5e062 bug 2173: WifiInformationElement::DeserializeIfPresent attempts to read beyond the end of buffer 2015-09-04 01:10:29 +02:00
Peter D. Barnes, Jr.
61f2fbd415 [doxygen] Revise TracedCallback function signatures for const. 2015-08-18 16:46:10 -07:00
Alexander Krotov
292979e742 Removed GetCurrentStartOffset and GetCurrentEndOffset 2015-07-26 19:44:31 +03:00
Alexander Krotov
7fb26bfe59 Make ByteTagList offsets relative to packet start 2015-07-26 19:44:32 +03:00