Documentation ¶
Index ¶
- type Packet
- func (pkt *Packet) Accept() error
- func (pkt *Packet) Block() error
- func (pkt *Packet) Drop() error
- func (pkt *Packet) PermanentAccept() error
- func (pkt *Packet) PermanentBlock() error
- func (pkt *Packet) PermanentDrop() error
- func (pkt *Packet) RerouteToNameserver() error
- func (pkt *Packet) RerouteToTunnel() error
- type WinDivert
- func (wd *WinDivert) Close() error
- func (wd *WinDivert) GetParam(param uintptr) (uint64, error)
- func (wd *WinDivert) HelperCalcChecksums(packetData []byte, address *WinDivertAddress, flags uintptr) error
- func (wd *WinDivert) Open(filter string) error
- func (wd *WinDivert) Packets(packets chan packet.Packet) error
- func (wd *WinDivert) Recv() ([]byte, *WinDivertAddress, error)
- func (wd *WinDivert) Send(packetData []byte, address *WinDivertAddress) error
- func (wd *WinDivert) SetParam(param, value uintptr) error
- type WinDivertAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packet ¶
type Packet struct { packet.PacketBase // contains filtered or unexported fields }
func (*Packet) PermanentAccept ¶
func (*Packet) PermanentBlock ¶
func (*Packet) PermanentDrop ¶
func (*Packet) RerouteToNameserver ¶
func (*Packet) RerouteToTunnel ¶
type WinDivert ¶
type WinDivert struct {
// contains filtered or unexported fields
}
func (*WinDivert) HelperCalcChecksums ¶
func (wd *WinDivert) HelperCalcChecksums(packetData []byte, address *WinDivertAddress, flags uintptr) error
type WinDivertAddress ¶
type WinDivertAddress struct { Timestamp int64 /* Packet's timestamp. */ IfIdx uint32 /* Packet's interface index. */ SubIfIdx uint32 /* Packet's sub-interface index. */ Direction uint8 /* Packet's direction. */ Loopback uint8 /* Packet is loopback? */ Impostor uint8 /* Packet is impostor? */ PseudoIPChecksum uint8 /* Packet has pseudo IPv4 checksum? */ PseudoTCPChecksum uint8 /* Packet has pseudo TCP checksum? */ PseudoUDPChecksum uint8 /* Packet has pseudo UDP checksum? */ Reserved uint8 }
copied from windivert.h
Click to show internal directories.
Click to hide internal directories.