netstat -nib -I igc0 --libxo json | jq '{ \
total: ([.statistics.interface[] | select(.network | startswith("<Link")) | ."received-bytes"][0] // 0), \
ipv4: ([.statistics.interface[] | select(.network | test("^[0-9]+\\.")) | ."received-bytes"] | add // 0), \
ipv6: ([.statistics.interface[] | select(.network | contains(":")) | ."received-bytes"] | add // 0) \
}'
results in{
"total": 23410011429,
"ipv4": 23001947,
"ipv6": 17767223
}
The total counter is correct, but not the v4/v6 counters, they are much to low!Quote from: HarveyEllis1 on August 03, 2026, 10:13:22 PMThere is a fix for this (force use of CDCE driver) - https://forums.freebsd.org/threads/ugreen-usb-hub-with-ethernet-adapter-asix-ax88179b-quirk.101459/