Commit Graph

1074 Commits

Author SHA1 Message Date
Zhiheng Dong
ff53821535 replace unordered_map by map 2022-07-28 04:54:14 +00:00
Zhiheng Dong
4d8f627cb1 internet: update ipv4/6container code example 2022-07-19 22:00:21 +00:00
dzh
e27f66a06e fix: typo and lack of Get() 2022-07-19 22:00:21 +00:00
Tommaso Pecorella
1dfc512dba doc: fix doxygen warnings 2022-07-16 21:47:32 -05:00
Tom Henderson
d06de00c4c internet: Fix documentation typo 2022-07-07 14:40:54 -07:00
Tommaso Pecorella
60449cfbaa internet: (fixes #400) Adds RS retransmission if no reply 2022-07-02 23:21:09 +00:00
Gabriel Ferreira
60e1e4032c fixing dead links 2022-06-18 17:57:05 -03:00
Tom Henderson
b6a5ee8151 Run utils/trim-trailing-whitespace.py on codebase 2022-06-05 21:01:11 -07:00
Eduardo Almeida
24fe685340 Fix typos in deleted methods 2022-05-31 07:56:34 -07:00
Eduardo Almeida
90c777a65b Mark deleted constructors and operator= with delete keyword 2022-05-26 18:55:52 -07:00
Tom Henderson
9fbb26f04f Silence additional compiler warnings about lack of return value 2022-05-14 21:45:42 -07:00
Tom Henderson
a614114865 bindings: Rescan all APIs 2022-04-18 15:30:35 -07:00
Gabriel Arrobo
9beeff24f3 Replace Ptr (this) with this 2022-03-24 11:24:14 -07:00
Eduardo Almeida
3a8585befe tcp: Fix tcp-rto-test assert messages 2022-02-28 08:21:52 -08:00
Eduardo Almeida
a3e63cc706 tcp: Clean up tcp-rto-test.cc, tcp-slow-start-test.cc and tcp-cong-avoid-test.cc 2022-02-28 07:43:02 -08:00
Eduardo Almeida
bd46c2c0b6 tcp (fixes #531): TcpWestwood divide-by-zero and floating point issues
- Change TcpWestwood::EstimateBW trace source from double to DataRate.
- Prevent divide-by-zero from occurring.
- Remove TcpWestwood from tcp-rto-test.cc, tcp-cong-avoid-test.cc, tcp-slow-start-test.cc.
- Add warning that currently TcpWestwood does not have unit tests.
2022-02-28 07:42:07 -08:00
Gabriel Ferreira
4aedba2f00 build: CMake refactoring and fixes
Includes:
- fix int64x64 parsing order, remove cached entries in macros-and-definitions and in the docs
- update launch.json scratch names
- add a ctest entry per executable
- forward POSIX signal in ns3 (to get segmentation fault)
- prioritize Ninja generator instead of Makefiles
- add tests for unused utils source files
- remove dummy file and add tests to check for unused source files
- add missing examples and clean up unnecessary definitions
- missing feature entry for LTE used by pybindgen
- refactor CMake related filenames
- fix python libraries and include directories bindings
- fix brite example name
- Keep C++ compiler and flags when refreshing
- Disable precompiled headers when Ccache is found
- Mark find_external_library headers as advanced
- consolidate auxiliary files: build-status.py, _cache.py and .lock-waf_sys.platform_build files are merged into .lock-ns3_sys.platform_build
- scan .cc sources used in bindings and update docs
2022-02-21 22:18:42 -03:00
Gabriel Ferreira
e32c177e45 build: remove waf files, tests and references 2022-02-21 22:08:45 -03:00
Tom Henderson
5367f1fed7 bindings: Rescan APIs of most modules 2022-02-16 15:59:27 -08:00
Gabriel Ferreira
41aacec626 build: CMake refactoring
Includes:
- refactor build_lib and build_lib_example macros
    - unify src and contrib macros
    - replace macro with function not to leak definitions
    - parse list of arguments
- different cmake-format file for modules to list one item per line
2022-01-28 10:20:18 -03:00
Akash Mondal
bd7a35f821 internet: fix errors in IPv6 Path MTU discovery. 2022-01-26 23:42:10 +00:00
Gabriel Ferreira
9342082c53 bindings, build: fix bindings and visualizer build
Includes:
- scan python scripts
- run python scripts from ns3
- replace visualizer file copy with configure_file to prevent cmake refreshes
- replace ns__init__.py file copy with configure_file to prevent cmake refreshes
- fix bindings scanning with cmake
- pass include directories to modulegen for castxml consumption
- add missing parameters of Recv in python-unit-tests.py
- change apiscan targets from apiscan-module to libmodule-apiscan
- change bindings targets from module-bingings to libmodule-bindings
- scanning and bindings build tests
- scan scratch python scripts
- replace FindPython3 with FindPython to be compatible with CMake 3.10
- do not export private visual-simulator-impl.h
- do not export udp-socket-impl.h
- use .so suffix for bindings on Mac instead of .dylib
2022-01-26 01:53:28 -03:00
Gabriel Ferreira
33f2ee841b doc: update ns3 API 2022-01-19 16:25:03 -03:00
Gabriel Ferreira
66ef21189e internet: Replace m_node->GetObject<Ipv4> with Ptr (this) 2022-01-15 01:09:28 +00:00
Gabriel Ferreira
56f35c5f25 internet: Only make packet copies when there is a connected trace 2022-01-15 01:09:28 +00:00
Tommaso Pecorella
247a597f43 doxygen: fix warnings in various modules 2022-01-07 12:13:17 -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
Tom Henderson
9588ad7fe6 internet: Update Python bindings 2021-12-17 15:46:55 -08:00
Tommaso Pecorella
2d3389005b internet: further NSC cleanup 2021-12-17 13:59:48 -08:00
Chandrakant jena
0510f36078 internet: change NS_ASSERT to NS_TEST_ASSERT* in tests 2021-12-17 19:45:36 +01:00
Tom Henderson
2c19b5b453 internet: Remove Network Simulation Cradle (NSC) 2021-12-10 09:07:03 -08:00
Gabriel Ferreira
a893eba7e3 build: Fix CMake and ns3 script bugs, add a test suite and fix formatting 2021-12-05 21:53:49 +00:00
Gabriel Ferreira
3c604d5b2e Update docs with CMake and ns3 wrapper 2021-12-01 12:29:56 -08:00
Gabriel Ferreira
9c876c7f5a CMake buildsystem 2021-12-01 12:29:55 -08:00
Eduardo Almeida
a2efceffb2 Simplify trivial bool statements 2021-11-04 14:19:29 -07:00
Greg Steinbrecher
161c4fa2ce internet: read correct bits when deserializing IPv6 flow label
On line 153, `m_flowLabel` is OR-ed into the LSBs of `vTcFl`, which is then written with `WriteHtonU32` into the buffer. On line 169, `vTcFl` is read out using `ReadNtohU32`, so the byte order should be the same as it was on line 153. However, currently `m_flowLabel` is being assigned the value of `vTcFl` masked by `0xfff00000`.

This commit changes line 177 to read the correct set of 20 bits to recover the original flow label.

One question: Right now, `SetFlowLabel` (and the other setters) don't check that the value is in range, and Serialize doesn't mask them. Should this be fixed? Right now, a large flow label would clobber the traffic class and version fields.
2021-11-04 06:52:21 -07:00
Tommaso Pecorella
4895deeefd internet: further fixes to Doxygen description of callback signatures 2021-10-28 01:34:28 +02:00
Gard Spreemann
f9ac0f0382 Correct typos in Doxygen description of callback signatures 2021-10-27 23:13:32 +00:00
Tom Henderson
1516b8891d internet: Update Python bindings 2021-10-21 16:18:13 -07:00
Tommaso Pecorella
22ca1d332d internet: (fixes #431) ICMPv6 error messages carry packet metadata 2021-10-20 22:21:31 +00:00
Tommaso Pecorella
b7ddd9d3f5 internet: Align RIPng and RIP implementations 2021-10-10 00:54:21 +02:00
Tommaso Pecorella
db1fa07947 internet: Fix RIPng address selection for intermediate nodes 2021-10-10 00:09:49 +02:00
Tommaso Pecorella
ed8d74879a internet: Fix src address selection for localhost 2021-10-10 00:09:00 +02:00
Tommaso Pecorella
24f73cc470 internet: fix icmpv6 test 2021-10-06 23:04:57 +00:00
Gauri Prasad
235732f6af tcp: (fixes #410) Fix TCP Westwood bandwidth estimation bug 2021-09-29 14:06:47 -07:00
Tom Henderson
4e9afa965d bindings: Rescan all APIs 2021-09-27 11:18:37 -07:00
Aditya Chirania
3eecf5162c tcp: (fixes #407) Align TcpCubic::GetSsThresh() with Linux 2021-09-13 09:12:52 +05:30
cbowers1020
b529897c6c Fix Duplicate detection for ipv4 l3 multicast 2021-08-30 19:52:04 +00:00
Ameya Deshpande
7be87100a9 nix-vector-routing: Handle Multiple Wifi connections with same channel object
Signed-off-by: Ameya Deshpande <ameyanrd@outlook.com>
2021-08-26 21:09:11 +00:00