Documentation
¶
Rendered for windows/amd64
Index ¶
- Constants
- func DwordToAddr(addr uint32) netip.Addr
- func DwordToPort(dword uint32) uint16
- func FindPid(network string, source netip.AddrPort) (uint32, error)
- func LoadEStats() error
- func LoadExtendedTable() error
- func SetPerTcp6ConnectionEStatsSendBuffer(row *MibTcp6Row, rw *TcpEstatsSendBuffRwV0) error
- func SetPerTcpConnectionEStatsSendBuffer(row *MibTcpRow, rw *TcpEstatsSendBuffRwV0) error
- func WriteAndWaitAck(ctx context.Context, conn net.Conn, payload []byte) error
- type MibTcp6Row
- type MibTcp6RowOwnerPid
- type MibTcp6Table
- type MibTcp6TableOwnerPid
- type MibTcpRow
- type MibTcpRowOwnerPid
- type MibTcpTable
- type MibTcpTableOwnerPid
- type MibUdp6RowOwnerPid
- type MibUdp6TableOwnerPid
- type MibUdpRowOwnerPid
- type MibUdpTableOwnerPid
- type TcpEstatsSendBuffRwV0
- type TcpEstatsSendBufferRodV0
- type TcpInfoV0
Constants ¶
View Source
const ( TcpTableBasicListener uint32 = iota TcpTableBasicConnections TcpTableBasicAll TcpTableOwnerPidListener TcpTableOwnerPidConnections TcpTableOwnerPidAll TcpTableOwnerModuleListener TcpTableOwnerModuleConnections TcpTableOwnerModuleAll )
View Source
const ( UdpTableBasic uint32 = iota UdpTableOwnerPid UdpTableOwnerModule )
View Source
const ( TcpConnectionEstatsSynOpts uint32 = iota TcpConnectionEstatsData TcpConnectionEstatsSndCong TcpConnectionEstatsPath TcpConnectionEstatsSendBuff TcpConnectionEstatsRec TcpConnectionEstatsObsRec TcpConnectionEstatsBandwidth TcpConnectionEstatsFineRtt TcpConnectionEstatsMaximum )
View Source
const SioTcpInfo = 0xD8000027
Variables ¶
This section is empty.
Functions ¶
func DwordToAddr ¶
func DwordToPort ¶
func LoadEStats ¶
func LoadEStats() error
func LoadExtendedTable ¶
func LoadExtendedTable() error
func SetPerTcp6ConnectionEStatsSendBuffer ¶
func SetPerTcp6ConnectionEStatsSendBuffer(row *MibTcp6Row, rw *TcpEstatsSendBuffRwV0) error
func SetPerTcpConnectionEStatsSendBuffer ¶
func SetPerTcpConnectionEStatsSendBuffer(row *MibTcpRow, rw *TcpEstatsSendBuffRwV0) error
Types ¶
type MibTcp6Row ¶
type MibTcp6Row struct {
State uint32
LocalAddr [16]byte
LocalScopeId uint32
LocalPort uint32
RemoteAddr [16]byte
RemoteScopeId uint32
RemotePort uint32
}
func GetTcp6Table ¶
func GetTcp6Table() ([]MibTcp6Row, error)
type MibTcp6RowOwnerPid ¶
type MibTcp6RowOwnerPid struct {
UcLocalAddr [16]byte
DwLocalScopeId uint32
DwLocalPort uint32
UcRemoteAddr [16]byte
DwRemoteScopeId uint32
DwRemotePort uint32
DwState uint32
DwOwningPid uint32
}
func GetExtendedTcp6Table ¶
func GetExtendedTcp6Table() ([]MibTcp6RowOwnerPid, error)
type MibTcp6Table ¶
type MibTcp6Table struct {
DwNumEntries uint32
Table [1]MibTcp6Row
}
type MibTcp6TableOwnerPid ¶
type MibTcp6TableOwnerPid struct {
DwNumEntries uint32
Table [1]MibTcp6RowOwnerPid
}
type MibTcpRow ¶
type MibTcpRow struct {
DwState uint32
DwLocalAddr uint32
DwLocalPort uint32
DwRemoteAddr uint32
DwRemotePort uint32
}
func GetTcpTable ¶
type MibTcpRowOwnerPid ¶
type MibTcpRowOwnerPid struct {
DwState uint32
DwLocalAddr uint32
DwLocalPort uint32
DwRemoteAddr uint32
DwRemotePort uint32
DwOwningPid uint32
}
func GetExtendedTcpTable ¶
func GetExtendedTcpTable() ([]MibTcpRowOwnerPid, error)
type MibTcpTable ¶
type MibTcpTableOwnerPid ¶
type MibTcpTableOwnerPid struct {
DwNumEntries uint32
Table [1]MibTcpRowOwnerPid
}
type MibUdp6RowOwnerPid ¶
type MibUdp6RowOwnerPid struct {
UcLocalAddr [16]byte
DwLocalScopeId uint32
DwLocalPort uint32
DwOwningPid uint32
}
func GetExtendedUdp6Table ¶
func GetExtendedUdp6Table() ([]MibUdp6RowOwnerPid, error)
type MibUdp6TableOwnerPid ¶
type MibUdp6TableOwnerPid struct {
DwNumEntries uint32
Table [1]MibUdp6RowOwnerPid
}
type MibUdpRowOwnerPid ¶
func GetExtendedUdpTable ¶
func GetExtendedUdpTable() ([]MibUdpRowOwnerPid, error)
type MibUdpTableOwnerPid ¶
type MibUdpTableOwnerPid struct {
DwNumEntries uint32
Table [1]MibUdpRowOwnerPid
}
type TcpEstatsSendBuffRwV0 ¶
type TcpEstatsSendBuffRwV0 struct {
EnableCollection bool
}
type TcpEstatsSendBufferRodV0 ¶
type TcpEstatsSendBufferRodV0 struct {
CurRetxQueue uint64
MaxRetxQueue uint64
CurAppWQueue uint64
MaxAppWQueue uint64
}
func GetPerTcp6ConnectionEStatsSendBuffer ¶
func GetPerTcp6ConnectionEStatsSendBuffer(row *MibTcp6Row) (*TcpEstatsSendBufferRodV0, error)
func GetPerTcpConnectionEStatsSendBuffer ¶
func GetPerTcpConnectionEStatsSendBuffer(row *MibTcpRow) (*TcpEstatsSendBufferRodV0, error)
type TcpInfoV0 ¶
type TcpInfoV0 struct {
State uint32
Mss uint32
ConnectionTimeMs uint64
TimestampsEnabled uint8
RttUs uint32
MinRttUs uint32
BytesInFlight uint32
Cwnd uint32
SndWnd uint32
RcvWnd uint32
RcvBuf uint32
BytesOut uint64
BytesIn uint64
BytesReordered uint32
BytesRetrans uint32
FastRetrans uint32
DupAcksIn uint32
TimeoutEpisodes uint32
SynRetrans uint8
}
func GetTcpInfo ¶
Click to show internal directories.
Click to hide internal directories.