]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78ca173ba0d12dc3944e9e4a65a47ad5b4d83f7b
treee4b1cd2b81e190d1d75ddc22fd44643aec2d49bc
parent35ad91efa967d7ec1e400437409bc5181cd7f03e
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