Lines Matching refs:ss_state
166 char *ss_state = "UNKNOWN", buf[12]; in display_data() local
172 ss_state = state_label[state]; in display_data()
175 if (state == 1) ss_state = state_label[state]; in display_data()
176 else if (state == 7) ss_state = ""; in display_data()
178 else if (!strcmp(label, "raw")) sprintf(ss_state = buf, "%u", state); in display_data()
181 …xprintf("%3s %6d %6d %-51s %-51s %-12s%s\n", label, rxq, txq, lip, rip, ss_state, get_pid_name(i… in display_data()
183 xprintf("%3s %6d %6d %-51s %-51s %-12s\n", label, rxq, txq, lip, rip, ss_state); in display_data()
185 …xprintf("%3s %6d %6d %-23s %-23s %-12s%s\n", label, rxq, txq, lip, rip, ss_state, get_pid_name(i… in display_data()
186 else xprintf("%3s %6d %6d %-23s %-23s %-12s\n", label, rxq, txq, lip, rip, ss_state); in display_data()
345 … char *ss_state[] = { "FREE", "LISTENING", "CONNECTING", "CONNECTED", "DISCONNECTING", "UNKNOWN"}; in show_unix_sockets() local
351 sz = ARRAY_LEN(ss_state);//sizeof(ss_state)/sizeof(ss_state[0]); in show_unix_sockets()
352 if ((state < 0) || (state > sz-2)) sock_state = ss_state[sz-1]; in show_unix_sockets()
354 if (flags & SOCK_ACCEPTCON) sock_state = ss_state[state]; in show_unix_sockets()
356 } else sock_state = ss_state[state]; in show_unix_sockets()