Commit Graph

265 Commits

Author SHA1 Message Date
Eduardo Almeida
20f2d50097 Fix typos 2023-06-13 17:51:42 +00:00
Eduardo Almeida
6923de623c Remove redundant break after return 2023-06-01 17:26:54 +00:00
Eduardo Almeida
a93c357141 Fix clang-tidy readability-simplify-boolean-expr warnings 2023-05-07 19:06:35 +01:00
Eduardo Almeida
68ef2890d0 Remove unnecessary enum specifiers 2023-05-01 13:09:06 +00:00
Alberto Gallegos
a3777c82f3 network: Add Mac16 and Mac64 functions 2023-04-02 13:05:14 +09:00
Alberto Gallegos
1083229fe1 network: Add ConvertToInt to Mac64Address 2023-03-28 12:10:18 +09:00
Alberto Gallegos Ramonet
7786a55ec4 network: Add Mac16Address constructor 2023-03-17 18:16:23 +09:00
André Apitzsch
05af2f45e0 Remove unused 'deprecated.h' includes 2023-03-16 14:58:02 +00:00
Gabriel Ferreira
6f076416e7 Fix typos 2023-02-21 22:29:29 -03:00
Eduardo Almeida
c5371d938c Fix clang-tidy readability-make-member-function-const warnings 2023-02-21 16:09:35 +00:00
Eduardo Almeida
d3426db18d Fix typos 2023-02-09 15:36:32 +00:00
Eduardo Almeida
5c8b820b7b Remove unneeded typedef in struct and enum 2022-12-22 17:36:30 +00:00
Stefano Avallone
3468c77461 network: Add operators to decrease the queue size by a packet size 2022-12-06 17:22:03 +00:00
Stefano Avallone
aa9cefe502 network: ScheduleNow() not only the wake callback, but also the check on its condition
The wake callback is scheduled "now" to let the flow of operations associated with
dequeue/remove complete before the flow control mechanism is triggered. Move the check on
the conditions for calling the wake callback after the flow of operations is completed
as well, in case the latter affect such conditions.
2022-12-06 17:22:03 +00:00
Stefano Avallone
a14525f632 network: Fix ListErrorModel since UIDs are uint64_t values 2022-12-06 17:22:03 +00:00
Eduardo Almeida
4930479af4 Remove enum / struct specifiers when declaring the variable's type 2022-12-05 19:05:45 +00:00
Tommaso Pecorella
520865a919 internet: fixes to IPv4 subnet-directed broadcast 2022-11-28 01:26:07 +01:00
Tommaso Pecorella
a9223622da network: make addresses ConvertTo public and simplify python scripts 2022-11-25 01:36:26 +00:00
Eduardo Almeida
b9562ba520 Fix formatting of braced-init-lists by adding trailing comma 2022-11-24 16:13:09 +00:00
Gabriel Arrobo
829e5869f8 network: Add TimestampTag 2022-11-12 18:17:47 +00:00
Tommaso Pecorella
0346179372 network: allow graceful failure on creation of Ipv[4,6]Address from string 2022-11-11 10:18:25 +00:00
Eduardo Almeida
7c182618ed Fix clang-tidy readability-redundant-string-cstr warnings 2022-10-28 16:05:20 +00:00
Eduardo Almeida
bfb737a0d9 Remove unnecessary [[maybe_unused]] specifiers 2022-10-24 11:58:49 +00:00
Eduardo Almeida
b048f70912 Fix the [[maybe_unused]] specifier placement to always come after the variable name 2022-10-24 11:58:49 +00:00
Eduardo Almeida
85ade4e18d Fix Doxygen comment formatting and typos 2022-10-16 14:49:21 +01:00
Eduardo Almeida
95e95f8904 Fix clang-tidy warnings in brite, click, mpi, openflow, p2p, visualizer 2022-10-14 16:58:17 +00:00
Eduardo Almeida
dfc6fb9d2d Remove emacs comment from C++ files 2022-10-14 14:13:12 +00:00
Eduardo Almeida
e25ff966fe Apply clang-format to codebase 2022-10-07 20:08:35 +00:00
Eduardo Almeida
afb0f160d4 Fix clang-tidy performance-faster-string-find warnings 2022-10-07 11:48:11 +00:00
Eduardo Almeida
c1e7757315 Fix clang-tidy readability-isolate-declaration warnings 2022-10-07 11:48:11 +00:00
Eduardo Almeida
1b78ecc117 Fix clang-tidy readability-braces-around-statements warnings 2022-10-07 11:48:11 +00:00
Eduardo Almeida
f87b53bbc5 Fix clang-tidy modernize-use-emplace warnings 2022-10-07 11:48:11 +00:00
Eduardo Almeida
4af0fe4b85 Fix clang-tidy modernize-use-nullptr warnings 2022-10-07 11:48:10 +00:00
Eduardo Almeida
be07b6487a Fix clang-tidy modernize-use-override warnings 2022-10-07 11:48:10 +00:00
Eduardo Almeida
6bb6383562 Fix clang-tidy modernize-redundant-void-arg warnings 2022-10-07 11:48:10 +00:00
Eduardo Almeida
4c318dde52 Fix missing includes 2022-10-06 20:41:07 +00:00
Eduardo Almeida
3e39cb0724 Fix formatting of some files before clang-format application 2022-10-06 20:41:07 +00:00
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