Documentation
¶
Index ¶
- type AddrFlow
- type AddrNetwork
- type AddrReflect
- type AddrSocket
- type Address
- 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 AddrFlow ¶
type AddrFlow 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 (*AddrFlow) LocalAddrPort ¶
func (*AddrFlow) RemoteAddr ¶
func (*AddrFlow) RemoteAddrPort ¶
type AddrNetwork ¶
type AddrReflect ¶
type AddrSocket ¶
type AddrSocket = AddrFlow
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() *AddrNetwork
func (*Address) Reflect ¶
func (a *Address) Reflect() *AddrReflect
func (*Address) Socket ¶
func (a *Address) Socket() *AddrSocket
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.