提交 7e1b33e5 编写于 作者: U Ulrich Weber 提交者: David S. Miller

ipv6: add IPv6 to neighbour table overflow warning

IPv4 and IPv6 have separate neighbour tables, so
the warning messages should be distinguishable.

[ Add a suitable message prefix on the ipv4 side as well -DaveM ]
Signed-off-by: NUlrich Weber <uweber@astaro.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b3de7559
...@@ -1231,7 +1231,7 @@ static int rt_intern_hash(unsigned hash, struct rtable *rt, ...@@ -1231,7 +1231,7 @@ static int rt_intern_hash(unsigned hash, struct rtable *rt,
} }
if (net_ratelimit()) if (net_ratelimit())
printk(KERN_WARNING "Neighbour table overflow.\n"); printk(KERN_WARNING "ipv4: Neighbour table overflow.\n");
rt_drop(rt); rt_drop(rt);
return -ENOBUFS; return -ENOBUFS;
} }
......
...@@ -670,7 +670,7 @@ static struct rt6_info *rt6_alloc_cow(struct rt6_info *ort, struct in6_addr *dad ...@@ -670,7 +670,7 @@ static struct rt6_info *rt6_alloc_cow(struct rt6_info *ort, struct in6_addr *dad
if (net_ratelimit()) if (net_ratelimit())
printk(KERN_WARNING printk(KERN_WARNING
"Neighbour table overflow.\n"); "ipv6: Neighbour table overflow.\n");
dst_free(&rt->dst); dst_free(&rt->dst);
return NULL; return NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册