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:
commit
9f8209e38b
@ -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