Files
android_kernel_xiaomi_sm8450/net
GhantaKrishnamurthy MohanKrishna c30b70deb5 tipc: implement socket diagnostics for AF_TIPC
This commit adds socket diagnostics capability for AF_TIPC in netlink
family NETLINK_SOCK_DIAG in a new kernel module (diag.ko).

The following are key design considerations:
- config TIPC_DIAG has default y, like INET_DIAG.
- only requests with flag NLM_F_DUMP is supported (dump all).
- tipc_sock_diag_req message is introduced to send filter parameters.
- the response attributes are of TLV, some nested.

To avoid exposing data structures between diag and tipc modules and
avoid code duplication, the following additions are required:
- export tipc_nl_sk_walk function to reuse socket iterator.
- export tipc_sk_fill_sock_diag to fill the tipc diag attributes.
- create a sock_diag response message in __tipc_add_sock_diag defined
  in diag.c and use the above exported tipc_sk_fill_sock_diag
  to fill response.

Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: GhantaKrishnamurthy MohanKrishna <mohan.krishna.ghanta.krishnamurthy@ericsson.com>
Signed-off-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-22 14:43:35 -04:00
..
2018-03-05 10:48:27 -05:00
2018-03-22 11:11:29 -04:00
2018-03-05 10:48:28 -05:00
2018-03-22 11:11:29 -04:00
2017-11-01 12:19:03 +09:00
2018-03-22 11:11:30 -04:00
2018-02-27 11:01:35 -05:00
2018-03-17 17:07:39 -04:00
2018-03-12 11:14:06 -04:00
2018-03-17 17:07:39 -04:00
2018-03-17 17:07:39 -04:00
2017-11-08 16:12:33 +09:00
2018-03-17 17:07:39 -04:00
2018-02-13 10:36:08 -05:00
2018-03-17 20:11:22 -04:00
2018-03-16 14:57:26 -04:00
2018-02-20 13:51:47 -05:00
2018-03-08 12:36:43 -05:00
2018-02-13 10:36:05 -05:00