Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/ifconfig remove 80211 stats if small.
details: https://anonhg.NetBSD.org/src/rev/71c6ef539101
branches: trunk
changeset: 337806:71c6ef539101
user: christos <christos%NetBSD.org@localhost>
date: Tue Apr 28 15:14:57 2015 +0000
description:
remove 80211 stats if small.
diffstat:
sbin/ifconfig/Makefile | 6 +++++-
sbin/ifconfig/ieee80211.c | 6 ++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diffs (54 lines):
diff -r 4664cb7a1a13 -r 71c6ef539101 sbin/ifconfig/Makefile
--- a/sbin/ifconfig/Makefile Tue Apr 28 15:14:07 2015 +0000
+++ b/sbin/ifconfig/Makefile Tue Apr 28 15:14:57 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.54 2013/03/01 18:25:16 joerg Exp $
+# $NetBSD: Makefile,v 1.55 2015/04/28 15:14:57 christos Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
# when making a change to this file, please check if the change is
@@ -25,6 +25,10 @@
CPPFLAGS+= -DRUMP_ACTION
.endif
+.ifdef SMALLPROG
+CPPFLAGS+=-DSMALL
+.endif
+
CPPFLAGS+=-I${NETBSDSRCDIR}/sys/dist/pf/
SRCS+= pfsync.c
diff -r 4664cb7a1a13 -r 71c6ef539101 sbin/ifconfig/ieee80211.c
--- a/sbin/ifconfig/ieee80211.c Tue Apr 28 15:14:07 2015 +0000
+++ b/sbin/ifconfig/ieee80211.c Tue Apr 28 15:14:57 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee80211.c,v 1.27 2014/01/08 01:56:20 christos Exp $ */
+/* $NetBSD: ieee80211.c,v 1.28 2015/04/28 15:14:57 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ieee80211.c,v 1.27 2014/01/08 01:56:20 christos Exp $");
+__RCSID("$NetBSD: ieee80211.c,v 1.28 2015/04/28 15:14:57 christos Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -482,6 +482,7 @@
static void
ieee80211_statistics(prop_dictionary_t env)
{
+#ifndef SMALL
struct ieee80211_stats stats;
struct ifreq ifr;
@@ -584,6 +585,7 @@
STAT_PRINT(is_ff_decap, "fast frames decap'd");
STAT_PRINT(is_ff_encap, "fast frames encap'd for tx");
STAT_PRINT(is_rx_badbintval, "rx frame w/ bogus bintval");
+#endif
}
static void
Home |
Main Index |
Thread Index |
Old Index