inet_diag: Cleanup type2proto last user
authorPavel Emelyanov <xemul@parallels.com>
Tue, 6 Dec 2011 07:59:32 +0000 (07:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2011 18:58:02 +0000 (13:58 -0500)
commita029fe26b67f815eddd432d9e702b9f2edbc2535
treee4b1cd2b81e190d1d75ddc22fd44643aec2d49bc
parentd23deaa07b9b788e781a2253672cdc8b65b85e53
inet_diag: Cleanup type2proto last user

Now all the code works with sock_diag_req-compatible structs, so it's
possible to stop using the inet_diag_type2proto in inet_csk_diag_fill.
Pass the inet_diag_req into it and use the sdiag_protocol field. At the
same time remove the explicit ext argument, since it's also on the req.

However, this conversion is still required in _compat code, so just move
this routine, not remove.

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