FreeBSD/contrib/ntp/ntpq/ntpq-subs.c
/*
 * iostats - ntpq -c iostats - network input and output counters
 */
c iostats - network input and output counters
c iostats - network input and output counters
static void
iostats(
	struct parse *pcmd,
	FILE *fp
	)
{
    static vdc iostats_vdc[] = {
	VDC_INIT("iostats_reset",	"time since reset:     ", NTP_STR),
	VDC_INIT("total_rbuf",		"receive buffers:      ", NTP_STR),
	VDC_INIT("free_rbuf",		"free receive buffers: ", NTP_STR),
	VDC_INIT("used_rbuf",		"used receive buffers: ", NTP_STR),
	VDC_INIT("rbuf_lowater",	"low water refills:    ", NTP_STR),
	VDC_INIT("io_dropped",		"dropped packets:      ", NTP_STR),
	VDC_INIT("io_ignored",		"ignored packets:      ", NTP_STR),
	VDC_INIT("io_received",		"received packets:     ", NTP_STR),
	VDC_INIT("io_sent",		"packets sent:         ", NTP_STR),
	VDC_INIT("io_sendfailed",	"packet send failures: ", NTP_STR),
	VDC_INIT("io_wakeups",		"input wakeups:        ", NTP_STR),
	VDC_INIT("io_goodwakeups",	"useful input wakeups: ", NTP_STR),
	VDC_INIT(NULL,			NULL,			  0)
    };
	collect_display_vdc(0, iostats_vdc, FALSE, fp);
}
static void iostats ( struct parse * pcmd , FILE * fp ) { static vdc iostats_vdc [ ] = { VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( NULL , NULL , 0 ) } ; collect_display_vdc ( 0 , iostats_vdc , FALSE , fp ) ; }
iostats - ntpq -c iostats - network input and output counters
iostats - ntpq - c iostats - network input and output counters