1
1
mirror of https://github.com/wader/fq.git synced 2024-11-24 11:16:09 +03:00
fq/format/dns/dns_tcp.go
Mattias Wadman f55b1af6ac inet: Add tcp and ipv4 reassembly
Also add tcp_stream and udp_payload to decode content
2021-11-29 18:42:18 +01:00

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)
}