Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPFromAddr ¶ added in v0.7.7
IPFromAddr extracts or parses the IP address contained in the given address.
func IsValidFqdn ¶
IsValidFqdn returns whether the given string is a valid fqdn.
Types ¶
type IPScope ¶ added in v0.6.7
type IPScope int8
IPScope is the scope of the IP address.
const ( Invalid IPScope = iota - 1 Undefined HostLocal LinkLocal SiteLocal Global LocalMulticast GlobalMulticast )
Defined IP Scopes.
func ClassifyIP ¶
ClassifyIP returns the network scope of the given IP address. Deprecated: Please use the new GetIPScope instead.
func GetIPScope ¶ added in v0.6.7
GetIPScope returns the network scope of the given IP address.
func (IPScope) IsLocalhost ¶ added in v0.6.7
IsLocalhost returns whether the IP refers to the host itself.
type SimpleStreamAssembler ¶
SimpleStreamAssembler is a simple assembler for github.com/google/gopacket/tcpassembly
func NewSimpleStreamAssembler ¶
func NewSimpleStreamAssembler() *SimpleStreamAssembler
NewSimpleStreamAssembler returns a new SimpleStreamAssembler.
func (*SimpleStreamAssembler) Reassembled ¶
func (a *SimpleStreamAssembler) Reassembled(reassembly []tcpassembly.Reassembly)
Reassembled implements tcpassembly.Stream's Reassembled function.
func (*SimpleStreamAssembler) ReassemblyComplete ¶
func (a *SimpleStreamAssembler) ReassemblyComplete()
ReassemblyComplete implements tcpassembly.Stream's ReassemblyComplete function.
type SimpleStreamAssemblerManager ¶
type SimpleStreamAssemblerManager struct { InitLock sync.Mutex // contains filtered or unexported fields }
SimpleStreamAssemblerManager is a simple manager for github.com/google/gopacket/tcpassembly
func (*SimpleStreamAssemblerManager) GetLastAssembler ¶
func (m *SimpleStreamAssemblerManager) GetLastAssembler() *SimpleStreamAssembler
GetLastAssembler returns the newest created stream assembler.
func (*SimpleStreamAssemblerManager) New ¶
func (m *SimpleStreamAssemblerManager) New(net, transport gopacket.Flow) tcpassembly.Stream
New returns a new stream assembler.