divert

package module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

README

Go bindings of WinDivert

forked from https://github.com/imgk/divert-go

Feature

  • Support WinDivert 2.x
  • Optional CGO support to remove dependence of WinDivert.dll, use -tags="divert_cgo"

More details about WinDivert please refer https://www.reqrypt.org/windivert-doc.html.

Modification

  • Add WinDivertHelperCalcChecksums
  • Remove build tag divert_embedded

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packet

type Packet struct {
	Raw   []byte
	Addr  *Address
	IpHdr header.IPHeader
	// contains filtered or unexported fields
}

func (*Packet) DstIP

func (p *Packet) DstIP() net.IP

Shortcut for IpHdr.DstIP()

func (*Packet) IpVersion

func (p *Packet) IpVersion() int

Shortcut for ipHdr.Version()

func (*Packet) SetDstIP

func (p *Packet) SetDstIP(ip net.IP)

Shortcut for IpHdr.SetDstIP()

func (*Packet) SetSrcIP

func (p *Packet) SetSrcIP(ip net.IP)

Shortcut for IpHdr.SetSrcIP()

func (*Packet) SrcIP

func (p *Packet) SrcIP() net.IP

Shortcut for IpHdr.SrcIP()

func (*Packet) String

func (p *Packet) String() string

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL