mirror of
https://github.com/wader/fq.git
synced 2024-12-26 15:02:28 +03:00
f55b1af6ac
Also add tcp_stream and udp_payload to decode content
20 lines
372 B
Go
20 lines
372 B
Go
package dns
|
|
|
|
import (
|
|
"github.com/wader/fq/format"
|
|
"github.com/wader/fq/format/registry"
|
|
"github.com/wader/fq/pkg/decode"
|
|
)
|
|
|
|
func init() {
|
|
registry.MustRegister(decode.Format{
|
|
Name: format.DNS_TCP,
|
|
Description: "DNS packet (TCP)",
|
|
DecodeFn: dnsTCPDecode,
|
|
})
|
|
}
|
|
|
|
func dnsTCPDecode(d *decode.D, in interface{}) interface{} {
|
|
return dnsDecode(d, true)
|
|
}
|