Documentation ¶
Index ¶
- Constants
- func NewXPFPrivateRR() dns.PrivateRdata
- type Error
- type XPF
- type XPFPrivateRR
- func (rr *XPFPrivateRR) Copy(dest dns.PrivateRdata) error
- func (rr *XPFPrivateRR) Len() int
- func (rr *XPFPrivateRR) Pack(msg []byte) (off int, err error)
- func (rr *XPFPrivateRR) Parse(txt []string) (err error)
- func (rr *XPFPrivateRR) String() string
- func (rr *XPFPrivateRR) Unpack(msg []byte) (off int, err error)
Constants ¶
View Source
const DefaultTypeXPF uint16 = 65422
DefaultTypeXPF uses the default rrtype used in wireshark
View Source
const PluginName string = "xpf"
PluginName is the name of our plugin
Variables ¶
This section is empty.
Functions ¶
func NewXPFPrivateRR ¶
func NewXPFPrivateRR() dns.PrivateRdata
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error type for the xpf plugin
type XPF ¶
XPF type captures anything needed to append the XPF record to our queries
func (*XPF) OnShutdown ¶
OnShutdown handles any plugin specific startup logic
type XPFPrivateRR ¶
type XPFPrivateRR struct { IPVersion uint8 Protocol uint8 SrcAddress net.IP DestAddress net.IP SrcPort uint16 DestPort uint16 }
XPFPrivateRR type captures the data used to create the XPF record, in the form of a Private RR in CoreDNS
func (*XPFPrivateRR) Copy ¶
func (rr *XPFPrivateRR) Copy(dest dns.PrivateRdata) error
Copy the existing RR to a new RR
func (*XPFPrivateRR) Len ¶
func (rr *XPFPrivateRR) Len() int
func (*XPFPrivateRR) Parse ¶
func (rr *XPFPrivateRR) Parse(txt []string) (err error)
func (*XPFPrivateRR) String ¶
func (rr *XPFPrivateRR) String() string
Click to show internal directories.
Click to hide internal directories.