package
0.11.0
Repository: https://github.com/oxidecomputer/gosigar.git
Documentation: pkg.go.dev

# Functions

GetClockTicks returns the number of click ticks in one jiffie.
NetlinkInetDiag sends the given netlink request parses the responses with the assumption that they are inet_diag_msgs.
NetlinkInetDiagWithBuf sends the given netlink request parses the responses with the assumption that they are inet_diag_msgs.
NewInetDiagReq returns a new NetlinkMessage whose payload is an InetDiagReq.
NewInetDiagReqV2 returns a new NetlinkMessage whose payload is an InetDiagReqV2.
ParseInetDiagMsg parse an InetDiagMsg from a byte slice.
ParseNetlinkError parses the errno from the data section of a syscall.NetlinkMessage.

# Constants

https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/linux/socket.h#L159.
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/linux/socket.h#L159.
AllTCPStates is a flag to request all sockets in any TCP state.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
response attribute only */.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Extensions that can be used in the InetDiagReqV2 request to ask for additional data.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
Netlink error codes.
SOCK_DIAG_BY_FAMILY is the netlink message type for requestion socket diag data by family.
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/net/tcp_states.h#L16.
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/net/tcp_states.h#L16.
Now a valid state */.
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/net/tcp_states.h#L16.
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/net/tcp_states.h#L16.
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/net/tcp_states.h#L16.
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/net/tcp_states.h#L16.
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/net/tcp_states.h#L16.
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/net/tcp_states.h#L16.
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/net/tcp_states.h#L16.
https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/include/net/tcp_states.h#L16.
TCPDIAG_GETSOCK is the netlink message type for requesting TCP diag data.

# Structs

InetDiagMsg (inet_diag_msg) is the base info structure.
InetDiagReq (inet_diag_req) is used to request diagnostic data from older kernels.
InetDiagReqV2 (inet_diag_req_v2) is used to request diagnostic data.
InetDiagSockID (inet_diag_sockid) contains the socket identity.

# Type aliases

AddressFamily is the address family of the socket.
NetlinkErrno represent the error code contained in a netlink message of type NLMSG_ERROR.
TCPState represents the state of a TCP connection.