Commit Graph

297 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
Tommaso Pecorella
9b31bc95cb Bug 1891 - UdpSocketImpl::GetSockName doesn't return the IPv6 address 2014-03-26 23:08:28 +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
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
03d268196b [Manual] Calrify IPv6 address assignement 2014-03-15 21:44:06 +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
Tommaso Pecorella
4517c16fe7 Fix valgrind errors in ipv[4,6]-fragmentation tests 2014-03-11 21:50:41 +01: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.
cd3da7143d [doxygen] Revert r10410, r10411, r10412 2014-03-05 17:06:59 -08:00
Rubén Martínez
bee049436d Bug 1874 - Ipv4L3Protocol::ProcessFragment: addressCombination and idProto identifiers not properly computed 2014-03-07 22:22:31 +01: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
Peter D. Barnes, Jr.
3c032987f0 [Bug 1868] Optimized builds are sensitive to -fstrict-overflow 2014-03-02 00:42:05 -08:00
Tom Henderson
52da92bf5b add DSR to the list of routing protocols 2014-02-27 06:35:58 -08:00
Tom Henderson
727fa3f326 bindings rescan (another try) 2014-02-23 13:49:13 -08:00
Tommaso Pecorella
b24df55aa8 [Python Bindings] rescan bindings 2014-02-23 08:45:57 +01:00
Tommaso Pecorella
98ec76d941 IPv[4,6] fragmentation tests include tag tests 2014-02-20 22:41:33 +01:00
Peter D. Barnes, Jr.
4a5acb6109 One waf to rule them all. 2014-02-07 17:00:28 -08:00
Peter D. Barnes, Jr.
dd3118a745 Update Time scaling usage to use new functions.
With out this patch these locations will become
broken by the upcoming fix to bug 1768.
2014-01-29 17:46:21 -08:00
Tommaso Pecorella
ffba6c64ee Bug 1846 - IPv6 should send Destination Unreachable if no route is available 2014-01-26 18:19:03 +01:00
Juan C. Granda
123caf7cf3 Bug 1739 - The endpoint is not deallocated for UDP sockets 2014-01-15 23:35:55 +01:00
Hajime Tazaki
341fcd0ce8 rescan bindings 2014-01-13 20:45:55 +09:00
Hajime Tazaki
5894f2b28b Bug 1826 - make ns3::Ipv6Interface independent from ns3::IPv6L3protocol
for DCE usage of ipv6 linux stack helper
2014-01-13 19:04:56 +09:00
Tom Henderson
5df093ae50 remove header dependency 2014-01-10 15:08:04 -08:00
Vedran Miletić
6acf41814e Move tests outside ns3 namespace 2014-01-02 18:34:30 +01:00
Tommaso Pecorella
7d415cd3ba Bug 1823 - IPv6 fails to work on NOARP NetDevices (revert changeset 9760) 2014-01-01 17:37:32 +01:00
Tommaso Pecorella
e22f63ffe4 Bug 1821 - Setting an interface to Down state will cause various asserts in IPv6 2013-12-31 19:48:09 +01:00
Tommaso Pecorella
216983828c Preserve packet tags upon IPv4 fragmentation 2013-12-19 21:43:02 -08:00
Tom Henderson
88fd0f04eb rescan all bindings 2013-12-16 00:06:41 -08:00
Tommaso Pecorella
08f30e7815 Rescan Internet bindings 2013-12-15 16:26:18 +01:00
Tommaso Pecorella
96a259dec6 Bug 1796 - Ipv6PacketInfoTag is not filled by UdpSocketImpl::ForwardUp6. 2013-12-15 09:26:02 +01:00
Tom Goff
9852907d33 bug 1767: make UDP sockets return error when binding to address already in use 2013-12-13 22:50:35 -08:00
Peter D. Barnes, Jr.
16219843f0 [sphinx] Use :rfc:6284 to create links to RFCs 2013-12-12 15:12:11 -08:00
Tommaso Pecorella
ad1ef6acc0 Bug 1814 - IPv6 Packets with length not multiple of 8 bytes are fragmented incorrectly. 2013-12-12 23:16:28 +01:00
Tommaso Pecorella
6c16817c8c Bug 1810 - IP packets can be sent on NetDevices not respecting the minimum MTU requirements 2013-12-12 19:36:16 +01:00
Tommaso Pecorella
06beb889b1 Backed out of changeset 10495:e877c029ed3e 2013-12-11 10:03:06 +01:00
Tommaso Pecorella
ef9dc2aadc Bug 1812 - example/stats wifi program manual is erroneous 2013-12-11 10:00:06 +01:00
Tommaso Pecorella
9499558186 Pretty-print IPv6 addresses and routing tables 2013-12-10 19:54:12 +01:00
Tommaso Pecorella
f27ed705b5 6LoWPAN module 2013-12-07 08:08:53 +01:00
Steven Smith
f780559565 Null message scheduler 2013-12-06 14:57:33 -05:00
Tommaso Pecorella
1cc097b05a Set correct packet size in IPv4 header after reassembly. 2013-12-04 20:56:33 +01:00
Tommaso Pecorella
668d3df3e5 Fix ErrorChannel Add 2013-12-03 23:04:39 +01:00
Tommaso Pecorella
9106524e8c Fix ErrorChannel Send 2013-12-03 22:49:51 +01:00
Tommaso Pecorella
bd6c92c79f Bug 1807 - Multiple bugs in Ipv4L3Protocol::LocalDeliver 2013-12-02 19:36:49 +01:00
Tommaso Pecorella
de5acedb80 Removed useless class from Internet tests 2013-11-30 12:38:22 +01:00
Tommaso Pecorella
dd20c79584 Bug 938 - missing Doxygen in ns-3 (internet model + helper) 2013-11-20 20:15:02 +01:00
Peter D. Barnes, Jr.
5a2488e6db [doxygen] Suppress "warning: Member NS_LOG_COMPONENT_DEFINE is not documented" 2013-11-14 16:58:56 -08:00