Commit Graph

335 Commits

Author SHA1 Message Date
Tom Henderson
f23dc6a347 bindings: rescan all module bindings 2016-07-22 17:45:51 -07:00
Stefano Avallone
dd432b8131 network: Get rid of the NetDeviceQueue::HasWakeCallbackSet method 2016-07-22 18:21:39 +02:00
Tom Henderson
7f88b04c33 bindings: rescan all module bindings 2016-07-20 16:33:57 -07:00
Tommaso Pecorella
971ace1bfd Rescan Python bindings 2016-07-16 23:29:23 +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
8ae37fc7ff network: Packet sockets add a priority tag if a priority is set 2016-07-14 15:59:56 +02:00
Stefano Avallone
1ec310b39e traffic-control: PfifoFastQueueDisc uses priority to map packets to bands 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
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
Tom Henderson
b1c3fd67bc rescan all bindings 2016-07-12 08:17:20 -07:00
Tommaso Pecorella
97f68a678d network: (fixes #2444) PcapHelper DataLinkType enum should have a name 2016-07-12 01:19:11 +02:00
Tom Henderson
178c70829f bindings: rescan all module bindings 2016-06-02 09:24:07 -07: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
Tommaso Pecorella
fabd470c29 network: Rescan bindings 2016-05-19 00:57:32 +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
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
Tom Henderson
e8678631f5 network: Rescan bindings 2016-05-11 07:47:06 -07: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
Stefano Avallone
5aef189abb network: Update queue documentation 2016-03-15 10:21:49 -07:00
Tom Henderson
822ddcb157 bindings: rescan bindings 2016-03-08 22:01:30 -08: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
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 Henderson
e7e64c971e rescan bindings 2016-02-26 08:20:55 -08:00
Chip Webb
336585b141 network: (fixes #2283) support nanosecond pcap resolution 2016-02-25 17:38:58 -08:00
Tom Henderson
167662ad6c rescan bindings 2016-02-25 14:22:34 -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
Tommaso Pecorella
7c076755f3 network: rescan Python bindings 2016-02-03 22:48:23 +01:00
Tommaso Pecorella
b68cfde5b4 network: (fixes #2266) NixRouting info are not copied during a packet fragmentation. 2016-02-03 21:37:41 +01:00
Matt
75f98f9b27 network: (fixes #2286) Support for SLL header (de)serialization 2016-02-03 21:32:43 +01:00
Tom Henderson
aa1307e844 [Doxygen] - Fix header class bad copy-paste 2016-01-31 20:02:40 +01:00
Tom Henderson
688f6fc721 update network bindings for changeset c1b8888412a4 2016-01-06 07:34:48 -08:00
Tommaso Pecorella
cf53134d81 Fix typo in pcap data link type enum (SSL != SLL) 2016-01-05 18:17:03 +01:00
Tom Henderson
a361bbe345 update some stale log components 2015-12-23 09:37:56 -08: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
682a789e7b Rescan Internet and Network Python Bindings 2015-12-05 17:36:45 +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
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