inet_diag: Export inet diag cookie checking routine
authorPavel Emelyanov <xemul@parallels.com>
Fri, 9 Dec 2011 06:21:53 +0000 (06:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2011 19:14:08 +0000 (14:14 -0500)
commitb005ab4ef8805dc4604848c9d2ccca9d71f8fc46
treec0a057c74dae2fbcc3118a69b0ca3ed5504d3029
parent87c22ea52e1bb467f58b3e9a71509fccb70c7bd3
inet_diag: Export inet diag cookie checking routine

The netlink diag susbsys stores sk address bits in the nl message
as a "cookie" and uses one when dumps details about particular
socket.

The same will be required for udp diag module, so introduce a heler
in inet_diag module

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inet_diag.h
net/ipv4/inet_diag.c