Commit Graph

52 Commits

Author SHA1 Message Date
Tommaso Pecorella
f3a3fb85b1 RIPng implementation 2014-03-17 20:01:49 +01:00
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
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
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
Tommaso Pecorella
98ec76d941 IPv[4,6] fragmentation tests include tag tests 2014-02-20 22:41:33 +01:00
Vedran Miletić
6acf41814e Move tests outside ns3 namespace 2014-01-02 18:34:30 +01: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
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
de5acedb80 Removed useless class from Internet tests 2013-11-30 12:38:22 +01:00
Peter D. Barnes, Jr.
d75ff3559e doxygen] Suppress "warning: Member NS_OBJECT_ENSURE_REGISTERED is not documented" 2013-11-14 16:58:28 -08:00
Tom Henderson
0945bb9e1b bug 1723: name clash in ipv4-header.h from <termios.h> 2013-08-16 09:50:18 -07:00
Alexander D'souza (
4d5a2a9be7 Bug 760 - IP address removal can be painful 2013-07-09 19:21:07 +02:00
Tommaso Pecorella
cfbc5a524a Fix Ipv6Forwarding test 2013-07-04 09:44:29 +02:00
Peter D. Barnes, Jr.
12ea93c5a1 Disambiguate test asserts 2013-07-03 14:45:39 -07:00
Peter D. Barnes, Jr.
e3611c4078 Doxygenate todo's 2013-07-03 14:43:10 -07:00
Tommaso Pecorella
a05600515e Bug 1712 - The IP (v4 and v6) forwarding needs a test 2013-06-30 14:10:49 +02:00
Tommaso Pecorella
b589986de5 Bug 1720 - IPv6 Fragmentation cause crashes 2013-06-25 22:46:01 +02:00
Tommaso Pecorella
8fcd718f03 Bug 1700 - Ipv6RawSocket does not honor the bound address when sending packets 2013-06-16 08:58:39 +02:00
Brian Swenson
0dc496c3bf RTT Estimator Test Code 2013-04-19 14:52:17 -04:00
Nicola Baldo
b69928a648 bug 1563: get rid of default argument value in AddTestCase 2013-03-22 13:14:38 +01:00
Hajime Tazaki
3aa5c40945 Bug 1582 - IPv6 raw socket return value is not like Linux socket
fix broken return value of IPv6 Raw socket (size, from address)
2013-02-12 12:44:25 +09:00
Vedran Miletić
aa554e051d Clean up core, network, internet, point-to-point tests that don't access private class attributes and methods in accordance to sample-test-suite.cc. 2012-09-21 13:47:41 +02:00
Vedran Miletić
71e380b55e Bug 1237 - code cleanups related to includes 2012-09-01 20:57:21 +02:00
Tom Henderson
c25333c443 clean up new IP address helper tests 2012-05-24 20:57:51 -07:00
Tom Henderson
1b584e2e27 bug 1432: Align Ipv6AddressHelper API with Ipv4AddressHelper API 2012-05-20 15:19:52 -07:00
Tommaso Pecorella
5481a7ddaf Enhancement 1393 - IPv6 Routing Helper RT Print functions 2012-03-17 23:23:56 +01:00
Gustavo J. A. M. Carneiro
6e252ada40 Bug 1362 - ICMPv6 does not forward ICMPs to upper layers 2012-03-21 18:51:55 +01:00
Tommaso Pecorella
df379ec879 Bug 1377: various memory leaks 2012-02-26 19:51:19 +01:00
Gustavo J. A. M. Carneiro
5a9bcd833a Add parenthesis in while (packet = socket->Recv ()) to make clang++ (LLVM) happy 2012-02-22 13:51:28 +00:00
Ken Renard
cf2e9f8212 Add support for IPv6 transport protocols 2012-02-20 14:05:07 +01:00
Andrey Mazo
cec21ade43 Bug 1170: Formulate best practices for dealing with unused debug variables. 2012-02-10 19:02:12 +04:00
Atishay Jain
270fb3958a IPv6 address generator 2011-11-26 20:33:45 -08:00
John Abraham
45d186dda2 Bug 1186 - Ipv4Header lacks DSCP and ECN 2011-10-21 08:52:15 -04:00
Colin Perkins
a6e6187e45 make ns-3 compile on FreeBSD-8.2 2011-09-16 13:45:52 -07:00
Vedran Miletić
0538e655aa standardize ns-3 namespace declaration format 2011-08-02 17:43:32 -04:00
Vedran Miletić
fe0667def8 standardize emacs c++ mode comments 2011-08-02 17:42:33 -04:00
Tommaso Pecorella
6e08749a57 Support to IPv4 fragmentation 2011-07-08 21:09:22 +02:00
Tom Henderson
2a2690a003 rerun check-style.py at default level to enforce space after function name 2011-05-22 23:18:47 -07:00
Tom Henderson
34688f76ec rerun check-style.py with uncrustify-0.58 2011-05-22 22:28:15 -07:00
John Abraham
0379ad69c1 Bug 1162 - opt build examples module unused variables 2011-05-18 12:59:20 -04:00
John Abraham
0f0798c869 global-route-manager-impl-test-suite.cc variable ‘lastDistance’ set but not used ,g++4.6.0 2011-05-14 03:49:21 -04:00
Josh Pelkey
55a388e12f internet coding style changes 2011-05-13 14:55:24 -04:00
Mathieu Lacage
b25ef1633d kill dead code 2011-05-03 11:23:51 +02:00
Mathieu Lacage
dd5f401539 do not log output on std::cout 2011-05-03 11:18:09 +02:00
Mitch Watrous
6c0d5166e8 Make examples that were in samples directory run 2011-04-15 13:03:02 -07:00
Mitch Watrous
c9202337a8 Move examples out of samples directory and remove it 2011-04-14 14:22:09 -07:00
Mitch Watrous
aa8f3e8ddb Move tests from internet module to its test library 2011-04-06 16:51:14 -07:00