Add DNS support to pcap (#100)

* begin adding dns pcap functionality

* improve question formatting

* work on capturing answers as well

* finalize DNS printing

* increase subfield limits

* add FlagContainer type

* prettier DNS printing
This commit is contained in:
Pat Whittingslow
2026-04-24 19:41:10 -03:00
committed by GitHub
parent b2c3d11c4c
commit 198db3789b
8 changed files with 401 additions and 23 deletions
+3 -1
View File
@@ -6,6 +6,8 @@ import (
"github.com/soypat/lneto"
)
//go:generate stringer -type=Type,CodeDestinationUnreachable,CodeRedirect -linecomment -output stringers.go
const (
sizeHeader = 8
)
@@ -33,7 +35,7 @@ const (
type CodeTimeExceeded uint8
const (
CodeExceededInTransit CodeTimeExceeded = iota // TTL exceeded in transit
CodeExceededInTransit CodeTimeExceeded = iota // TTL exceeded
CodeFragmentReassembly // fragment reassembly time exceeded
)