inet_diag: Switch the _dump to work with new header
authorPavel Emelyanov <xemul@parallels.com>
Tue, 6 Dec 2011 07:58:58 +0000 (07:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2011 18:58:02 +0000 (13:58 -0500)
commit25c4cd2b6dfd8e3d8efd8e85f167b66c032b80d9
treee6942bb7b75eaa09867597f1efc9168626672342
parentfe50ce284616c3131e353ff7158002aa47a41a81
inet_diag: Switch the _dump to work with new header

Make inet_diag_dumo work with given header instead of calculating
one from the nl message.

The SOCK_DIAG_BY_FAMILY just passes skb's one through, the compat code
converts the old header to new one.

Also fix the bytecode calculation to find one at proper offset.

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