xref: /linux/include/uapi/linux/tipc_sockets_diag.h (revision c13aca79ff3c4af5fd31a5b2743a90eba6e36a26)
1*c30b70deSGhantaKrishnamurthy MohanKrishna /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*c30b70deSGhantaKrishnamurthy MohanKrishna /* AF_TIPC sock_diag interface for querying open sockets */
3*c30b70deSGhantaKrishnamurthy MohanKrishna 
4*c30b70deSGhantaKrishnamurthy MohanKrishna #ifndef _UAPI__TIPC_SOCKETS_DIAG_H__
5*c30b70deSGhantaKrishnamurthy MohanKrishna #define _UAPI__TIPC_SOCKETS_DIAG_H__
6*c30b70deSGhantaKrishnamurthy MohanKrishna 
7*c30b70deSGhantaKrishnamurthy MohanKrishna #include <linux/types.h>
8*c30b70deSGhantaKrishnamurthy MohanKrishna #include <linux/sock_diag.h>
9*c30b70deSGhantaKrishnamurthy MohanKrishna 
10*c30b70deSGhantaKrishnamurthy MohanKrishna /* Request */
11*c30b70deSGhantaKrishnamurthy MohanKrishna struct tipc_sock_diag_req {
12*c30b70deSGhantaKrishnamurthy MohanKrishna 	__u8	sdiag_family;	/* must be AF_TIPC */
13*c30b70deSGhantaKrishnamurthy MohanKrishna 	__u8	sdiag_protocol;	/* must be 0 */
14*c30b70deSGhantaKrishnamurthy MohanKrishna 	__u16	pad;		/* must be 0 */
15*c30b70deSGhantaKrishnamurthy MohanKrishna 	__u32	tidiag_states;	/* query*/
16*c30b70deSGhantaKrishnamurthy MohanKrishna };
17*c30b70deSGhantaKrishnamurthy MohanKrishna #endif /* _UAPI__TIPC_SOCKETS_DIAG_H__ */
18