Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToNetipAddr ¶
ToNetipAddr converts an IP in [4]uint32 representation to netip.Addr.
Types ¶
type Attribute ¶
type Attribute struct { MemInfo *MemInfo VegasInfo *VegasInfo Cong *string TOS *uint8 TClass *uint8 Shutdown *uint8 DCTCPInfo *DCTCPInfo Protocol *uint8 SKV6Only *uint8 Mark *uint32 BBRInfo *BBRInfo ClassID *uint32 CGroupID *uint64 SockOpt *SockOpt }
Attribute contains various elements
type Config ¶
type Config struct { // NetNS defines the network namespace NetNS int }
Config contains options for NETLINK_SOCK_DIAG
type Diag ¶
type Diag struct {
// contains filtered or unexported fields
}
Diag represents a netlink wrapper
type DiagMsg ¶
type DiagMsg struct { Famiy uint8 State uint8 Timer uint8 Retrans uint8 ID SockID Expires uint32 RQueue uint32 WQueue uint32 UID uint32 INode uint32 }
Based on inet_diag_msg
type InetDiagReqV2 ¶
type InetDiagReqV2 struct { Family uint8 Protocol uint8 Ext uint8 Pad uint8 States uint32 ID SockID }
Based on inet_diag_req_v2
type SockID ¶
type SockID struct { SPort uint16 // in network byte order, use Ntohs() for host byte order DPort uint16 // in network byte order, use Ntohs() for host byte order Src [4]uint32 // use ToNetipAddr() for netip.Addr representation Dst [4]uint32 // use ToNetipAddr() for netip.Addr representation If uint32 Cookie [2]uint32 }
Based on inet_diag_sockid
Click to show internal directories.
Click to hide internal directories.