1
1
mirror of https://github.com/wader/fq.git synced 2024-11-24 11:16:09 +03:00

Merge pull request #367 from wader/dns-rename-istcp-haslengthheader

dns: Rename isTCP to hasLengthHeader
This commit is contained in:
Mattias Wadman 2022-08-10 14:01:24 +02:00 committed by GitHub
commit 9f8209e38b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,10 +222,10 @@ func dnsDecodeRR(d *decode.D, pointerOffset int64, resp bool, count uint64, name
})
}
func dnsDecode(d *decode.D, isTCP bool) any {
func dnsDecode(d *decode.D, hasLengthHeader bool) any {
pointerOffset := int64(0)
d.FieldStruct("header", func(d *decode.D) {
if isTCP {
if hasLengthHeader {
pointerOffset = 16
d.FieldU16("length")
}