net: Rename dst_get_neighbour{, _raw} to dst_get_neighbour_noref{, _raw}.
To reflect the fact that a refrence is not obtained to the resulting neighbour entry. Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Roland Dreier <roland@purestorage.com>
此提交包含在:
@@ -1238,7 +1238,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)
|
||||
rt = rt6_get_dflt_router(&ipv6_hdr(skb)->saddr, skb->dev);
|
||||
|
||||
if (rt)
|
||||
neigh = dst_get_neighbour(&rt->dst);
|
||||
neigh = dst_get_neighbour_noref(&rt->dst);
|
||||
|
||||
if (rt && lifetime == 0) {
|
||||
neigh_clone(neigh);
|
||||
@@ -1258,7 +1258,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)
|
||||
return;
|
||||
}
|
||||
|
||||
neigh = dst_get_neighbour(&rt->dst);
|
||||
neigh = dst_get_neighbour_noref(&rt->dst);
|
||||
if (neigh == NULL) {
|
||||
ND_PRINTK0(KERN_ERR
|
||||
"ICMPv6 RA: %s() got default router without neighbour.\n",
|
||||
|
新增問題並參考
封鎖使用者