From: Igor Maravic <[email protected]>

When deleting route we should use RT_SCOPE_NOWHERE instead of RT_SCOPE_UNIVERSE.

Reported-by: Jiangxin Hu <[email protected]>
Signed-off-by: Igor Maravic <[email protected]>
---
 .../fibconfig_entry_set_netlink_socket.cc          |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git 
a/xorp/fea/data_plane/fibconfig/fibconfig_entry_set_netlink_socket.cc 
b/xorp/fea/data_plane/fibconfig/fibconfig_entry_set_netlink_socket.cc
index b367469..2ce8e14 100644
--- a/xorp/fea/data_plane/fibconfig/fibconfig_entry_set_netlink_socket.cc
+++ b/xorp/fea/data_plane/fibconfig/fibconfig_entry_set_netlink_socket.cc
@@ -442,7 +442,7 @@ FibConfigEntrySetNetlinkSocket::delete_entry(const FteX& 
fte)
     rtmsg->rtm_src_len = 0;
     rtmsg->rtm_tos = 0;
     rtmsg->rtm_protocol = RTPROT_XORP;         // Mark this as a XORP route
-    rtmsg->rtm_scope = RT_SCOPE_UNIVERSE;
+    rtmsg->rtm_scope = RT_SCOPE_NOWHERE;
     rtmsg->rtm_type = RTN_UNICAST;
     rtmsg->rtm_flags = RTM_F_NOTIFY;
 
-- 
1.7.5.4

_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to