IP statistics.
Definition in file ipstat.h.
Print IP statistics.
Definition at line 40 of file ipstat.c.
45 stats = family->
stats;
47 printf (
" InReceives:%ld InMcastPkts:%ld InBcastPkts:%ld " 51 printf (
" InHdrErrors:%ld InAddrErrors:%ld " 52 "InUnknownProtos:%ld InTruncatedPkts:%ld\n",
55 printf (
" ReasmReqds:%ld ReasmOKs:%ld ReasmFails:%ld\n",
58 printf (
" InDelivers:%ld OutRequests:%ld OutNoRoutes:%ld\n",
61 printf (
" OutTransmits:%ld OutMcastPkts:%ld OutBcastPkts:%ld " unsigned long reasm_reqds
ipSystemStatsReasmReqds
unsigned long reasm_oks
ipSystemStatsReasmOks
int printf(const char *fmt,...)
Write a formatted string to the console.
unsigned long in_receives
ipSystemStatsInReceives
An IP system statistics family.
unsigned long in_addr_errors
ipSystemStatsInAddrErrors
unsigned long in_unknown_protos
ipSystemStatsInUnknownProtos
unsigned long in_mcast_pkts
ipSystemStatsInMcastPkts
unsigned int version
IP version.
unsigned long out_no_routes
ipSystemStatsOutNoRoutes
unsigned long reasm_fails
ipSystemStatsReasmFails
unsigned long in_truncated_pkts
ipSystemStatsInTruncatedPkts
unsigned long in_delivers
ipSystemStatsInDelivers
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.
unsigned long out_mcast_pkts
ipSystemStatsOutMcastPkts
unsigned long out_bcast_pkts
ipSystemStatsOutBcastPkts
unsigned long out_requests
ipSystemStatsOutRequests
struct ip_statistics * stats
Statistics.
unsigned long in_hdr_errors
ipSystemStatsInHdrErrors
#define IP_STATISTICS_FAMILIES
IP system statistics family table.
unsigned long in_bcast_pkts
ipSystemStatsInBcastPkts
unsigned long out_octets
ipSystemStatsOutOctets
unsigned long out_transmits
ipSystemStatsOutTransmits
unsigned long in_octets
ipSystemStatsInOctets
References for_each_table_entry, ip_statistics::in_addr_errors, ip_statistics::in_bcast_pkts, ip_statistics::in_delivers, ip_statistics::in_hdr_errors, ip_statistics::in_mcast_pkts, ip_statistics::in_octets, ip_statistics::in_receives, ip_statistics::in_truncated_pkts, ip_statistics::in_unknown_protos, IP_STATISTICS_FAMILIES, ip_statistics::out_bcast_pkts, ip_statistics::out_mcast_pkts, ip_statistics::out_no_routes, ip_statistics::out_octets, ip_statistics::out_requests, ip_statistics::out_transmits, printf(), ip_statistics::reasm_fails, ip_statistics::reasm_oks, ip_statistics::reasm_reqds, ip_statistics_family::stats, and ip_statistics_family::version.
Referenced by ipstat_exec().