Print this page
XXXX adding PID information to netstat output

@@ -247,5 +247,19 @@
 int
 list_is_empty(list_t *list)
 {
         return (list_empty(list));
 }
+
+uint64_t
+list_size(list_t *list)
+{
+        size_t sz = 0;
+        list_node_t *node;
+
+        node = &list->list_head;
+        while (node->list_next != &list->list_head) {
+                sz++;
+                node = node->list_next;
+        }
+        return (sz);
+}