Documentation ¶
Index ¶
- type Address
- type DataFlow
- type DataReflect
- type DataSocket
- type DateNetwork
- type ErrClosed
- type ErrLoaded
- type ErrNotLoad
- type ErrShutdown
- type Event
- type Flag
- type Flags
- func (f Flags) IPChecksum() bool
- func (f Flags) IPv6() bool
- func (f Flags) Impostor() bool
- func (f Flags) Loopback() bool
- func (f Flags) Outbound() bool
- func (f *Flags) SetIPChecksum(sum bool)
- func (f *Flags) SetIPv6(ipv6 bool)
- func (f *Flags) SetImpostor(impostor bool)
- func (f *Flags) SetLoopback(loop bool)
- func (f *Flags) SetOutbound(out bool)
- func (f *Flags) SetTCPChecksum(sum bool)
- func (f *Flags) SetUDPChecksum(sum bool)
- func (f Flags) Sniffed() bool
- func (f Flags) TCPChecksum() bool
- func (f Flags) UDPChecksum() bool
- type Layer
- type Mem
- type PARAM
- type Proto
- type Shutdown
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Timestamp int64 Layer // Packet's layer. Event // Packet event. // UINT32 Sniffed : 1; /* Packet was sniffed? */ // UINT32 Outbound : 1; /* Packet is outound? */ // UINT32 Loopback : 1; /* Packet is loopback? */ // UINT32 Impostor : 1; /* Packet is impostor? */ // UINT32 IPv6 : 1; /* Packet is IPv6? */ // UINT32 IPChecksum : 1; /* Packet has valid IPv4 checksum? */ // UINT32 TCPChecksum : 1; /* Packet has valid TCP checksum? */ // UINT32 UDPChecksum : 1; /* Packet has valid UDP checksum? */ Flags // contains filtered or unexported fields }
func (*Address) Network ¶
func (a *Address) Network() *DateNetwork
func (*Address) Reflect ¶
func (a *Address) Reflect() *DataReflect
func (*Address) Socket ¶
func (a *Address) Socket() *DataSocket
type DataFlow ¶
type DataFlow struct { EndpointId uint64 // Endpoint ID. ParentEndpointId uint64 // Parent endpoint ID. ProcessId uint32 // Process ID. LocalPort uint16 // Local port. RemotePort uint16 // Remote port. Protocol Proto // Protocol. // contains filtered or unexported fields }
func (*DataFlow) LocalAddrPort ¶
func (*DataFlow) RemoteAddr ¶
func (*DataFlow) RemoteAddrPort ¶
type DataReflect ¶
type DataSocket ¶
type DataSocket = DataFlow
type DateNetwork ¶
type ErrNotLoad ¶
type ErrNotLoad struct{}
func (ErrNotLoad) Error ¶
func (ErrNotLoad) Error() string
type ErrShutdown ¶
type ErrShutdown struct{}
func (ErrShutdown) Error ¶
func (ErrShutdown) Error() string
type Event ¶
type Event uint8
const ( NetworkPacket Event = iota /* Network packet. */ FlowEstablishd /* Flow established. */ FlowDeleted /* Flow deleted. */ SocketBind /* Socket bind. */ SocketConnect /* Socket connect. */ SocketListen /* Socket listen. */ SocketAccept /* Socket accept. */ SocketClose /* Socket close. */ ReflectOpen /* WinDivert handle opened. */ ReflectClose /* WinDivert handle closed. */ )
type Flags ¶
type Flags uint8
func (Flags) IPChecksum ¶
func (*Flags) SetIPChecksum ¶
func (*Flags) SetImpostor ¶
func (*Flags) SetLoopback ¶
func (*Flags) SetOutbound ¶
func (*Flags) SetTCPChecksum ¶
func (*Flags) SetUDPChecksum ¶
func (Flags) TCPChecksum ¶
func (Flags) UDPChecksum ¶
Click to show internal directories.
Click to hide internal directories.