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 4d5crw5MBFz2y97 for ; Tue, 11 Nov 2025 20:02:40 +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 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4d5crs2xWDz2xS5 for ; Tue, 11 Nov 2025 20:02:37 +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 4d5crs04Gfz1hf; Tue, 11 Nov 2025 20:02:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1762891357; 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: in-reply-to:in-reply-to:references:references; bh=IOl1bdZfMXXOFjagTAB+ktqhcxnQIp3XoTmz8+PnsOs=; b=WrSuig1GkMcFZsWIWMAvpvONbjcLX+f4kJJrCsq0eWUEnDrRvzmb47+8o2+SzzO7X0cLBF X0cOpqaKuRqJ+fNKn2+aPyzEaVwwCf8ngl7l3L/cpg7t5ZZLEOt/p7LyHmOpH6srm619hT /++cAHohmWNXuQ3utSkG6HEYMlQg2RPEPs5Fe8OwMTGkYUDriM1OLQuVMtrVW+LFk6fEl9 fMRgrLpS+hpH9+yzGwm3LGE0gu1dB7ypNrWmfl4JnmBwJZFMBnDBf4hh01veot0gvkBE5Y bisQc/khhWep9j55blAIrFOQ4Cdq/sUzpljpD0YhFIEt6S1kgbHCU84SiPutAg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1762891357; 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: in-reply-to:in-reply-to:references:references; bh=IOl1bdZfMXXOFjagTAB+ktqhcxnQIp3XoTmz8+PnsOs=; b=qRt1A1DR4wFtqSxa/FnmFj8Pfr9cf56Ge2j8S/MYAug+bErtY2CFB8Y5Wk3upKWKl6hqyY oUFJVcYODzcyZlCQ== From: Stefan Schantl To: development@lists.ipfire.org Cc: Stefan Schantl Subject: [PATCH 2/2] lldpd: Set green address as management address Date: Tue, 11 Nov 2025 21:01:23 +0100 Message-ID: <20251111200123.13667-2-stefan.schantl@ipfire.org> In-Reply-To: <20251111200123.13667-1-stefan.schantl@ipfire.org> References: <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 At default the first available IP address (which heavily depends on your and your ISP assigned addresses) will be used as management address. This patch changes this behaviour to set the address of the green zone as management address and broadcast it. Signed-off-by: Stefan Schantl --- src/initscripts/system/lldpd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/initscripts/system/lldpd b/src/initscripts/system/lldpd index 42b0cb9d7..9b2cbcaf4 100755 --- a/src/initscripts/system/lldpd +++ b/src/initscripts/system/lldpd @@ -27,6 +27,9 @@ LLDPDARGS="" # Read the configuration readhash CONFIG "/var/ipfire/lldp/settings" +# Read-in network settings +eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings) + generate_config() { # Set the description (if given) if [ -n "${CONFIG["DESCRIPTION"]}" ]; then @@ -53,6 +56,11 @@ case "${1}" in exit 1 fi + # Set green address as management address if there is one. + if [ -n ${GREEN_ADDRESS} ]; then + LLDPDARGS+=" -m ${GREEN_ADDRESS}" + fi + boot_mesg "Starting Link-Layer Discovery Protocol Daemon..." loadproc /usr/sbin/lldpd ${LLDPDARGS} ;; -- 2.47.3