Commit Graph

10688 Commits

Author SHA1 Message Date
Andrey Mazo
210aefc777 Bug 1170: Formulate best practices for dealing with unused debug variables.
Fixed clang-3.4 unused function warnings in optimized builds like the following:
"""
../examples/energy/energy-model-example.cc:39:1: error: unused function
'PrintReceivedPacket' [-Werror,-Wunused-function]
PrintReceivedPacket (Address& from)
^
1 error generated.
"""

Implemented "if (false)" trick inside NS_LOG* macros for optimized builds.

"sizeof()" trick might be a little better but it produces the following
warning with clang-3.4:
"""
../examples/energy/energy-model-example.cc:39:1: error: function
'PrintReceivedPacket' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
PrintReceivedPacket (Address& from)
^
1 error generated.
"""


Macros from log.h, that depend on NS3_LOG_ENABLE, were moved to log-macros-enabled.h and log-macros-disabled.h to make log.h smaller.
2014-03-23 19:08:54 +04:00
Scott Carpenter
de004b4c7d Bug 1877 - constructor missing for <something>PropagationLossModels 2014-03-29 18:16:59 +01:00
Andrey Mazo
afb50f1c25 whitespace fix after 20ce79766233. 2014-03-27 16:31:06 +04:00
Biljana Bojović
f625c86e22 Bug 1888 - COST231 propagation loss model: corrections 2014-03-26 23:47:30 +01:00
Eugene Chemeritskiy
7feb0b73c8 Bug 1889 - PointToPointNetDevive: In some cases MacTxDrop trace is not called 2014-03-26 23:39:32 +01:00
Eugene Chemeritskiy
a88ee6e269 Bug 1890 - UdpClientTrace: MPEG frame size is squeezed into (insufficient) 16 bit integer 2014-03-26 23:20:13 +01:00
Tommaso Pecorella
9b31bc95cb Bug 1891 - UdpSocketImpl::GetSockName doesn't return the IPv6 address 2014-03-26 23:08:28 +01:00
Andrey Mazo
9afed6b932 make various implementation-specific tables static const.
This should prevent possible name collisions, clean up ns3 namespace a little
and allow compiler to place them in a sharable read-only data section.
Also make various global variables static not to pollute ns3 namespace and to
force use of Attribute framework where appropriate.
2014-03-26 14:51:14 +04:00
Andrey Mazo
226c9005c3 hgignore LTE *Stats.txt 2014-03-26 02:35:34 +04:00
Eugene Chemeritskiy
edc382137b Bug 1887 - Point-to-point traces should contain PPP headers 2014-03-25 21:46:09 +01:00
Andrey Mazo
cb9eeb2af2 NS3_LOG_ENABLE shouldn't be forced.
Moreover, there is no NS_LOG* usage in these files.
2014-03-23 16:56:59 +04:00
Andrey Mazo
be090649a2 mark private global variables as static in log.cc 2014-03-23 16:51:32 +04:00
Nicola Baldo
cb1f9a0c9f merge 2014-03-21 16:57:41 +01:00
Biljana Bojovic
d25133fd5e default value of ns3::RadioEnvironmentMapHelper::NoisePower is in W, not mW 2014-03-21 13:51:41 +01:00
mmiozzo
efccb54a60 Add back forgotten rng testsuite (attibution: Peter Barnes noticed it) 2014-03-20 23:37:16 +01:00
mmiozzo
c6ccba38d4 Bug-fix LTE UL Schedulers (all): add lacking allocationMap storage with only HARQ retransmissions 2014-03-18 13:17:12 +01:00
Tommaso Pecorella
0a3856e45c [Python Bindings] - rebuild internet and flow-monitor modules 2014-03-17 20:23:44 +01:00
Tommaso Pecorella
c04ebb1c5f Bug 1845 - FlowMonitor should discard any broadcast/multicast packet 2014-03-17 19:44:36 +01:00
Tommaso Pecorella
7c6b38c6f4 Bug 1843 - IPv6 extensions dropped packets do not fire L3 drop trace 2014-03-17 19:43:11 +01:00
Tommaso Pecorella
1ff598b75c Bug 1842 - FlowMonitor SerializeToXml<Something> should be called by the helper 2014-03-17 19:34:43 +01:00
Nicola Baldo
19e595c09f fixed Bug 1885 - WifiSpectrumValue5MhzFactory::CreateRfFilter does not align with the used 5Mhz SpectrumModel 2014-03-17 13:55:12 +01:00
Tommaso Pecorella
03d268196b [Manual] Calrify IPv6 address assignement 2014-03-15 21:44:06 +01:00
Tommaso Pecorella
384eb5a622 Add 6LoWPAN uncompressed IPv6 header support 2014-03-15 19:18:53 +01:00
Tommaso Pecorella
d9a09ae2f3 Move SourceAddressSelection to Ipv6L3Protocol 2014-03-15 17:04:02 +01:00
Tommaso Pecorella
a2e81e7341 Bug 1883 - IPv6 don't consider the prefix and network when choosing output address 2014-03-15 15:35:58 +01:00
Peter D. Barnes, Jr.
fa320437c0 [Bug 1882] update RELEASE_NOTES 2014-03-14 15:33:49 -07:00
Peter D. Barnes, Jr.
72cea610f0 [Bug 1882] int64x64 tests trigger valgrind bug 2014-03-14 15:31:15 -07:00
Gustavo Carneiro
36368b6db9 fixes for Python 2.6 compatibility 2014-03-13 07:53:32 -07:00
Tom Henderson
701d152d37 remove unnecessary forward declaration 2014-03-13 06:37:41 -07:00
Tom Henderson
1b4424dbcc bug 1869: append local build directory before recursing into modules 2014-03-13 06:37:04 -07:00
Tommaso Pecorella
19db0e31cb [Doxygen] network module 2014-03-13 09:29:47 +01:00
Tommaso Pecorella
4517c16fe7 Fix valgrind errors in ipv[4,6]-fragmentation tests 2014-03-11 21:50:41 +01:00
Peter D. Barnes, Jr.
cf7605fafc [doxygen] Clarify doxygen.conf PREDEFINED variable. 2014-03-10 12:52:16 -07:00
Peter D. Barnes, Jr.
a274c8ea37 [doxygen] Make introspected lists more visible, various other doxy 2014-03-10 10:57:50 -07:00
Peter D. Barnes, Jr.
5469adc1a4 [doxygen] Fix warning 2014-03-05 17:08:10 -08:00
Peter D. Barnes, Jr.
cd3da7143d [doxygen] Revert r10410, r10411, r10412 2014-03-05 17:06:59 -08:00
Peter D. Barnes, Jr.
104ff32b23 [doxygen] Stop warnings from NS_LOG_COMPONENT_DEFINE and NS_OBJECT_ENSURE_REGISTERED 2014-03-05 16:55:49 -08:00
Peter D. Barnes, Jr.
bfeb265434 [doxygen] Preserve modified doxygen.conf during doxygen.warnings.report.sh run 2014-03-05 16:35:00 -08:00
Peter D. Barnes, Jr.
f647edb0e5 [Bug 1856] Remove duplicate definition 2014-03-03 21:49:54 -08:00
Tom Henderson
57ccecc74d additional NSC documentation updates 2014-03-03 13:28:26 -08:00
Tom Henderson
661b5c9144 update NSC documentation 2014-03-03 06:49:11 -08:00
Gustavo Carneiro
ff3054b592 Fixes to support Python >= 3.3 in ns3 python bindings 2014-03-02 23:48:27 +00:00
Gustavo Carneiro
60e2a6c117 Require new pybindgen version to handle the new Time type changes (int64_t) 2014-03-02 20:44:58 +00:00
Gustavo Carneiro
89b3183f65 Enable more pybindgen logging 2014-03-02 20:44:20 +00:00
Gustavo Carneiro
cb559e2947 Add option to disable scanning for 32-bit bindings on 64-bit platforms 2014-03-02 12:24:39 +00:00
Peter D. Barnes, Jr.
851b2f961c [Bug [Bug 1856] int64x64_t double conversions: update reference data 2014-03-02 01:03:04 -08:00
Peter D. Barnes, Jr.
b43ee31622 [Bug 1856] int64x64_t double conversions 2014-03-02 01:02:23 -08:00
Peter D. Barnes, Jr.
3c032987f0 [Bug 1868] Optimized builds are sensitive to -fstrict-overflow 2014-03-02 00:42:05 -08:00
Daniel Lertpratchya
94a4233910 [docs] update wifi.rst and mobility.rst (minor) 2014-02-27 09:45:55 -05:00
Tom Henderson
52da92bf5b add DSR to the list of routing protocols 2014-02-27 06:35:58 -08:00