1
0
Files
linux/include/uapi/linux
Xin Long 8f840e47f1 sctp: add the sctp_diag.c file
This one will implement all the interface of inet_diag, inet_diag_handler.
which includes sctp_diag_dump, sctp_diag_dump_one and sctp_diag_get_info.

It will work as a module, and register inet_diag_handler when loading.

v2->v3:
- fix the mistake in inet_assoc_attr_size().

- change inet_diag_msg_laddrs_fill() name to inet_diag_msg_sctpladdrs_fill.

- change inet_diag_msg_paddrs_fill() name to inet_diag_msg_sctpaddrs_fill.

- add inet_diag_msg_sctpinfo_fill() to make asoc/ep fill code clearer.

- add inet_diag_msg_sctpasoc_fill() to make asoc fill code clearer.

- merge inet_asoc_diag_fill() and inet_ep_diag_fill() to
  inet_sctp_diag_fill().

- call sctp_diag_get_info() directly, instead by handler, cause the caller
  is in the same file with it.

- call lock_sock in sctp_tsp_dump_one() to make sure we call get sctp info
  safely.

- after lock_sock(sk), we should check sk != assoc->base.sk.

- change mem[SK_MEMINFO_WMEM_ALLOC] to asoc->sndbuf_used for asoc dump when
  asoc->ep->sndbuf_policy is set. don't use INET_DIAG_MEMINFO attr any more.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-04-15 17:29:36 -04:00
..
2015-10-13 17:42:34 +02:00
2016-01-30 16:27:17 +00:00
2015-04-21 16:16:02 -04:00
2016-03-01 17:15:22 -05:00
2015-10-05 03:16:46 -07:00
2016-03-15 16:55:16 -07:00
2015-08-25 14:41:50 -05:00
2016-03-22 15:45:44 -04:00
2016-01-20 17:09:18 -08:00
2015-04-12 21:25:13 -04:00
2015-12-14 12:19:37 -06:00
2016-03-10 16:02:52 +07:00
2016-04-15 17:06:48 -04:00
2016-04-15 17:06:48 -04:00
2016-03-13 22:40:24 -04:00
2016-03-18 19:40:27 -04:00
2016-04-15 17:29:36 -04:00
2015-05-25 13:25:35 -04:00
2016-03-22 15:36:02 -07:00
2016-03-22 15:36:02 -07:00
2016-01-12 08:21:18 -07:00
2015-08-03 17:30:00 -07:00
2015-07-21 10:39:05 -07:00
2015-11-23 15:06:38 -05:00
2015-05-05 13:40:44 -06:00
2015-08-27 19:44:53 -04:00
2015-04-23 15:16:14 -04:00
2015-07-20 14:58:46 -04:00
2016-04-12 15:56:15 +02:00
2016-03-14 23:47:29 +01:00
2016-01-10 22:13:15 -05:00
2015-09-04 16:54:41 -07:00
2016-02-08 11:22:21 +11:00
2016-04-04 22:11:20 -04:00
2015-05-24 12:49:16 -07:00
2015-06-11 23:37:37 +02:00
2015-12-18 17:48:51 -08:00
2015-10-27 18:55:31 -07:00
2016-03-11 02:18:53 +02:00