[Xorp-hackers] [greearb/xorp.ct] 313ca1: rib: Fix ref-counting in RouteEntry class.
GitHub
noreply at github.com
Tue Sep 18 13:02:02 PDT 2012
Branch: refs/heads/master
Home: https://github.com/greearb/xorp.ct
Commit: 313ca1e7398fbe76b32f2a638f8daf101d07c15e
https://github.com/greearb/xorp.ct/commit/313ca1e7398fbe76b32f2a638f8daf101d07c15e
Author: Ben Greear <greearb at candelatech.com>
Date: 2012-09-18 (Tue, 18 Sep 2012)
Changed paths:
M xorp/libxorp/vif.cc
M xorp/libxorp/vif.hh
M xorp/rib/redist_policy.hh
M xorp/rib/redist_xrl.cc
M xorp/rib/rib.cc
M xorp/rib/rib.hh
M xorp/rib/route.cc
M xorp/rib/route.hh
M xorp/rib/rt_tab_register.cc
Log Message:
-----------
rib: Fix ref-counting in RouteEntry class.
RouteEntry does ref-counting on the vif object, but it did not
implement copy constructors or operator=. This means ref-counting
didn't work right. Attempt to fix this by properly implementing
the copy constructors and operator= methods in RouteEntry and
child classes.
RIB is still a scary mess of pointers, but maybe this helps a bit.
Signed-off-by: Ben Greear <greearb at candelatech.com>
More information about the Xorp-hackers
mailing list