Skip to content

Commit

Permalink
Register dnsobs in nmsg_base
Browse files Browse the repository at this point in the history
  • Loading branch information
cmikk committed Jun 6, 2023
1 parent 8aeee6e commit 435c054
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nmsg_base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ func (d *Dnstap) Unmarshal(b []byte) error {
return proto.Unmarshal(b, &d.Dnstap)
}

func (d *DnsObs) GetVid() uint32 { return 1 }
func (d *DnsObs) GetMsgtype() uint32 { return 14 }

func init() {
nmsg.Register(&Ncap{})
nmsg.Register(&Email{})
Expand All @@ -78,4 +81,5 @@ func init() {
nmsg.Register(&Encode{})
nmsg.Register(&Packet{})
nmsg.Register(&Dnstap{})
nmsg.Register(&DnsObs{})
}

0 comments on commit 435c054

Please sign in to comment.