Documentation ¶
Index ¶
- Constants
- type Config
- type Diverter
- func (d *Diverter) GetParam(param ffi.Param) (value uint64, err error)
- func (d *Diverter) Handle() uintptr
- func (d *Diverter) LibraryReference() *ffi.LibraryReference
- func (d *Diverter) RecvChan() <-chan *ffi.Packet
- func (d *Diverter) SendChan() chan<- *ffi.Packet
- func (d *Diverter) SetParam(param ffi.Param, value uint64) (err error)
- func (d *Diverter) Start() (err error)
- func (d *Diverter) Stop() (err error)
- func (d *Diverter) Terminate() (err error)
Constants ¶
View Source
const DefaultDLLPath = "WinDivert.dll"
View Source
const DefaultFilter = ffi2.Filter("true")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DLLPath string Filter ffi2.Filter Layer ffi2.Layer Priority ffi2.Priority Flag ffi2.Flag SendChanSize uint RecvChanSize uint ReceiveBufferSize uint }
type Diverter ¶
type Diverter struct {
// contains filtered or unexported fields
}
func (*Diverter) LibraryReference ¶
func (d *Diverter) LibraryReference() *ffi.LibraryReference
Click to show internal directories.
Click to hide internal directories.