github.com/vishvananda/netlink@v1.3.0/unix_diag.go (about)

     1  package netlink
     2  
     3  // According to linux/include/uapi/linux/unix_diag.h
     4  const (
     5  	UNIX_DIAG_NAME = iota
     6  	UNIX_DIAG_VFS
     7  	UNIX_DIAG_PEER
     8  	UNIX_DIAG_ICONS
     9  	UNIX_DIAG_RQLEN
    10  	UNIX_DIAG_MEMINFO
    11  	UNIX_DIAG_SHUTDOWN
    12  	UNIX_DIAG_UID
    13  	UNIX_DIAG_MAX
    14  )
    15  
    16  type UnixDiagInfoResp struct {
    17  	DiagMsg  *UnixSocket
    18  	Name     *string
    19  	Peer     *uint32
    20  	Queue    *QueueInfo
    21  	Shutdown *uint8
    22  }
    23  
    24  type QueueInfo struct {
    25  	RQueue uint32
    26  	WQueue uint32
    27  }