From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4d5crx3P0Nz3320 for ; Tue, 11 Nov 2025 20:02:41 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4d5crt18l3z2yv1 for ; Tue, 11 Nov 2025 20:02:38 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4d5crl4tM3zCj; Tue, 11 Nov 2025 20:02:31 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1762891352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eYwR2o9LH+CW/4lQQ2TwxYktipfR7ToaryEZjgP6aPE=; b=pfbZ13zSCPbAW3E6DY+pgGc1XxU69xcF5/ffUEtW5gOoi5pr+mhU7TP29rIS8+cXPphqoD IEByggMMg/euLrCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1762891352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eYwR2o9LH+CW/4lQQ2TwxYktipfR7ToaryEZjgP6aPE=; b=FsPMDvyOSMCR3RhrTonDCliq0T4JBIAKmsqNBSeJEytFbhS+uYrN9nKN9XkuASATebR6M1 e+PDPYFvm7VHDseYvYmoiniikbuHUJUzjNR2WMi74V1AMjG1DouinB+zlrxPBcPHHAKPDb 3USvPFBP38VEa6n8lFpYzBcivVcQDtDcGMXnmivTTUQN3A6NhyPUMv5xaM8BeOv9KGsZCZ 6cxnakLXX53aJIAjlXpyFIi03LmoMgJLHR9ZdepW1SHl0vO9dD83ImahwFbXuSRA+Cebtx ZOwnkon8TkWZ0UuCX3klY8+0kjaJ3G5fzmBi/Hj8SsV4zVO5uhgzyUzhdDCmMQ== From: Stefan Schantl To: development@lists.ipfire.org Cc: Stefan Schantl Subject: [PATCH 1/2] lldpd: Enable support for cisco discovery protocol Date: Tue, 11 Nov 2025 21:01:22 +0100 Message-ID: <20251111200123.13667-1-stefan.schantl@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Schantl --- src/initscripts/system/lldpd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/initscripts/system/lldpd b/src/initscripts/system/lldpd index 128115dbb..42b0cb9d7 100755 --- a/src/initscripts/system/lldpd +++ b/src/initscripts/system/lldpd @@ -22,6 +22,8 @@ . /etc/sysconfig/rc . ${rc_functions} +LLDPDARGS="" + # Read the configuration readhash CONFIG "/var/ipfire/lldp/settings" @@ -34,6 +36,9 @@ generate_config() { return 0 } +# Enable support for Cisco Discovery Protocol (CDP) +LLDPDARGS+="-c" + case "${1}" in start) # Do nothing if the service is not enabled @@ -49,7 +54,7 @@ case "${1}" in fi boot_mesg "Starting Link-Layer Discovery Protocol Daemon..." - loadproc /usr/sbin/lldpd + loadproc /usr/sbin/lldpd ${LLDPDARGS} ;; stop) -- 2.47.3