Versions in this module Expand all Collapse all v1 v1.1.2 Dec 9, 2020 Changes in this version + const AllTCPStates — linux/amd64 + const INET_DIAG_CONG — linux/amd64 + const INET_DIAG_DCTCPINFO — linux/amd64 + const INET_DIAG_INFO — linux/amd64 + const INET_DIAG_LOCALS — linux/amd64 + const INET_DIAG_MARK — linux/amd64 + const INET_DIAG_MEMINFO — linux/amd64 + const INET_DIAG_NONE — linux/amd64 + const INET_DIAG_PAD — linux/amd64 + const INET_DIAG_PEERS — linux/amd64 + const INET_DIAG_PROTOCOL — linux/amd64 + const INET_DIAG_SHUTDOWN — linux/amd64 + const INET_DIAG_SKMEMINFO — linux/amd64 + const INET_DIAG_SKV6ONLY — linux/amd64 + const INET_DIAG_TCLASS — linux/amd64 + const INET_DIAG_TOS — linux/amd64 + const INET_DIAG_VEGASINFO — linux/amd64 + const SOCK_DIAG_BY_FAMILY — linux/amd64 + const TCPDIAG_GETSOCK — linux/amd64 + func GetClockTicks() int + func NewInetDiagReq() syscall.NetlinkMessage — linux/amd64 + func NewInetDiagReqV2(af AddressFamily) syscall.NetlinkMessage — linux/amd64 + func ParseNetlinkError(netlinkData []byte) error — linux/amd64 + type AddressFamily uint8 — linux/amd64 + const AF_INET + const AF_INET6 + func (af AddressFamily) String() string + type InetDiagMsg struct — linux/amd64 + Expires uint32 + Family uint8 + ID InetDiagSockID + Inode uint32 + RQueue uint32 + Retrans uint8 + State uint8 + Timer uint8 + UID uint32 + WQueue uint32 + func NetlinkInetDiag(request syscall.NetlinkMessage) ([]*InetDiagMsg, error) + func NetlinkInetDiagWithBuf(request syscall.NetlinkMessage, readBuf []byte, resp io.Writer) ([]*InetDiagMsg, error) + func ParseInetDiagMsg(b []byte) (*InetDiagMsg, error) + func (m *InetDiagMsg) FastHash() uint64 + func (m InetDiagMsg) DstIP() net.IP + func (m InetDiagMsg) DstPort() int + func (m InetDiagMsg) SrcIP() net.IP + func (m InetDiagMsg) SrcPort() int + type InetDiagReq struct — linux/amd64 + DBs uint32 + DstLen uint8 + Ext uint8 + Family uint8 + ID InetDiagSockID + SrcLen uint8 + States uint32 + type InetDiagReqV2 struct — linux/amd64 + Ext uint8 + Family uint8 + ID InetDiagSockID + Pad uint8 + Protocol uint8 + States uint32 + type InetDiagSockID struct — linux/amd64 + Cookie [2]uint32 + DPort [2]byte + Dst [16]byte + If uint32 + SPort [2]byte + Src [16]byte + type NetlinkErrno uint32 — linux/amd64 + const NLE_AF_MISMATCH + const NLE_AF_NOSUPPORT + const NLE_AGAIN + const NLE_ATTRSIZE + const NLE_BAD_SOCK + const NLE_BUSY + const NLE_DUMP_INTR + const NLE_EXIST + const NLE_FAILURE + const NLE_IMMUTABLE + const NLE_INTR + const NLE_INVAL + const NLE_MISSING_ATTR + const NLE_MSGSIZE + const NLE_MSGTYPE_NOSUPPORT + const NLE_MSG_OVERFLOW + const NLE_MSG_TOOSHORT + const NLE_MSG_TRUNC + const NLE_NOACCESS + const NLE_NOADDR + const NLE_NOATTR + const NLE_NOCACHE + const NLE_NODEV + const NLE_NOMEM + const NLE_OBJ_MISMATCH + const NLE_OBJ_NOTFOUND + const NLE_OPNOTSUPP + const NLE_PARSE_ERR + const NLE_PERM + const NLE_PKTLOC_FILE + const NLE_PROTO_MISMATCH + const NLE_RANGE + const NLE_SEQ_MISMATCH + const NLE_SRCRT_NOSUPPORT + const NLE_SUCCESS + func (e NetlinkErrno) Error() string + type TCPState uint8 — linux/amd64 + const TCP_CLOSE + const TCP_CLOSE_WAIT + const TCP_CLOSING + const TCP_ESTABLISHED + const TCP_FIN_WAIT1 + const TCP_FIN_WAIT2 + const TCP_LAST_ACK + const TCP_LISTEN + const TCP_SYN_RECV + const TCP_SYN_SENT + const TCP_TIME_WAIT + func (s TCPState) String() string