Lines Matching refs:seq
51 static int sockstat_seq_show(struct seq_file *seq, void *v) in sockstat_seq_show() argument
53 struct net *net = seq->private; in sockstat_seq_show()
59 socket_seq_show(seq); in sockstat_seq_show()
60 seq_printf(seq, "TCP: inuse %d orphan %d tw %d alloc %d mem %ld\n", in sockstat_seq_show()
64 seq_printf(seq, "UDP: inuse %d mem %ld\n", in sockstat_seq_show()
67 seq_printf(seq, "UDPLITE: inuse %d\n", in sockstat_seq_show()
69 seq_printf(seq, "RAW: inuse %d\n", in sockstat_seq_show()
71 seq_printf(seq, "FRAG: inuse %u memory %lu\n", in sockstat_seq_show()
304 static void icmpmsg_put_line(struct seq_file *seq, unsigned long *vals, in icmpmsg_put_line() argument
310 seq_puts(seq, "\nIcmpMsg:"); in icmpmsg_put_line()
312 seq_printf(seq, " %sType%u", in icmpmsg_put_line()
315 seq_puts(seq, "\nIcmpMsg:"); in icmpmsg_put_line()
317 seq_printf(seq, " %lu", vals[j]); in icmpmsg_put_line()
321 static void icmpmsg_put(struct seq_file *seq) in icmpmsg_put() argument
328 struct net *net = seq->private; in icmpmsg_put()
338 icmpmsg_put_line(seq, vals, type, count); in icmpmsg_put()
342 icmpmsg_put_line(seq, vals, type, count); in icmpmsg_put()
347 static void icmp_put(struct seq_file *seq) in icmp_put() argument
350 struct net *net = seq->private; in icmp_put()
353 seq_puts(seq, "\nIcmp: InMsgs InErrors InCsumErrors"); in icmp_put()
355 seq_printf(seq, " In%s", icmpmibmap[i].name); in icmp_put()
356 seq_puts(seq, " OutMsgs OutErrors OutRateLimitGlobal OutRateLimitHost"); in icmp_put()
358 seq_printf(seq, " Out%s", icmpmibmap[i].name); in icmp_put()
359 seq_printf(seq, "\nIcmp: %lu %lu %lu", in icmp_put()
364 seq_printf(seq, " %lu", in icmp_put()
366 seq_printf(seq, " %lu %lu %lu %lu", in icmp_put()
372 seq_printf(seq, " %lu", in icmp_put()
379 static int snmp_seq_show_ipstats(struct seq_file *seq, void *v) in snmp_seq_show_ipstats() argument
381 struct net *net = seq->private; in snmp_seq_show_ipstats()
387 seq_puts(seq, "Ip: Forwarding DefaultTTL"); in snmp_seq_show_ipstats()
389 seq_printf(seq, " %s", snmp4_ipstats_list[i].name); in snmp_seq_show_ipstats()
391 seq_printf(seq, "\nIp: %d %d", in snmp_seq_show_ipstats()
400 seq_printf(seq, " %llu", buff64[i]); in snmp_seq_show_ipstats()
405 static int snmp_seq_show_tcp_udp(struct seq_file *seq, void *v) in snmp_seq_show_tcp_udp() argument
408 struct net *net = seq->private; in snmp_seq_show_tcp_udp()
413 seq_puts(seq, "\nTcp:"); in snmp_seq_show_tcp_udp()
415 seq_printf(seq, " %s", snmp4_tcp_list[i].name); in snmp_seq_show_tcp_udp()
417 seq_puts(seq, "\nTcp:"); in snmp_seq_show_tcp_udp()
423 seq_printf(seq, " %ld", buff[i]); in snmp_seq_show_tcp_udp()
425 seq_printf(seq, " %lu", buff[i]); in snmp_seq_show_tcp_udp()
432 seq_puts(seq, "\nUdp:"); in snmp_seq_show_tcp_udp()
434 seq_printf(seq, " %s", snmp4_udp_list[i].name); in snmp_seq_show_tcp_udp()
435 seq_puts(seq, "\nUdp:"); in snmp_seq_show_tcp_udp()
437 seq_printf(seq, " %lu", buff[i]); in snmp_seq_show_tcp_udp()
442 seq_puts(seq, "\nUdpLite:"); in snmp_seq_show_tcp_udp()
446 seq_printf(seq, " %s", snmp4_udp_list[i].name); in snmp_seq_show_tcp_udp()
447 seq_puts(seq, "\nUdpLite:"); in snmp_seq_show_tcp_udp()
449 seq_printf(seq, " %lu", buff[i]); in snmp_seq_show_tcp_udp()
451 seq_putc(seq, '\n'); in snmp_seq_show_tcp_udp()
455 static int snmp_seq_show(struct seq_file *seq, void *v) in snmp_seq_show() argument
457 snmp_seq_show_ipstats(seq, v); in snmp_seq_show()
459 icmp_put(seq); /* RFC 2011 compatibility */ in snmp_seq_show()
460 icmpmsg_put(seq); in snmp_seq_show()
462 snmp_seq_show_tcp_udp(seq, v); in snmp_seq_show()
470 static int netstat_seq_show(struct seq_file *seq, void *v) in netstat_seq_show() argument
474 struct net *net = seq->private; in netstat_seq_show()
478 seq_puts(seq, "TcpExt:"); in netstat_seq_show()
480 seq_printf(seq, " %s", snmp4_net_list[i].name); in netstat_seq_show()
482 seq_puts(seq, "\nTcpExt:"); in netstat_seq_show()
489 seq_printf(seq, " %lu", buff[i]); in netstat_seq_show()
492 seq_printf(seq, " %lu", in netstat_seq_show()
496 seq_puts(seq, "\nIpExt:"); in netstat_seq_show()
498 seq_printf(seq, " %s", snmp4_ipextstats_list[i].name); in netstat_seq_show()
500 seq_puts(seq, "\nIpExt:"); in netstat_seq_show()
509 seq_printf(seq, " %llu", buff64[i]); in netstat_seq_show()
512 seq_printf(seq, " %llu", in netstat_seq_show()
518 seq_putc(seq, '\n'); in netstat_seq_show()
519 mptcp_seq_show(seq); in netstat_seq_show()