Skip to content
Browse files

xorp: fea: data_plane: fibconfig: Fix using of rtmsg scope parameter …

…in delete_entry

When deleting route we should use RT_SCOPE_NOWHERE instead of RT_SCOPE_UNIVERSE.

Reported-by: Jiangxin Hu <jiangxin.hu@crc.gc.ca>
  • Loading branch information...
1 parent 6caf148 commit 35d66f2aa672686534b2c881770e200cc4e0d689 @i-maravic i-maravic committed Jun 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xorp/fea/data_plane/fibconfig/fibconfig_entry_set_netlink_socket.cc
View
2 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;

0 comments on commit 35d66f2

Please sign in to comment.
Something went wrong with that request. Please try again.