summaryrefslogtreecommitdiffstats
path: root/ldpd/ldpd.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-02-03 14:09:27 +0100
committerRenato Westphal <renato@opensourcerouting.org>2017-02-06 16:05:41 +0100
commit8cb1fc4537e2bc44a021c988b4c5d08618975924 (patch)
treeddd9e48906f3d622515e1fa37a6fedbe2d4f61ef /ldpd/ldpd.h
parentldpd: fix silly bug introduced by a recent commit (diff)
downloadfrr-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.h3
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,