Maybe it would be better to use netlink info (for ss command)rather than a /proc/net interface.See how existing TCP values and MEMINFO are handled.