From patchwork Wed Jun 3 13:06:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 479947 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D50C8140271 for ; Wed, 3 Jun 2015 23:07:17 +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=KbhCxIQc; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 8117628094C; Wed, 3 Jun 2015 15:05:36 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) 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 version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E3DFC280838 for ; Wed, 3 Jun 2015 15:05:31 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 3 Jun 2015 15:05:31 +0200 (CEST) Received: by wibdt2 with SMTP id dt2so12138034wib.1 for ; Wed, 03 Jun 2015 06:07:05 -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; bh=UEvoYvst1J7A2w9dvSLtOfIXjhTfoSgHzQJuqc5yu5A=; b=KbhCxIQcFCTFFbJBIOY9M325J/iq6OCH4OyyXuIUWqfSTs3LNX9NzrWBCeYUP5DZPj n6X7OcRgNcAolmnkxvGKmZXYWxmvTky19AeZROQKirt9muOVUljUEDcg6+DScSFLa+gO 2eQWFha3D/L9/7jl5aRdO9tJfrE45LvTcsOGQz4d4cXcFR+FtWfaxaa0Pb8jcsW6DUBs mfIeh7wPLfXJQV+Fwsb4A8PsYpWIT/t7/onsf7kChUBzUR3sHhscXuZqKQWBh3nkXpW0 zGg9669NLuBEdLf3FeGvaBH3ihuloOiZNg3P4zZYZFyiRYE/yEVueq1Fn0KjkYcUtxvQ OEJQ== X-Received: by 10.194.62.201 with SMTP id a9mr5578839wjs.63.1433336824900; Wed, 03 Jun 2015 06:07:04 -0700 (PDT) Received: from orion.local ([5.2.198.78]) by mx.google.com with ESMTPSA id um5sm1032155wjc.1.2015.06.03.06.07.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jun 2015 06:07:04 -0700 (PDT) From: Alexandru Ardelean To: openwrt-devel@lists.openwrt.org Date: Wed, 3 Jun 2015 16:06:58 +0300 Message-Id: <1433336818-11018-1-git-send-email-ardeleanalex@gmail.com> X-Mailer: git-send-email 2.1.4 Subject: [OpenWrt-Devel] [PATCH] lldpd: add option to disable custom TLVs X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Alexandru Ardelean --- package/network/services/lldpd/Config.in | 5 +++++ package/network/services/lldpd/Makefile | 1 + 2 files changed, 6 insertions(+) diff --git a/package/network/services/lldpd/Config.in b/package/network/services/lldpd/Config.in index 448506d..93d84e2 100644 --- a/package/network/services/lldpd/Config.in +++ b/package/network/services/lldpd/Config.in @@ -41,6 +41,11 @@ config LLDPD_WITH_DOT3 prompt "Enable Dot3 extension (PHY stuff)" default y +config LLDPD_WITH_CUSTOM + bool + prompt "Enable Custom TLVs" + default y + config LLDPD_WITH_JSON bool prompt "Enable JSON output for the LLDP Command-Line Interface" diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile index cccb9ba..81e4a8f 100644 --- a/package/network/services/lldpd/Makefile +++ b/package/network/services/lldpd/Makefile @@ -100,6 +100,7 @@ CONFIGURE_ARGS += \ $(if $(CONFIG_LLDPD_WITH_LLDPMED),,--disable-lldpmed) \ $(if $(CONFIG_LLDPD_WITH_DOT1),,--disable-dot1) \ $(if $(CONFIG_LLDPD_WITH_DOT3),,--disable-dot3) \ + $(if $(CONFIG_LLDPD_WITH_CUSTOM),,--disable-custom) \ $(if $(CONFIG_LLDPD_WITH_SONMP),,--disable-sonmp) \ $(if $(CONFIG_LLDPD_WITH_JSON),--with-json=json-c,--with-json=no)