Documentation
¶
Index ¶
- Constants
- type Packet
- func (p *Packet) FlipDirection()
- func (p *Packet) IsICMP() bool
- func (p *Packet) IsInboundDNS() bool
- func (p *Packet) IsLocalTraffic() bool
- func (p *Packet) IsOutboundDNS() bool
- func (p *Packet) IsUDPLooopback() bool
- func (p *Packet) ResolveDNS()
- func (p *Packet) ShouldLog() bool
- func (p *Packet) String() string
Constants ¶
View Source
const ( ActionDrop = 0 ActionAccept = 1 ActionRepeat = 4 ProtoTCP = "tcp" ProtoUDP = "udp" ProtoICMP = "icmp" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packet ¶
type Packet struct {
Proto string
Src string
SrcIP string
Dst string
DstIP string
SrcPort string
DstPort string
Id int
}
func (*Packet) FlipDirection ¶
func (p *Packet) FlipDirection()
func (*Packet) IsInboundDNS ¶
func (*Packet) IsLocalTraffic ¶
func (*Packet) IsOutboundDNS ¶
func (*Packet) IsUDPLooopback ¶
func (*Packet) ResolveDNS ¶
func (p *Packet) ResolveDNS()
Click to show internal directories.
Click to hide internal directories.