]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: export some apis or variables for sctp_diag and reuse some for proc
authorXin Long <lucien.xin@gmail.com>
Thu, 14 Apr 2016 07:35:31 +0000 (15:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2016 21:29:36 +0000 (17:29 -0400)
commitd6325af463094597f3db77e5e1975117bbd0582e
tree6855fdeabf704f43f1905ce81d25835bdfe838a6
parent003d83a27abd5e1fb42f0b62703c8ce14511ecf2
sctp: export some apis or variables for sctp_diag and reuse some for proc

For some main variables in sctp.ko, we couldn't export it to other modules,
so we have to define some api to access them.

It will include sctp transport and endpoint's traversal.

There are some transport traversal functions for sctp_diag, we can also
use it for sctp_proc. cause they have the similar situation to traversal
transport.

v2->v3:
- rhashtable_walk_init need the parameter gfp, because of recent upstrem
  update

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sctp.h
net/sctp/proc.c
net/sctp/socket.c