From: Roopa Prabhu <[email protected]> Ignore scope for route del messages
Signed-off-by: Vivek Venkataraman <[email protected]> Signed-off-by: Roopa Prabhu <[email protected]> Reviewed-by: Robert Shearman <[email protected]> --- net/mpls/af_mpls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c index 7b3f732..82dadab 100644 --- a/net/mpls/af_mpls.c +++ b/net/mpls/af_mpls.c @@ -693,7 +693,8 @@ 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) + if (nlh->nlmsg_type != RTM_DELROUTE && + rtm->rtm_scope != RT_SCOPE_UNIVERSE) goto errout; if (rtm->rtm_type != RTN_UNICAST) goto errout; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
