summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ndisc.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-12-17 20:04:45 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-12-17 20:04:45 +0000
commitc613bbba6f39c8804f1f26e96fb68a117cc9e282 (patch)
tree85fbc24f26b61ce4e7a908d18952e3abc1f5cd10 /net/ipv6/ndisc.c
parentcd4348339c21f4a15c01f3f120e92b3224a0a7da (diff)
parent80eee6bca4069c48247005aa07cb5e8e86042aa3 (diff)
downloadkernel-crypto-c613bbba6f39c8804f1f26e96fb68a117cc9e282.tar.gz
kernel-crypto-c613bbba6f39c8804f1f26e96fb68a117cc9e282.tar.xz
kernel-crypto-c613bbba6f39c8804f1f26e96fb68a117cc9e282.zip
Merge branch 'mxc-pu-imxfb' of git://pasiphae.extern.pengutronix.de/git/imx/linux-2.6 into devel
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r--net/ipv6/ndisc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 172438320ee..d0f54d18e19 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -912,8 +912,13 @@ static void ndisc_recv_na(struct sk_buff *skb)
is invalid, but ndisc specs say nothing
about it. It could be misconfiguration, or
an smart proxy agent tries to help us :-)
+
+ We should not print the error if NA has been
+ received from loopback - it is just our own
+ unsolicited advertisement.
*/
- ND_PRINTK1(KERN_WARNING
+ if (skb->pkt_type != PACKET_LOOPBACK)
+ ND_PRINTK1(KERN_WARNING
"ICMPv6 NA: someone advertises our address on %s!\n",
ifp->idev->dev->name);
in6_ifa_put(ifp);