X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=dropcount.sh;fp=dropcount.sh;h=5f15b5e6ab087f7e6cea34a2a686934aa0d7388f;hb=dc5a8c8f1d9227f4741a57dee92e326302ec062d;hp=541dd30529e090c6c9fbfc7ef6b1c9c09d85cb94;hpb=81e2215518fa76a2dc0dc88105550bf26c86c27b;p=flowspec-xdp diff --git a/dropcount.sh b/dropcount.sh index 541dd30..5f15b5e 100755 --- a/dropcount.sh +++ b/dropcount.sh @@ -17,7 +17,7 @@ fi CNT=0 } MAP_CONTENTS="$(bpftool map show | grep drop_cnt_map | awk '{ print $1 }' | tr -d ':' | while read IF; do - bpftool map dump id "$IF" + bpftool map dump id "$IF" | grep "bytes\|packets\|key" | grep -v '\(bytes\|packets\)": 0\(,\)*$' done)" echo "$MAP_CONTENTS" | { declare -a BYTES