Documentation ¶
Index ¶
Constants ¶
View Source
const ( InetDiagReqV2Len = 56 NlInetDiagReqV2MsgLen = 72 // includes netlink header NlInetDiagMsgLen = 72 )
View Source
const SOCK_DIAG_BY_FAMILY = 20
Variables ¶
View Source
var InetMsgLenError = errors.New("inet: invalid msg length")
Functions ¶
func NewInetNetlinkMsg ¶
func NewInetNetlinkMsg(nlHeader unix.NlMsghdr, inetHeader InetDiagReqV2) ([]byte, error)
func SerializeInetDiagReqV2 ¶
func SerializeInetDiagReqV2(req InetDiagReqV2) ([]byte, error)
Types ¶
type InetDiagMsg ¶
type InetDiagMsg struct { Family uint8 State uint8 Timer uint8 Retrans uint8 ID InetDiagSockID Expires uint32 RQueue uint32 WQueue uint32 UID uint32 Inode uint32 }
func DeserializeInetDiagMsg ¶
func DeserializeInetDiagMsg(data []byte) (*InetDiagMsg, error)
type InetDiagReqV2 ¶
Click to show internal directories.
Click to hide internal directories.