Commit Graph

228 Commits

Author SHA1 Message Date
Gabriel Ferreira
db492fd84f network: Document PacketDataCalculators::DoDispose 2022-09-30 19:14:46 -03:00
Eduardo Almeida
820ad760b8 Fix clang-tidy readability-redundant-control-flow warnings 2022-09-29 20:06:57 +01:00
Eduardo Almeida
6e541f9c87 network: Isolate variables declaration in NS_PCAP_TEST_EXPECT_EQ()
Also convert tabs to spaces.
2022-09-28 19:05:12 +00:00
Tommaso Pecorella
c04254fc75 core: (fixes #705) prevents GCC 12 warnings 2022-08-18 17:53:33 +00:00
Peter D. Barnes, Jr
e461e54d5a Update Ptr validity checks to new Ptr<>::operator bool 2022-08-18 08:59:30 -07:00
Eduardo Almeida
180d71b7fa core (fixes #560): Unify TypeNameGet() in type-name.h and traced-value-callback-typedef-test-suite.cc 2022-08-06 21:50:25 +00:00
Tolik Zinovyev
81bae65d4a network: (merges !1010) Prevent time overflow in DataRate. 2022-07-11 21:40:54 -07:00
Gabriel Ferreira
60e1e4032c fixing dead links 2022-06-18 17:57:05 -03:00
Stefano Avallone
693517ce0f network: Queue container can hold elements of type different than queue items
It is required that the container defines a public method that transforms
an iterator pointing to a container element into the corresponding queue item.
2022-06-08 15:31:44 +02:00
Stefano Avallone
7c73228e78 network: Remove begin() and end() from Queue class
begin() and end() are not necessarily meaningful for all the containers.
A GetContainer() method returning a const reference to the container is
added, so that begin() and end() can be called through it.
2022-06-08 15:31:44 +02:00
Stefano Avallone
e5805a53fb network: Queue uses a generic type of container to store items internally 2022-06-08 15:31:44 +02:00
Stefano Avallone
70ea7891fc core: Get the full type name for template classes
Also add a macro for class templates with two template parameters.
2022-06-08 15:31:44 +02:00
Tommaso Pecorella
e0f20a49c0 network: (fixes #611) Reset MAC address allocation pool between runs 2022-06-07 22:04:12 +00:00
Tom Henderson
b6a5ee8151 Run utils/trim-trailing-whitespace.py on codebase 2022-06-05 21:01:11 -07:00
Eduardo Almeida
e9c98de72c Mark more deleted copy constructors and operator= with delete keyword (fixes #279) 2022-06-04 20:40:44 +01:00
Gabriel Arrobo
10d4dd2023 network: Remove unnecessary casts 2022-03-14 12:29:24 -07:00
Eduardo Almeida
a4d174f8bf core (fixes #565): Change TypeId constructor to accept std::string 2022-02-25 12:08:10 +00:00
Gabriel Ferreira
44d311cd3b network: Add function to check if a queue would overflow 2022-01-15 01:09:28 +00:00
Tommaso Pecorella
a8fc1b6235 doxygen: fix warnings in various modules 2022-01-05 00:22:31 -06:00
Peter Barnes
0e685cbdbb Use [[maybe_unused]] attribute directly, instead of NS_UNUSED 2021-12-21 10:32:43 +00:00
Eduardo Almeida
4ebdc0c6c6 Mark deleted ctors and operator= with delete keyword 2021-12-18 15:22:44 -08:00
Eduardo Almeida
a2efceffb2 Simplify trivial bool statements 2021-11-04 14:19:29 -07:00
Tom Henderson
d8ed317f2d network: Fix Doxygen error 2021-09-18 11:21:15 -07:00
Tom Henderson
73c106911d network: Remove deprecated methods 2021-07-31 07:48:30 -07:00
Stefano Avallone
2492614707 Variable length arrays are not supported by C++ 2021-07-22 07:29:42 +00:00
Tommaso Pecorella
4aae49c568 network: Bit serialization and deserialization 2021-06-16 08:10:52 +00:00
Tom Henderson
10ef08140a network: (fixes #404) Use Queue::Dispose() for SimpleNetDevice::DoDispose() 2021-05-22 13:43:29 -07:00
Tom Henderson
f34d4c5025 network: Add Queue::DoDispose method 2021-05-22 13:41:33 -07:00
Tommaso Pecorella
30bf1d3f76 network: add Ipv6Prefix to Ipv6Address conversion 2021-05-13 15:11:03 +00:00
Tommaso Pecorella
324644f86e doxygen: fix warnings in network, mobility 2021-05-02 21:42:55 +02:00
Ameya Deshpande
705ad52930 network: (fixes #372) Remove std::unary_function
Remove `std::unary_function` usage from `Ipv*AddressHash`.
Use std::hash instead of class Hash (in ns-3). This is because
speed is more important than cryptographic robustness.

Signed-off-by: Ameya Deshpande <ameyanrd@outlook.com>
2021-04-06 13:38:17 +00:00
Tommaso Pecorella
3f10d20f39 internet: (fixes #376) remove sgi::hash_map 2021-04-04 01:36:26 +02:00
Chappidi Yoga Satwik
f5c7f86e2e network: (merges !522) DataRate operators for more types
* Add, subtract, multiply an integer to DataRate object
* Add, subtract between DataRate objects themselves
* Multiplication between double value and DataRate
* Documentation and test improvements
2021-03-12 20:36:58 +00:00
Stefano Avallone
999b2ac02f network: Queue::DoEnqueue can return an iterator pointing to the inserted item 2021-01-20 12:27:16 +01:00
Tommaso Pecorella
314bc4f691 network: IPv6Address optimizations 2021-01-16 04:20:38 +00:00
Tommaso Pecorella
a436ba44e4 network: add IPv6 SLAAC from prefix 2021-01-15 23:01:38 +00:00
Tom Henderson
95ab2bef3a network: Initialize class members 2021-01-02 15:05:24 -08:00
Sébastien Deronne
77beef48af network: Add references for radiotap headers 2020-11-15 20:23:10 +01:00
Sébastien Deronne
ed83b8fa3b wifi: Add initial support for HE MU and HE MU Other User fields in radiotap header 2020-11-15 18:37:13 +00:00
Sébastien Deronne
2e22c3da6b wifi: Add PCAP support for HE MU and HE TB PPDUs 2020-11-15 18:37:13 +00:00
Greg Steinbrecher
e8fc528e34 network: (fixes #264, merges !432) Rounding behavior of DataRate methods
Improve rounding behavior of CalculateBytesTxTime and CalculateBitsTxTime
2020-10-02 13:19:36 -07:00
Tom Henderson
4d1387cac0 network: (merges !424) Handle additional SimpleNetDevice review comments 2020-09-27 14:18:29 -07:00
Greg Steinbrecher
a77e4d39b2 network: (merges !424) Fix instant send in SimpleNetDevice for empty queue
Also consolidate scheduling logic into ScheduleTransmit() rather than
repeating in both SendFrom() and TransmitComplete()
2020-09-27 12:40:10 -07:00
Greg Steinbrecher
4c99303b48 network: (fixes !409) Fix double send in SimpleNetDevice when queue length is 1 packet
Remove a spurious check for queue occupancy in SimpleDevice::TransmitComplete that could lead to double sends. See MR !409 for details.
2020-09-23 16:37:49 -07:00
Tommaso Pecorella
20644db04f network: add LollipopCounter - a sequence number counter type 2020-09-18 00:25:30 +00:00
Pasquale Imputato
ff8083ca2e fd-net-device: add support for emulation in netmap mode 2020-09-16 10:42:24 -07:00
Sébastien Deronne
7420aaf721 wifi: Fix radiotap header for received 802.11ax PPDUs 2020-09-07 21:09:29 +02:00
Jordan Dorham
27bebf4c6d time arithmetic implement in network 2020-09-03 08:12:22 +00:00
Deepak Kumaraswamy
0cf9597393 network: Add signature definition for DataRate TracedValue 2020-08-30 20:47:51 -07:00
Tom Henderson
8a60bdff13 network, internet: Clarify QueueDiscItem::Mark if item already marked 2020-06-29 16:23:14 -07:00