main.c (189274) | main.c (217680) |
---|---|
1/*- 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 * | 1/*- 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 * |
29 * $FreeBSD: head/tools/tools/ath/athstats/main.c 189274 2009-03-02 05:07:05Z sam $ | 29 * $FreeBSD: head/tools/tools/ath/athstats/main.c 217680 2011-01-21 02:53:32Z adrian $ |
30 */ 31 32/* 33 * Simple Atheros-specific tool to inspect and monitor network traffic 34 * statistics. 35 * 36 * athstats [-i interface] [-bz] [-l] [-o fmtstring] [interval] 37 * 38 * (default interface is ath0). If interval is specified a rolling output 39 * a la netstat -i is displayed every interval seconds. The format of 40 * the rolling display can be controlled a la ps. The -l option will 41 * print a list of all possible statistics for use with the -o option. 42 */ 43 44#include <stdio.h> 45#include <stdlib.h> 46#include <signal.h> 47#include <unistd.h> | 30 */ 31 32/* 33 * Simple Atheros-specific tool to inspect and monitor network traffic 34 * statistics. 35 * 36 * athstats [-i interface] [-bz] [-l] [-o fmtstring] [interval] 37 * 38 * (default interface is ath0). If interval is specified a rolling output 39 * a la netstat -i is displayed every interval seconds. The format of 40 * the rolling display can be controlled a la ps. The -l option will 41 * print a list of all possible statistics for use with the -o option. 42 */ 43 44#include <stdio.h> 45#include <stdlib.h> 46#include <signal.h> 47#include <unistd.h> |
48#include <string.h> |
|
48#include <err.h> 49 50#include "athstats.h" 51 52static struct { 53 const char *tag; 54 const char *fmt; 55} tags[] = { --- 108 unchanged lines hidden --- | 49#include <err.h> 50 51#include "athstats.h" 52 53static struct { 54 const char *tag; 55 const char *fmt; 56} tags[] = { --- 108 unchanged lines hidden --- |