I am familiar with different tools (like netstat, tcpdump, etc.) and files (like /sys/class/net/<dev>/statistics
) with which we can get the count.
But can anyone tell me if there is a way of getting that information directly from the kernel, using netlink sockets?