Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13975)

Issue 317900043: "Bug 2546: Add PrintRoutingTable(All)Change function to only print routing table changes."

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 5 months ago by ammo6818-vandals.uidaho.edu
Modified:
6 years, 9 months ago
CC:
ns-3-reviews_googlegroups.com
Visibility:
Public.

Description

"Bug 2546: Add PrintRoutingTable(All)Change function to only print routing table changes."

Patch Set 1 #

Patch Set 2 : "Updated change set to switch from periodic output to output on change. Also includes all routing … #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+1506 lines, -36 lines) Patch
M CHANGES.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M RELEASE_NOTES View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/aodv/bindings/modulegen__gcc_LP64.py View 1 7 chunks +32 lines, -2 lines 0 comments Download
A src/aodv/examples/aodv-1.cc View 1 1 chunk +221 lines, -0 lines 1 comment Download
M src/aodv/examples/wscript View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/aodv/model/aodv-routing-protocol.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M src/aodv/model/aodv-routing-protocol.cc View 1 30 chunks +57 lines, -3 lines 2 comments Download
M src/aodv/model/aodv-rtable.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/aodv/model/aodv-rtable.cc View 1 3 chunks +6 lines, -3 lines 0 comments Download
M src/click/model/ipv4-click-routing.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/click/model/ipv4-click-routing.cc View 1 chunk +5 lines, -0 lines 1 comment Download
M src/dsdv/bindings/modulegen__gcc_LP64.py View 1 6 chunks +30 lines, -0 lines 0 comments Download
A src/dsdv/examples/dsdv-manet-1.cc View 1 1 chunk +333 lines, -0 lines 1 comment Download
M src/dsdv/examples/wscript View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/dsdv/model/dsdv-routing-protocol.h View 1 2 chunks +10 lines, -3 lines 0 comments Download
M src/dsdv/model/dsdv-routing-protocol.cc View 1 14 chunks +34 lines, -5 lines 1 comment Download
M src/dsdv/model/dsdv-rtable.cc View 1 3 chunks +14 lines, -12 lines 0 comments Download
M src/internet/bindings/modulegen__gcc_LP64.py View 14 chunks +70 lines, -0 lines 0 comments Download
M src/internet/helper/ipv4-routing-helper.h View 1 3 chunks +35 lines, -0 lines 0 comments Download
M src/internet/helper/ipv4-routing-helper.cc View 1 3 chunks +28 lines, -0 lines 0 comments Download
M src/internet/helper/ipv6-routing-helper.h View 1 3 chunks +35 lines, -0 lines 0 comments Download
M src/internet/helper/ipv6-routing-helper.cc View 1 3 chunks +28 lines, -0 lines 0 comments Download
M src/internet/model/global-router-interface.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M src/internet/model/ipv4-global-routing.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M src/internet/model/ipv4-global-routing.cc View 1 11 chunks +29 lines, -1 line 1 comment Download
M src/internet/model/ipv4-list-routing.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/internet/model/ipv4-list-routing.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M src/internet/model/ipv4-routing-protocol.h View 1 chunk +8 lines, -0 lines 0 comments Download
M src/internet/model/ipv4-static-routing.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M src/internet/model/ipv4-static-routing.cc View 1 11 chunks +29 lines, -1 line 0 comments Download
M src/internet/model/ipv6-list-routing.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/internet/model/ipv6-list-routing.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M src/internet/model/ipv6-routing-protocol.h View 1 chunk +8 lines, -0 lines 0 comments Download
M src/internet/model/ipv6-static-routing.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M src/internet/model/ipv6-static-routing.cc View 1 14 chunks +32 lines, -1 line 0 comments Download
M src/internet/model/rip.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M src/internet/model/rip.cc View 1 8 chunks +26 lines, -1 line 0 comments Download
M src/internet/model/ripng.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M src/internet/model/ripng.cc View 1 7 chunks +25 lines, -1 line 0 comments Download
M src/internet/test/ipv4-list-routing-test-suite.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M src/internet/test/ipv6-list-routing-test-suite.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M src/nix-vector-routing/bindings/modulegen__gcc_LP64.py View 1 5 chunks +25 lines, -0 lines 0 comments Download
M src/nix-vector-routing/model/ipv4-nix-vector-routing.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M src/nix-vector-routing/model/ipv4-nix-vector-routing.cc View 1 8 chunks +26 lines, -1 line 1 comment Download
M src/olsr/bindings/modulegen__gcc_LP64.py View 1 7 chunks +35 lines, -0 lines 0 comments Download
A src/olsr/examples/simple-point-to-point-olsr-1.cc View 1 1 chunk +176 lines, -0 lines 0 comments Download
M src/olsr/examples/wscript View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/olsr/model/olsr-routing-protocol.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M src/olsr/model/olsr-routing-protocol.cc View 1 3 chunks +21 lines, -1 line 0 comments Download

