From patchwork Wed Apr 27 09:13:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Dedecker X-Patchwork-Id: 615476 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (caladan.dune.hu [78.24.191.180]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qvvS82gxKz9s3s for ; Wed, 27 Apr 2016 19:15:04 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=aPtNorAi; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 11382B80CA0; Wed, 27 Apr 2016 11:14:20 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Wed, 27 Apr 2016 11:14:20 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id CECD8B80C92 for ; Wed, 27 Apr 2016 11:14:15 +0200 (CEST) X-policyd-weight: using cached result; rate:hard: -7 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 27 Apr 2016 11:14:14 +0200 (CEST) Received: by mail-wm0-f68.google.com with SMTP id w143so10885460wmw.3 for ; Wed, 27 Apr 2016 02:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=q4RrRvHJDrmNn9NDqbwVrA2s8lRtdw7MeY2Qk3kHViE=; b=aPtNorAirXi8ZYIAoIALsc34wqbL2MpN3V1g3LC6s7XDu9C7uDPf7GYWmYRwmEIjgc NV/cmBiORUPGxFnhkuf8Dt7Mvs0GfwEQtVXgERL0FIWCWQv0fXgQakyK1uCN/mTyo1zb icpcgiqVOWSYO7wd1Ro0UW2C96BKOy5HVQhUQsIxIKMxtOVKJ/Km+jULMBIHIp+RIYYL VHKywmFcWumeH3PVwGeBNItfx2ZHDWhFkceKIev7tnjBX5T8ldPvhq2Zs3sDzLOUnLwp rVtaxWef1YTFWVHTTr86jvwLYlNBZP7dJ2apunjkyynUaixPVGaucBhqjyxmywstmETd /T7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=q4RrRvHJDrmNn9NDqbwVrA2s8lRtdw7MeY2Qk3kHViE=; b=YeyZ4CAN47ONNIfqLseM1cxPqXij62wGT0TOa3j2dYVE+0O3Nl+0XLdtMeAN6efjbs w5QuLm+s2qybuwApd1nULWA3NMiUNBmtQ4vim7aL+DUDQDYqCUMnwT/R0BhsuST5hUO+ HUjHeZTW/1PZPk/GcIi5Eqf92cSo5XBer50qnmtrCd9LLzTUzVOT7R72IzvE6ccKtWi7 25mxyWdCEJyXM83VuWvAkimOwY9QkF9W9xtuiXsTnFjTen+upvNI3rcqPJwoY/k2zwID FBPRvdTvy+qs/gtmQ6LDm+D98OrODx4N6W7A80whfQgtDf7ZycRkNhnaL4YkcEIQhnMC HcNA== X-Gm-Message-State: AOPr4FXcMhsMZbtPdna5FX5yPP5FIzeyag3kDXSghkZhUqrIlf3owERIgJBknHPYUFWF4Q== X-Received: by 10.194.92.45 with SMTP id cj13mr8923413wjb.178.1461748454608; Wed, 27 Apr 2016 02:14:14 -0700 (PDT) Received: from cplx43.eu.thmulti.com ([141.11.62.7]) by smtp.gmail.com with ESMTPSA id w3sm3002161wjt.0.2016.04.27.02.14.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Apr 2016 02:14:14 -0700 (PDT) From: Hans Dedecker To: openwrt-devel@lists.openwrt.org Date: Wed, 27 Apr 2016 11:13:59 +0200 Message-Id: <1461748442-9469-3-git-send-email-dedeckeh@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1461748442-9469-1-git-send-email-dedeckeh@gmail.com> References: <1461748442-9469-1-git-send-email-dedeckeh@gmail.com> Subject: [OpenWrt-Devel] [PATCH 3/6] iproute2: Add package for nstat utility X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hans Dedecker , cyrus@openwrt.org MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Add support for the command line utility nstat displaying network statistics Signed-off-by: Hans Dedecker --- package/network/utils/iproute2/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile index cb9730e..a7686cb 100644 --- a/package/network/utils/iproute2/Makefile +++ b/package/network/utils/iproute2/Makefile @@ -60,6 +60,11 @@ $(call Package/iproute2/Default) TITLE:=Socket statistics utility endef +define Package/nstat +$(call Package/iproute2/Default) + TITLE:=Network statistics utility +endef + ifeq ($(BUILD_VARIANT),tiny) IP_CONFIG_TINY:=y endif @@ -128,9 +133,15 @@ define Package/ss/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/ss $(1)/usr/sbin/ endef +define Package/nstat/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/nstat $(1)/usr/sbin/ +endef + $(eval $(call BuildPackage,ip)) $(eval $(call BuildPackage,ip-full)) $(eval $(call BuildPackage,tc)) $(eval $(call BuildPackage,genl)) $(eval $(call BuildPackage,ip-bridge)) $(eval $(call BuildPackage,ss)) +$(eval $(call BuildPackage,nstat))