[Xorp-hackers] [PATCH] xorp: fea: data_plane: fibconfig: Fix using of rtmsg scope parameter in delete_entry

igorm at etf.rs igorm at etf.rs
Tue Jun 12 07:44:07 PDT 2012


From: Igor Maravic <igorm at etf.rs>

When deleting route we should use RT_SCOPE_NOWHERE instead of RT_SCOPE_UNIVERSE.

Reported-by: Jiangxin Hu <jiangxin.hu at crc.gc.ca>
Signed-off-by: Igor Maravic <igorm at etf.rs>
---
 .../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



More information about the Xorp-hackers mailing list