Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- Variables
- func GetDriverFileName() (string, error)
- func GetInterfaceIndex() (uint32, uint32, error)
- func InstallDriver() error
- func RegisterEventSource(sys string) error
- func RemoveDriver() error
- type Device
- type PacketFilter
- func (d *PacketFilter) CheckIPv4(b []byte) bool
- func (d *PacketFilter) CheckIPv6(b []byte) bool
- func (d *PacketFilter) CheckTCP4ByPID(b []byte) bool
- func (d *PacketFilter) CheckTCP6ByPID(b []byte) bool
- func (d *PacketFilter) CheckUDP4ByPID(b []byte) bool
- func (d *PacketFilter) CheckUDP6ByPID(b []byte) bool
Constants ¶
View Source
const ( // ProtoTCP is ... ProtoTCP = 6 // ProtoUDP is ... ProtoUDP = 17 )
View Source
const ( // FIN is ... FIN = 1 << 0 // SYN is ... SYN = 1 << 1 )
Variables ¶
View Source
var ( // SysFilePath is ... SysFilePath = "" // DllFilePath is ... DllFilePath = "" )
Functions ¶
Types ¶
type Device ¶
type Device struct { // Address is ... Address *divert.Address // Handle is ... Handle *divert.Handle // Filter is ... Filter *PacketFilter // Pipe is ... Pipe struct { // PipeReader is ... *io.PipeReader // PipeWriter is ... *io.PipeWriter // Event is ... Event chan struct{} } // contains filtered or unexported fields }
Device is ...
type PacketFilter ¶
type PacketFilter struct { // AppFilter is ... AppFilter *filter.AppFilter // IPFilter is ... IPFilter *filter.IPFilter // Hijack is ... Hijack bool // TCP4Table is ... TCP4Table []uint8 // UDP4Table is ... UDP4Table []uint8 // TCP6Table is ... TCP6Table []uint8 // UDP6Table is ... UDP6Table []uint8 // contains filtered or unexported fields }
PacketFilter is ...
func (*PacketFilter) CheckTCP4ByPID ¶
func (d *PacketFilter) CheckTCP4ByPID(b []byte) bool
CheckTCP4ByPID is ...
func (*PacketFilter) CheckTCP6ByPID ¶
func (d *PacketFilter) CheckTCP6ByPID(b []byte) bool
CheckTCP6ByPID is ...
func (*PacketFilter) CheckUDP4ByPID ¶
func (d *PacketFilter) CheckUDP4ByPID(b []byte) bool
CheckUDP4ByPID is ...
func (*PacketFilter) CheckUDP6ByPID ¶
func (d *PacketFilter) CheckUDP6ByPID(b []byte) bool
CheckUDP6ByPID is ...
Click to show internal directories.
Click to hide internal directories.