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 = ffi.Filter("true")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DLLPath string Filter ffi.Filter Layer ffi.Layer Priority ffi.Priority Flag ffi.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.