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:
parent
104f4a7926
commit
c233215aba
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user