using KERN_ERR in IPv6
From: Leisner, Martin <hidden>
Date: 2009-01-14 21:54:04
We're using 2.6.20 (but its also in 2.6.28).
In ipv6/ndisc.c:ndisc_router_discover() (cut and pasted from 2.6.20)
if (rt == NULL && lifetime) {
ND_PRINTK3(KERN_DEBUG
"ICMPv6 RA: adding default router.\n");
rt = rt6_add_dflt_router(&skb->nh.ipv6h->saddr,
skb->dev, pref);
if (rt == NULL) {
ND_PRINTK0(KERN_ERR
"ICMPv6 RA: %s() failed to add
default route.\n",
__FUNCTION__);
in6_dev_put(in6_dev);
return;
}
neigh = rt->rt6i_nexthop;
if (neigh == NULL) {
ND_PRINTK0(KERN_ERR
"ICMPv6 RA: %s() got default router
without neighbour.\n",
__FUNCTION__);
dst_release(&rt->u.dst);
in6_dev_put(in6_dev);
return;
}
My understanding is when running again a Microsoft 2003 server, it has a
bug which excites the message "failed to add default route" which is
normally echoed to the console which is quite cumbersome.
With Microsoft 2007 servers, the problem goes away.
But why would a protocol problem be a KERN_ERR (maybe KERN_INFO?)
Comments?
marty