ipv6: udp: make short packet logging consistent with ipv4
authorBjørn Mork <bjorn@mork.no>
Thu, 6 May 2010 03:44:35 +0000 (03:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 May 2010 04:50:17 +0000 (21:50 -0700)
commitd6bc0149d8f2300bffa03ea6fea3ca39744277a6
tree5f9ecb7150071515e2b7f6557229cb7100549e53
parent575400bf5d57f53a767bc215bd709e65e5b27a5c
ipv6: udp: make short packet logging consistent with ipv4

Adding addresses and ports to the short packet log message,
like ipv4/udp.c does it, makes these messages a lot more useful:

[  822.182450] UDPv6: short packet: From [2001:db8:ffb4:3::1]:47839 23715/178 to [2001:db8:ffb4:3:5054:ff:feff:200]:1234

This requires us to drop logging in case pskb_may_pull() fails,
which also is consistent with ipv4/udp.c

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp.c