mirror of
https://github.com/soypat/lneto.git
synced 2026-08-20 22:49:11 +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:
@@ -346,6 +346,8 @@ func (r *Resource) Reset() {
|
||||
r.data = r.data[:0]
|
||||
}
|
||||
|
||||
func (r *Resource) Header() ResourceHeader { return r.header }
|
||||
|
||||
func (r *Resource) RawData() []byte {
|
||||
length := r.header.Length
|
||||
if int(length) > len(r.data) {
|
||||
|
||||
Reference in New Issue
Block a user