We need to hold a reference to the nexthop so when we dettach it
commit5dc80925c9b600053758f6f936c59b5265616fca
authorJames R. Leu <jleu@mindspring.com>
Tue, 17 May 2005 02:32:40 +0000 (16 20:32 -0600)
committerJames R. Leu <jleu@mindspring.com>
Tue, 17 May 2005 02:32:40 +0000 (16 20:32 -0600)
tree17889be404c206321cbe2d9189c7c234a2465b22
parentae481c4166b08c3f55d689bb7710f130b411df5d
We need to hold a reference to the nexthop so when we dettach it
from the FEC it is not deleted.  We need to dettach the nexthop
from the FEC before the call to ldp_fec_process_change so that
the searching for a valid FEC nexthop will not find this
(now invalid) nexthop.  When the nexthop is deleted (most likely
due to the call to MPLS_REFCNT_RELEASE2) _ldp_global_del_nexthop
will be called (from ldp_nexthop_delete)

[git-p4: depot-paths = "//depot/ldp-portable/": change = 1147]
ldp/ldp_cfg.c