Skip to content

Commit 5cb87ee

Browse files
author
Leonardo Parente
authored
Fix dns wire pkts on CLI (#424)
1 parent f24b57b commit 5cb87ee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

golang/internal/ui/header.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ func (u *ui) updateHeader(v *gocui.View, window5m *client.StatSnapshot) {
7878
)
7979
dnsc := window5m.DNS.WirePackets
8080
_, _ = fmt.Fprintf(v, "DNS Wire Pkts %d/%d | Rates Total %d/s %d/%d/%d/%d | UDP %d (%3.1f%%) | TCP %d (%3.1f%%) | IPv4 %d (%3.1f%%) | IPv6 %d (%3.1f%%) | Query %d (%3.1f%%) | Response %d (%3.1f%%)\n",
81-
dnsc.Total-dnsc.Filtered,
8281
dnsc.Total,
82+
dnsc.Events,
8383
window5m.DNS.Rates.Total.Live,
8484
window5m.DNS.Rates.Total.P50,
8585
window5m.DNS.Rates.Total.P90,

golang/pkg/client/types.go

+2
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ type FlowPayload struct {
192192
PayloadSize Quantiles `mapstructure:"payload_size"`
193193
TCP int64 `mapstructure:"tcp"`
194194
UDP int64 `mapstructure:"udp"`
195+
TopGeoLoc []NameCount `mapstructure:"top_geoLoc"`
196+
TopASN []NameCount `mapstructure:"top_asn"`
195197
TopDstIpsAndPortBytes []NameCount `mapstructure:"top_dst_ips_and_port_bytes"`
196198
TopDstIpsAndPortPackets []NameCount `mapstructure:"top_dst_ips_and_port_packets"`
197199
TopDstIpsBytes []NameCount `mapstructure:"top_dst_ips_bytes"`

0 commit comments

Comments
 (0)