mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
c30b70deb5
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>
22 lines
513 B
Makefile
22 lines
513 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the Linux TIPC layer
|
|
#
|
|
|
|
obj-$(CONFIG_TIPC) := tipc.o
|
|
|
|
tipc-y += addr.o bcast.o bearer.o \
|
|
core.o link.o discover.o msg.o \
|
|
name_distr.o subscr.o monitor.o name_table.o net.o \
|
|
netlink.o netlink_compat.o node.o socket.o eth_media.o \
|
|
topsrv.o socket.o group.o
|
|
|
|
tipc-$(CONFIG_TIPC_MEDIA_UDP) += udp_media.o
|
|
tipc-$(CONFIG_TIPC_MEDIA_IB) += ib_media.o
|
|
tipc-$(CONFIG_SYSCTL) += sysctl.o
|
|
|
|
|
|
obj-$(CONFIG_TIPC_DIAG) += diag.o
|
|
|
|
tipc_diag-y := diag.o
|