Lines Matching refs:count
30 struct socket_info *count = data->user_data; in walk_sockets() local
60 count->closed++; in walk_sockets()
65 count->opened++; in walk_sockets()
97 int *count = data->user_data; in walk_socket_services() local
128 (*count)++; in walk_socket_services()
137 struct socket_info count = { 0 }; in cmd_net_sockets() local
140 user_data.user_data = &count; in cmd_net_sockets()
152 if (count.opened == 0 && count.closed == 0) { in cmd_net_sockets()
155 if (count.opened > 0) { in cmd_net_sockets()
156 PR("\n%d active socket%s found.\n", count.opened, in cmd_net_sockets()
157 count.opened == 1 ? "" : "s"); in cmd_net_sockets()
160 if (count.closed > 0) { in cmd_net_sockets()
161 if (count.opened == 0) { in cmd_net_sockets()
165 PR("%d closed socket%s found.\n", count.closed, in cmd_net_sockets()
166 count.closed == 1 ? "" : "s"); in cmd_net_sockets()