1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 13:22:58 +03:00

dns: Rename isTCP to hasLengthHeader

This commit is contained in:
Mattias Wadman 2022-08-10 13:35:01 +02:00
parent 104f4a7926
commit c233215aba

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