sctp: export some functions for sctp_diag in inet_diag
authorXin Long <lucien.xin@gmail.com>
Thu, 14 Apr 2016 07:35:32 +0000 (15:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2016 21:29:36 +0000 (17:29 -0400)
commitcb2050a7b8131a9a9f3f97276df1feaae8987dc8
treef79ff0f83cf164245f5312bafc30ce933e04b99c
parent626d16f50f39bb9c44f98fd256cae2b864900a01
sctp: export some functions for sctp_diag in inet_diag

inet_diag_msg_common_fill is used to fill the diag msg common info,
we need to use it in sctp_diag as well, so export it.

inet_diag_msg_attrs_fill is used to fill some common attrs info between
sctp diag and tcp diag.

v2->v3:
- do not need to define and export inet_diag_get_handler any more.
  cause all the functions in it are in sctp_diag.ko, we just call
  them in sctp_diag.ko.

- add inet_diag_msg_attrs_fill to make codes clear.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_diag.c