mirror of
https://github.com/soypat/lneto.git
synced 2026-09-12 09:39:31 +00:00
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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user