On 27/05/15 19:37, Roopa Prabhu wrote:
From: Roopa Prabhu <ro...@cumulusnetworks.com>
Ignore scope for route del messages
Signed-off-by: Vivek Venkataraman <vi...@cumulusnetworks.com>
Signed-off-by: Roopa Prabhu <ro...@cumulusnetworks.com>
Reviewed-by: Robert Shearman <rshea...@brocade.com>
---
net/mpls/af_mpls.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c
index 7b3f732..f4eb0dd 100644
--- a/net/mpls/af_mpls.c
+++ b/net/mpls/af_mpls.c
@@ -693,8 +693,10 @@ static int rtm_to_route_config(struct sk_buff *skb,
struct nlmsghdr *nlh,
* (or source specific address in the case of multicast)
* all addresses have universal scope.
*/
- if (rtm->rtm_scope != RT_SCOPE_UNIVERSE)
- goto errout;
+ if (nlh->nlmsg_type != RTM_DELROUTE &&
+ rtm->rtm_scope != RT_SCOPE_UNIVERSE)
+ goto errout;
+
if (rtm->rtm_type != RTN_UNICAST)
goto errout;
if (rtm->rtm_flags != 0)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html