aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ndisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r--net/ipv6/ndisc.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 35615c6358b8..511e5b4bb610 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -266,7 +266,7 @@ static struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len,
266 case ND_OPT_REDIRECT_HDR: 266 case ND_OPT_REDIRECT_HDR:
267 if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) { 267 if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) {
268 ND_PRINTK2(KERN_WARNING 268 ND_PRINTK2(KERN_WARNING
269 "%s(): duplicated ND6 option found: type=%d\n", 269 "%s: duplicated ND6 option found: type=%d\n",
270 __func__, 270 __func__,
271 nd_opt->nd_opt_type); 271 nd_opt->nd_opt_type);
272 } else { 272 } else {
@@ -297,7 +297,7 @@ static struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len,
297 * protocol. 297 * protocol.
298 */ 298 */
299 ND_PRINTK2(KERN_NOTICE 299 ND_PRINTK2(KERN_NOTICE
300 "%s(): ignored unsupported option; type=%d, len=%d\n", 300 "%s: ignored unsupported option; type=%d, len=%d\n",
301 __func__, 301 __func__,
302 nd_opt->nd_opt_type, nd_opt->nd_opt_len); 302 nd_opt->nd_opt_type, nd_opt->nd_opt_len);
303 } 303 }
@@ -459,7 +459,7 @@ struct sk_buff *ndisc_build_skb(struct net_device *dev,
459 1, &err); 459 1, &err);
460 if (!skb) { 460 if (!skb) {
461 ND_PRINTK0(KERN_ERR 461 ND_PRINTK0(KERN_ERR
462 "ICMPv6 ND: %s() failed to allocate an skb, err=%d.\n", 462 "ICMPv6 ND: %s failed to allocate an skb, err=%d.\n",
463 __func__, err); 463 __func__, err);
464 return NULL; 464 return NULL;
465 } 465 }
@@ -696,7 +696,7 @@ static void ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb)
696 696
697 if ((probes -= neigh->parms->ucast_probes) < 0) { 697 if ((probes -= neigh->parms->ucast_probes) < 0) {
698 if (!(neigh->nud_state & NUD_VALID)) { 698 if (!(neigh->nud_state & NUD_VALID)) {
699 ND_PRINTK1(KERN_DEBUG "%s(): trying to ucast probe in NUD_INVALID: %pI6\n", 699 ND_PRINTK1(KERN_DEBUG "%s: trying to ucast probe in NUD_INVALID: %pI6\n",
700 __func__, target); 700 __func__, target);
701 } 701 }
702 ndisc_send_ns(dev, neigh, target, target, saddr); 702 ndisc_send_ns(dev, neigh, target, target, saddr);
@@ -1230,7 +1230,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)
1230 neigh = dst_neigh_lookup(&rt->dst, &ipv6_hdr(skb)->saddr); 1230 neigh = dst_neigh_lookup(&rt->dst, &ipv6_hdr(skb)->saddr);
1231 if (!neigh) { 1231 if (!neigh) {
1232 ND_PRINTK0(KERN_ERR 1232 ND_PRINTK0(KERN_ERR
1233 "ICMPv6 RA: %s() got default router without neighbour.\n", 1233 "ICMPv6 RA: %s got default router without neighbour.\n",
1234 __func__); 1234 __func__);
1235 dst_release(&rt->dst); 1235 dst_release(&rt->dst);
1236 return; 1236 return;
@@ -1248,7 +1248,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)
1248 rt = rt6_add_dflt_router(&ipv6_hdr(skb)->saddr, skb->dev, pref); 1248 rt = rt6_add_dflt_router(&ipv6_hdr(skb)->saddr, skb->dev, pref);
1249 if (rt == NULL) { 1249 if (rt == NULL) {
1250 ND_PRINTK0(KERN_ERR 1250 ND_PRINTK0(KERN_ERR
1251 "ICMPv6 RA: %s() failed to add default route.\n", 1251 "ICMPv6 RA: %s failed to add default route.\n",
1252 __func__); 1252 __func__);
1253 return; 1253 return;
1254 } 1254 }
@@ -1256,7 +1256,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)
1256 neigh = dst_neigh_lookup(&rt->dst, &ipv6_hdr(skb)->saddr); 1256 neigh = dst_neigh_lookup(&rt->dst, &ipv6_hdr(skb)->saddr);
1257 if (neigh == NULL) { 1257 if (neigh == NULL) {
1258 ND_PRINTK0(KERN_ERR 1258 ND_PRINTK0(KERN_ERR
1259 "ICMPv6 RA: %s() got default router without neighbour.\n", 1259 "ICMPv6 RA: %s got default router without neighbour.\n",
1260 __func__); 1260 __func__);
1261 dst_release(&rt->dst); 1261 dst_release(&rt->dst);
1262 return; 1262 return;
@@ -1605,7 +1605,7 @@ void ndisc_send_redirect(struct sk_buff *skb, const struct in6_addr *target)
1605 1, &err); 1605 1, &err);
1606 if (buff == NULL) { 1606 if (buff == NULL) {
1607 ND_PRINTK0(KERN_ERR 1607 ND_PRINTK0(KERN_ERR
1608 "ICMPv6 Redirect: %s() failed to allocate an skb, err=%d.\n", 1608 "ICMPv6 Redirect: %s failed to allocate an skb, err=%d.\n",
1609 __func__, err); 1609 __func__, err);
1610 goto release; 1610 goto release;
1611 } 1611 }
@@ -1767,11 +1767,7 @@ static void ndisc_warn_deprecated_sysctl(struct ctl_table *ctl,
1767 static int warned; 1767 static int warned;
1768 if (strcmp(warncomm, current->comm) && warned < 5) { 1768 if (strcmp(warncomm, current->comm) && warned < 5) {
1769 strcpy(warncomm, current->comm); 1769 strcpy(warncomm, current->comm);
1770 printk(KERN_WARNING 1770 pr_warn("process `%s' is using deprecated sysctl (%s) net.ipv6.neigh.%s.%s - use net.ipv6.neigh.%s.%s_ms instead\n",
1771 "process `%s' is using deprecated sysctl (%s) "
1772 "net.ipv6.neigh.%s.%s; "
1773 "Use net.ipv6.neigh.%s.%s_ms "
1774 "instead.\n",
1775 warncomm, func, 1771 warncomm, func,
1776 dev_name, ctl->procname, 1772 dev_name, ctl->procname,
1777 dev_name, ctl->procname); 1773 dev_name, ctl->procname);