Messages

Total messages: 2
Tom Henderson
Overall I like this addition but have some small comments to resolve before merging. https://codereview.appspot.com/317900043/diff/20001/src/aodv/examples/aodv-1.cc ...
7 years, 2 months ago (2017-01-21 21:45:54 UTC) #1
mariemarth7
6 years, 9 months ago (2017-07-23 10:44:53 UTC) #2
On 2017/01/21 21:45:54, Tom Henderson wrote:
> Overall I like this addition but have some small comments to resolve before
> merging.
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/aodv/examples/aodv-1.cc
> File src/aodv/examples/aodv-1.cc (right):
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/aodv/examples/aodv-1....
> src/aodv/examples/aodv-1.cc:1: /* -*- Mode:C++; c-file-style:"gnu";
> indent-tabs-mode:nil; -*- */
> I prefer to keep a single 'aodv.cc' and either 1) change the existing periodic
> routing table print method to the change-driven version that you add, or 2)
add
> an option to command line such as 'printPeriodic' (true/false) that toggles
the
> behavior from PrintAt to PrintChange.
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/aodv/model/aodv-routi...
> File src/aodv/model/aodv-routing-protocol.cc (right):
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/aodv/model/aodv-routi...
> src/aodv/model/aodv-routing-protocol.cc:344: NS_LOG_FUNCTION_NOARGS ();
> change to 'NS_LOG_FUNCTION (this)'; NS_LOG_FUNCTION_NOARGS (void) is supposed
to
> be used with static methods where there is no 'this' pointer.
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/aodv/model/aodv-routi...
> src/aodv/model/aodv-routing-protocol.cc:880: RouteChange();
> This comment applies to also DSDV and perhaps others.  The calls to
> RouteChange() are sprinked throughout this file, and it is possible that we
> forget to call this in the future (or that a call to e.g. AddRoute() doesn't
> result in an actual change.  Consider how Olsr has a RouteChangedCallback,
which
> allows you to localize the RouteChange() call to one place.  What about
instead
> introducing similar RouteChangedCallback to the Aodv and Dsdv tables?  
> 
> I realize that AODV routing table is not an ns3::Object but it could either be
> made into one, or a callback could still be included at the public API of the
> table.
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/click/model/ipv4-clic...
> File src/click/model/ipv4-click-routing.cc (right):
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/click/model/ipv4-clic...
> src/click/model/ipv4-click-routing.cc:566: {
> I tend to prefer at least an NS_LOG_WARN ("method unimplemented!"); or even an
> NS_FATAL_ERROR or NS_ABORT if this is called.  Leaving method bodies blank
leads
> to soft errors.
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/dsdv/examples/dsdv-ma...
> File src/dsdv/examples/dsdv-manet-1.cc (right):
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/dsdv/examples/dsdv-ma...
> src/dsdv/examples/dsdv-manet-1.cc:1: /* -*- Mode:C++; c-file-style:"gnu";
> indent-tabs-mode:nil; -*- */
> similar comment as to aodv-1.cc; let's keep one version of the example,
perhaps
> defaulting to the PrintChange mode of operation.
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/dsdv/model/dsdv-routi...
> File src/dsdv/model/dsdv-routing-protocol.cc (right):
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/dsdv/model/dsdv-routi...
> src/dsdv/model/dsdv-routing-protocol.cc:255: NS_LOG_FUNCTION_NOARGS ();
> NS_LOG_FUNCTION (this);  (please review the patch globally for this change)
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/internet/model/ipv4-g...
> File src/internet/model/ipv4-global-routing.cc (right):
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/internet/model/ipv4-g...
> src/internet/model/ipv4-global-routing.cc:84: RouteChange();
> Global routing is a special case; this is not a dynamic routing protocol but
one
> that is run at time zero, so I don't think it is appropriate to call
> RouteChange() every time some change is made during the initial construction.
> 
> Can you perhaps try to call or trigger a call from the end of
> GlobalRouteManagerImpl::InitializeRoutes ()?
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/nix-vector-routing/mo...
> File src/nix-vector-routing/model/ipv4-nix-vector-routing.cc (right):
> 
>
https://codereview.appspot.com/317900043/diff/20001/src/nix-vector-routing/mo...
> src/nix-vector-routing/model/ipv4-nix-vector-routing.cc:124: RouteChange();
> similar comment here as to Ipv4GlobalRouting; suggest to make sure that
> RouteChange() gets called only once upon an actual routing table change.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b