Don't duplicate work, the info is available, via netlink socket dumping. See net/ipv4/tcp_diag.c - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html