Lines Matching refs:tcp
36 #include <netinet/tcp.h>
55 static const char *TCP_PROTO = "tcp";
130 return generic_proc_open("PROC_NET_TCP", "net/tcp");
1174 printf("%-*s ", netid_width, "tcp");
1368 printf("%-*s ", netid_width, "tcp");
1621 /* Sigh... We have to parse /proc/net/tcp... */
2266 else if (strcmp(id, "TCP:") == 0)
2301 if (get_snmp_int("Tcp
2306 printf("TCP: %d (estab %d, closed %d, orphaned %d, synrecv %d, timewait %d/%d), ports %d\n",
2321 printf("TCP %-9d %-9d %-9d\n", s.tcp4_hashed+s.tcp6_hashed, s.tcp4_hashed, s.tcp6_hashed);
2349 " -i, --info show internal TCP information\n"
2355 " -t, --tcp display only TCP sockets\n"
2363 " QUERY := {all|inet|tcp|udp|raw|unix|packet|netlink}[,QUERY]\n"
2366 " FILTER := [ state TCP-STATE ] [ EXPRESSION ]\n"
2421 { "tcp", 0, 0, 't' },
2553 } else if (strcmp(p, "tcp") == 0) {
2713 fprintf(stderr, "ss: tcpdiag dump requested and no tcp in filter.\n");