summaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
authorRoopa Prabhu <roopa@cumulusnetworks.com>2015-09-13 13:18:33 -0400
committerDavid S. Miller <davem@davemloft.net>2015-09-17 18:00:27 -0400
commit37a1d3611c126fd9782ce5235791f898f053e763 (patch)
tree6b5f58c44fc55acb1dface329e468ff3f3e52e70 /net/ipv6/route.c
parent20471ed4d403a5f4de6aa0c10cd1e446f7f2b3c7 (diff)
ipv6: include NLM_F_REPLACE in route replace notifications
This patch adds NLM_F_REPLACE flag to ipv6 route replace notifications. This makes nlm_flags in ipv6 replace notifications consistent with ipv4. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Reviewed-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r--net/ipv6/route.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 3d3c1b294725..d5fa50297f80 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -3304,7 +3304,8 @@ errout:
3304 return err; 3304 return err;
3305} 3305}
3306 3306
3307void inet6_rt_notify(int event, struct rt6_info *rt, struct nl_info *info) 3307void inet6_rt_notify(int event, struct rt6_info *rt, struct nl_info *info,
3308 unsigned int nlm_flags)
3308{ 3309{
3309 struct sk_buff *skb; 3310 struct sk_buff *skb;
3310 struct net *net = info->nl_net; 3311 struct net *net = info->nl_net;
@@ -3319,7 +3320,7 @@ void inet6_rt_notify(int event, struct rt6_info *rt, struct nl_info *info)
3319 goto errout; 3320 goto errout;
3320 3321
3321 err = rt6_fill_node(net, skb, rt, NULL, NULL, 0, 3322 err = rt6_fill_node(net, skb, rt, NULL, NULL, 0,
3322 event, info->portid, seq, 0, 0, 0); 3323 event, info->portid, seq, 0, 0, nlm_flags);
3323 if (err < 0) { 3324 if (err < 0) {
3324 /* -EMSGSIZE implies BUG in rt6_nlmsg_size() */ 3325 /* -EMSGSIZE implies BUG in rt6_nlmsg_size() */
3325 WARN_ON(err == -EMSGSIZE); 3326 WARN_ON(err == -EMSGSIZE);