utils

package
v0.0.0-...-7f4cfb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Deprecated. Unused -----------------------------------------

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseConnection

func CloseConnection(pid int64, laddr string, lport int64, raddr string, rport int64) (ok bool)

func CloseTCPEntry

func CloseTCPEntry(row *MIB_TCPROW2) error

func DoProcess

func DoProcess() bool

func GetExtendedTCPTable

func GetExtendedTCPTable() ([]structs.Connection, error)

func GetProcessNameMap

func GetProcessNameMap() map[uint32]string

Types

type ClassReader

type ClassReader struct {
	// contains filtered or unexported fields
}

func NewClassReader

func NewClassReader(bytecode []byte) *ClassReader

func (*ClassReader) ReadBytes

func (this *ClassReader) ReadBytes(len int) []byte

func (*ClassReader) ReadIp

func (this *ClassReader) ReadIp(bytes []byte) string

func (*ClassReader) ReadPort

func (this *ClassReader) ReadPort(bytes []byte) uint16

func (*ClassReader) ReadUint32

func (this *ClassReader) ReadUint32() uint32

type DWORD

type DWORD uint32

type MIB_TCPROW2

type MIB_TCPROW2 struct {
	// contains filtered or unexported fields
}

type MIB_TCPTABLE2

type MIB_TCPTABLE2 struct {
	// contains filtered or unexported fields
}

func GetTCPTable

func GetTCPTable() *MIB_TCPTABLE2

netstat -ano | findstr 202.89.233.104

func (*MIB_TCPTABLE2) String

func (t *MIB_TCPTABLE2) String() string

type TCP_CONNECTION_OFFLOAD_STATE

type TCP_CONNECTION_OFFLOAD_STATE uint32
const (
	TcpConnectionOffloadStateInHost     TCP_CONNECTION_OFFLOAD_STATE = 0
	TcpConnectionOffloadStateOffloading TCP_CONNECTION_OFFLOAD_STATE = 1
	TcpConnectionOffloadStateOffloaded  TCP_CONNECTION_OFFLOAD_STATE = 2
	TcpConnectionOffloadStateUploading  TCP_CONNECTION_OFFLOAD_STATE = 3
	TcpConnectionOffloadStateMax        TCP_CONNECTION_OFFLOAD_STATE = 4
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL