Documentation ¶
Index ¶
Constants ¶
View Source
const VersionBugfix = 2
View Source
const VersionMajor = 0
View Source
const VersionMinor = 1
Variables ¶
View Source
var Version = fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionBugfix)
Functions ¶
This section is empty.
Types ¶
type New ¶
type New struct { IP net.IP Port uint16 PrivateKey *rsa.PrivateKey PublicKey *rsa.PublicKey ExtensionScripts extensionScripts.Scripts FirewallState *firewalltracker.State Replay *ReplayDetect }
type ReplayDetect ¶
type ReplayDetect struct { HashedPackets map[string]bool // contains filtered or unexported fields }
func (*ReplayDetect) Check ¶
func (rd *ReplayDetect) Check(packet []byte) error
Checks if the packet has already been sent by taking the SHA-256 hash of the packet and comparing it with all the received packets.
func (*ReplayDetect) Setup ¶
func (rd *ReplayDetect) Setup()
Click to show internal directories.
Click to hide internal directories.