diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-02-03 14:09:27 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-02-06 16:05:41 +0100 |
commit | 8cb1fc4537e2bc44a021c988b4c5d08618975924 (patch) | |
tree | ddd9e48906f3d622515e1fa37a6fedbe2d4f61ef /ldpd/ldpd.h | |
parent | ldpd: fix silly bug introduced by a recent commit (diff) | |
download | frr-8cb1fc4537e2bc44a021c988b4c5d08618975924.tar.xz frr-8cb1fc4537e2bc44a021c988b4c5d08618975924.zip |
ldpd: update local labels when necessary
ldpd allocates null labels for directly connected routes. If a connected
route is removed (interface goes down) and an IGP learned route takes its
place in the RIB, ldpd must update the local label of the associated FEC
entry with a non-null label. The same applies for the other way around
(an interface goes up and a connected route is selected in favour of an
IGP route). Labels should be dynamic and change when necessary.
Additionally, this patch fixes the processing of route delete messages
from zebra. Route delete messages don't contain any nexthop, meaning that
whenever we receive such messages we must delete all nexthop previously
received.
Based on a patch from Bingen Eguzkitza <bingen@voltanet.io>.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/ldpd.h')
-rw-r--r-- | ldpd/ldpd.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ldpd/ldpd.h b/ldpd/ldpd.h index fa3789a83..ff3af19db 100644 --- a/ldpd/ldpd.h +++ b/ldpd/ldpd.h @@ -122,8 +122,7 @@ enum imsg_type { IMSG_NEIGHBOR_UP, IMSG_NEIGHBOR_DOWN, IMSG_NETWORK_ADD, - IMSG_NETWORK_ADD_END, - IMSG_NETWORK_DEL, + IMSG_NETWORK_UPDATE, IMSG_SOCKET_IPC, IMSG_SOCKET_NET, IMSG_CLOSE_SOCKETS, |